Operating System - HP-UX
1753767 Members
5577 Online
108799 Solutions
New Discussion юеВ

Does anybody have a "basic" cookbook on creating VxVM file systems?

 
SOLVED
Go to solution
Stuart Abramson_2
Honored Contributor

Does anybody have a "basic" cookbook on creating VxVM file systems?

I want something that explains, in two pages or so, the basic stuff, like:

pvcreate /dev/rdsk/cXtYdZ
mkdir /dev/vgname
mknod /dev/vgname/group c 64 0xMN0000
vgcreate vgname /dev/dsk/cXtYdZ
vgextend /dev/vgname /dev/dsk/cXtYdZ
lvcreate -r N -n lvname /dev/vgname
lvextend -L 50 /dev/vgname/lvname /dev/dsk/cXtYdZ
newfs -F vxfs /dev/vgname/rlvname

I just downloaded the manual from www.docs.hp.com and it's 362 pages, so I could use some succinct help.
4 REPLIES 4
Pete Randall
Outstanding Contributor
Solution

Re: Does anybody have a "basic" cookbook on creating VxVM file systems?

Stuart,

There's also a 99 page migration guide "Veritas Volume Manager 3.1 Migration Guide" which has a "Comparison of LVM and VxVM Tasks" section in Chapter 3. It's not exactly a cookbook, but you can, with a little LVM knowledge, follow the steps, comparing the LVM task with its' VxVM equivalent.


Pete


Pete
Patrick Wallek
Honored Contributor

Re: Does anybody have a "basic" cookbook on creating VxVM file systems?

Try the HP Software Recovery Handbook here:
http://www1.itrc.hp.com/service/iv/node.do?node=prod%2FWW_Start%2FN1%7C16

Scroll down to Chapter 17: Veritas Volume Manager (VxVM)
http://www1.itrc.hp.com/service/iv/node.do?node=prod%2FWW_Start%2FN1%7C16%7C25

Good luck.
Steven E. Protter
Exalted Contributor

Re: Does anybody have a "basic" cookbook on creating VxVM file systems?

I have not used vxvm on a day to day basis. I went through a class and here are the notes.


lvm vxvm
pvcreate -f /dev/rdsk/disk_name vxdisk -f init /dev/dsk/disk_name
vgreate vg01 /dev/dsk/disk_name vxdg init rootdg
vgextend vg01 /dev/dsk/disk_name vxdg -g rootdg adddisk disk1=devicename
lvcreate -L vol_size /dev/vg01 vgassist make vol_name length

lvdisplay /dev/vg01/l;vol_name vxprint -ht vol_name
vgdisplay -v /dev/vg vxprint vxprint -g disk_group

sam vxdiskadm --or-- vmsa


vxvmconvert

vxvm disks are not recognized by make_tape_recovery

This is what I've got so far.

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
Alzhy
Honored Contributor

Re: Does anybody have a "basic" cookbook on creating VxVM file systems?

Stuart,

Best way to learn VxVM is to use the GUI -- since SEP202, HP-UX 11i PARISC started bundling VxVM 3.5m with the nice VEA (Veritas Enterprise Administrator). Every GUI activity you do you can display its underlying CLI. Once you are aware of all the commands executed by the GUI - then you can slowly do away without the GUI. Another menu driven tool you can use is "vxdiskadm".

With 3.5m, you still need a rootDG which can as well be your workhorse DG if you opt to stay with LVM on your system disks. Once you've got a rootdg, creating a other DG's would entail:

Initialize disk(s) for use in yor DiskGroup:
/etc/vx/bin/vxdisksetup -i c10t0d1
/etc/vx/bin/vxdisksetup -i c10t0d2
....
Create the Disk Group/Allocate a disk:
vxdg init NewDG disk01=c10t0d1
Add subsequent disks to the diskgroup:
vxdg -g NewDG disk02=c10t0d2
...and so on...
Create a simple volume - let VxVM pick the disk:
vxassist -g NewDG make oravol01 10g
Create a simple volume - specify disk to use:
vxassist -g NewDG make oraredo01 1g alloc=disk20
Create a 4-column stripe, 128K interleave:
vxassist -g NewDG make stripevol 20g layout=striped ncols=4 stwidth=128
Create a VxFS (aka oJFS) Filesystem on oravol01:
mkfs -F vxfs-o bsize=8192,largefiles /dev/vx/rdsk/NewDG/oravol01

... mount the filesystem..

Since you already have LVM experience, adjusting in a VxVM environment will not be that diificult... Best way to learn fast is to practice and find VxVM equivalents... That's how I fastracked on LVM on HPUX environments.

There is also one very good VxVM site: www.vxideas.org and www.cuddletech.com. You may also subscribe to the VxVM mailing list -- the link already forgot.. but most Google search on VxVM tips and tricks will point you to that maillist./forum...

Hakuna Matata.