Pages

Wednesday, March 16, 2011

How to create and backup a snapshot

You can use below procedure to create snapshot. In this example you create a snapshot of /data

  1. Determine where you are going to store the backing store (the snapshot) file.
    For example you use /var/tmp as a location to store the backing-store file, and you will snapshot /data filesystem.
  2. Create the snapshot.
    root@solaris-sunray # fssnap -F ufs -o backing-store=/var/tmp /data
  3. Verify that snapshot is successful.
    root@solaris-sunray # fssnap -i
    0 /data
  4. Mount the virtual device as you wish (optional)
    root@solaris-sunray # mount -F ufs -o ro /dev/fssnap/0 /mnt
    root@solaris-sunray # ls /mnt
  5. Backup filesystem to tape
    root@solaris-sunray # ufsdump 0ucf /dev/rmt/0 /dev/fssnap/0

No comments:

Post a Comment