1833124 Members
3584 Online
110051 Solutions
New Discussion

RAID1 lvm commands

 
Indrajit Bhagat
Regular Advisor

RAID1 lvm commands

Commands to configure RAID 1 in LVM?
2 REPLIES 2
Pete Randall
Outstanding Contributor

Re: RAID1 lvm commands

First of all, you have to purchase and install MirrorDisk-UX, an optional add-on to LVM. Then, your primary command is lvextend -m. For example, here are the instructions to mirror your root disk:

The steps to mirror your boot volume are (PA-RISC):

1. Create a physical volume with a boot reserved area
"pvcreate -B /dev/rdsk/c1t6d0"

2. Add the physical volume to the root VG
"vgextend /dev/vg00 /dev/dsk/c1t6d0"

3. Use mkboot to place the boot utilities in the boot area and add the AUTO file
"mkboot /dev/rdsk/c1t6d0"
"mkboot -a "hpux -lq" /dev/rdsk/c1t6d0"

4. Use mkboot to update the AUTO file on the primary boot disk
"mkboot -a "hpux -lq" /dev/rdsk/c0t6d0"

5. Mirror the stand, root and swap logical volumes in order
"lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t6d0"

6. Then mirror the rest of your root logical volumes
"lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c1t6d0"
etc.

7. Modify your alternate boot path
"setboot -a 8/8.6.0 # use the path of your new boot disk"

8. Edit /stand/bootconf and add your new mirrored boot disk.

As you can see, most of the steps here are involved in making the disk "bootable" - the actual mirroring happens in step 5 and 6.


Pete

Pete
spex
Honored Contributor

Re: RAID1 lvm commands

Hello,

The MirrorDisk/UX manual is available here:
http://www.docs.hp.com/en/5991-5845/5991-5845.pdf

As Pete mentioned, you must purchase this product.

PCS