Operating System - HP-UX
1833013 Members
2137 Online
110048 Solutions
New Discussion

Re: mirror not from root disk

 
SOLVED
Go to solution
Rob O'Connor
Advisor

mirror not from root disk

Hello:
We are getting new machine.
I just need to verify mirroring syntax for non root disk. The disks does not have to be bootable.

pvcreate -f /dev/dsk/cxtxdx
vgextend -f /dev/vg04 /dev/dsk/cxtxdx
lvextend -m 1 /dev/vg04/lvol1 /dev/dsk/cxtxdx

Thanks,
Henry
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: mirror not from root disk

pvdisplay -v /dev/rdsk/cxtxdx | more

for the disk

lvdisplay -v /dev/vg01/lvol1 | more

This will show you the mirrors and what disk they are on.

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
Patrick Wallek
Honored Contributor
Solution

Re: mirror not from root disk

Yes, that will work. You will also want to make sure that the LVs are created with the Strict allocation policy. That will prevent you from mirroring to the same disk.

When you create an LV you need to specify the '-s y' switch. Or if the LV is already created you can use lvchange to modify that setting.
twang
Honored Contributor

Re: mirror not from root disk

Your steps are right, but remember to back up LVM configuration information for the volume group you changed, for example
# vgcfgbackup /dev/vg04