Operating System - HP-UX
1753876 Members
7498 Online
108809 Solutions
New Discussion юеВ

Re: Creating a logical volume to be used as a snap

 
SOLVED
Go to solution
Joan Blais
Frequent Advisor

Creating a logical volume to be used as a snap

I have a system with "vault" logical volumes that are 8 Gb and "snap" logical volumes that are 1 GB in size. There is a command to create this special "snap" lv. Does anyone know what that is?
Thanks,
Joan
6 REPLIES 6
RAC_1
Honored Contributor
Solution

Re: Creating a logical volume to be used as a snap

Are you looking at following??

mount -F vxfs -o snapof=original_lv "/dev/vgxx/lv_name_of_snap_lvol /mount_point

Anil
There is no substitute to HARDWORK
A. Clay Stephenson
Acclaimed Contributor

Re: Creating a logical volume to be used as a snap

You seem to be referring to vxfs snapshot mounts; the snapshot buffer (an additional logical volume that is created just like any other LVOL) is used to store the first changes of any block in the original filesystem. That is why the "snap" LVOL can be so much smaller than the original filesystem LVOL. The "snapshot" is a composite of all the unchanged blocks in the original filesystem and the changed blocks read from the snapshot buffer.

Man mount_vxfs for deatils and look for the snapof= option.
If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: Creating a logical volume to be used as a snap

lvecreate -n orb1 /dev/vg02
lvextend -l 502 /dev/vg02/orb2 /dev/dsk/c5t8d0

Then the command in response 1.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Zinky
Honored Contributor

Re: Creating a logical volume to be used as a snap

You can use either an existing Filesystem or a new LVOL for your snapshot. If you do a lot of changes to the snapped filesystem - then you need to make sure you've enough space on your snapof storage. Snap filesystems are often used during Oracle backups to take on changes to the filesystems while the original mounts are being backed up or copied. Once released.. the changes are re-applied back to the original filesystems.

VxFS (Veritas filesystem or Onlione JFS) was the first to incorporate this. Other Unix Filesystems also offer the same features...
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Joan Blais
Frequent Advisor

Re: Creating a logical volume to be used as a snap

It's coming back to me now. I have scripted the commands for the snaps-
mount -F vxfs -o snapof=/vault_plmprd8 /dev/vgexe/lvsnap8 /snap8 ...etc. all vaults and snaps associated.
Thanks to all.
Joan
Joan Blais
Frequent Advisor

Re: Creating a logical volume to be used as a snap

mount -F vxfs -o snapof=/mountpoint /dev/vgxx/lvxx /snapmountpoint