Operating System - HP-UX
1753789 Members
7288 Online
108799 Solutions
New Discussion

Re: Mirroring the new disk.

 
SOLVED
Go to solution
Gulam Mohiuddin
Regular Advisor

Mirroring the new disk.

We have added two 18GB disk to store more data. One disk we would like to configure for mirroring. (Please see the attachment).

We would like to set up two logical volume of 8.5GB mirrored to disk on separate controller.
Please verify following steps and suggest if anything is missing or wrong.

Steps to configure disk into HP-UX 11.0

pvcreate /dev/dsk/c0t8d0
pvcreate /dev/dsk/c2t8d0

mkdir /dev/vg11
mknod /dev/vg11/group c 64 0xNN0000
vgcreate /dev/vg11 /dev/dsk/c0t8d0 /dev/dsk/c2t8d0

lvcreate -n lvol11 /dev/vg11
lvcreate -n lvol12 /dev/vg11

lvextend -l 1 /dev/vg11/lovl11 /dev/dsk/c0t8d0
lvextend -m 1 /dev/vg11/lovl11 /dev/dsk/c2t8d0
lvextend -L 8683 /dev/vg11/lovl11 /dev/dsk/c0t8d0 /dev/c2t8d0

lvextend -l 1 /dev/vg11/lovl12 /dev/dsk/c0t8d0
lvextend -m 1 /dev/vg11/lovl12 /dev/dsk/c2t8d0
lvextend -L 8683 /dev/vg11/lovl12 /dev/dsk/c0t8d0 /dev/c2t8d0

Thanks,
Everyday Learning.
1 REPLY 1
Andreas Voss
Honored Contributor
Solution

Re: Mirroring the new disk.

Hi,

your Steps are ok.
The pvcreate command expects raw (charater) device.
Simply use pvcreate /dev/rdsk/....
You have to create also a new filesystem on your new volumes (newfs -F vxfs /dev/vg....)

Regards

Andrew