Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Restore Directly from a Snapshot

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 507
    Comment on it

    As explained on post how to archive a snapshot, Now to restore a backup without writing to a compressed gz file from created archive, use the following sequence of commands:

    umount /dev/vg0/snap_db-01
    lvcreate --size 1G --name mdb-new vg0
    dd if=/dev/vg0/snap_db-01 of=/dev/vg0/mdb-new
    mount /dev/vg0/mdb-new /srv/mongodb
    
    • It will create a new logical volume with mdb-new name, in the /dev/vg0 volume group. The path of new device will be /dev/vg0/mdb-new.
    • Uncompresses and unarchives the mdb-snap01.gz into the mdb-new disk image.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: