1759888 Members
3450 Online
108889 Solutions
New Discussion юеВ

how to mirror 4 disks

 
SOLVED
Go to solution
ShiWei_1
Occasional Contributor

how to mirror 4 disks

I have 4 disks in a rp5470,and 2 disks configured in the /vg00,how can I mirror the other 2 disks to the /vg00
7 REPLIES 7
Rajeev  Shukla
Honored Contributor
Solution

Re: how to mirror 4 disks

first ensure that the other 2 disks you want to mirror are free.
Then do a pvcreate on both disks, where use -B (bootable) with one disk (if you want to boot from mirror disk in case of failure)
then add the disks to vg00, use vgextend to do that.
use
and go through the following steps
mkboot /dev/rdsk/....(bootbale disk)
mkboot -a -a "hpux -lq (0/0/2/1.6.0;0)/stand/vmunix" /dev/rdsk/...(boot disk)
and then mirror all lvols
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/.. (other disks where you want to mirror)
Adisuria Wangsadinata_1
Honored Contributor

Re: how to mirror 4 disks

Hi there,

First, make sure that you have MirrorDisk/UX software on your system :

# swlist -l fileset | grep -i mir

which should return something similar to this:

LVM.LVM-MIRROR-RUN

After that please follow the steps below :

# pvcreate -B -f /dev/rdsk/
# pvcreate -f /dev/rdsk/

NOTE : -B required because OS disk

# mkboot /dev/rdsk/
# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/

#vgextend /dev/vg00 /dev/dsk/
#vgextend /dev/vg00 /dev/dsk/

#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/ /dev/dsk/
#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/ /dev/dsk/
#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/ /dev/dsk/

Repeat for all the lvols.

#lvlnboot -R
#lvlnboot -v

to verify both disks listed properly.

#setboot -a

This is to set alternate boot path so that the system boots in the event of
pri disk failure.

You can see the knowledge mine at this docID : LVMKBRC00005103 about 'How to create a Mirrored Boot Disk on PA-RISC Systems - Cookbook'

Hope this information can help you.

Best Regards,
AW

now working, next not working ... that's unix
Sunil Sharma_1
Honored Contributor

Re: how to mirror 4 disks

Hi,

In my understanding you have 4 disks in system. 2 of them is configured in VG00 as mirrored and you want to add another 2 disks to them.

You can not have more then 2 compy of originoal.

If i am wrong correct me.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
DGH_2
Valued Contributor

Re: how to mirror 4 disks

Hi
i agree with Sunil that you can't do it.
you can make 2 copies only of the original disk by using:
lvextend -m 2 /dev/vg00/lvol1 /dev/dsk/new_disk
...
...
but not more than 2
Regards
ShiWei_1
Occasional Contributor

Re: how to mirror 4 disks

Dear Sunil Sharma:
Thank you for your reply! My system with 4 disks ,and 2 of them are configured in vg00 but not mirrored;I want the other 2 disks as mirror to the vg00.

Thanks



DGH_2
Valued Contributor

Re: how to mirror 4 disks

Hi
you can do it as follow:
- create the 2 disks to vg00
# pvcreate -Bf /dev/rdsk/cxtydz1
# pvcreate -f /dev/rdsk/cxtydz2

the first will be the bootable disk.

- extend the volume group
#vgextend /dev/vg00 /dev/dsk/cxtydz1 /dev/dsk/cxtydz2

- do a lvdisplay for all the lvols that you have to see each lvol on which disk. and write it.

#lvdisplay -v /dev/vg00/lvolx | more

- create the AUTO file :
#mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/cxtydz1

- mirror the lvols:
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cxtydz1
do it for lvol2 and 3...
...
now the lvol that is written on 2 disks you have to do do:
#lvextend -m 1 /dev/vg00/lvolx /dev/dsk/cxtydz1 /dev/dsk/cxtydz2

and the rest of lvols:
#lvextend -m 1 /dev/vg00/lvolx /dev/dsk/cxtydz2

# lvlnboot -r /dev/vg00/lvol3 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00
# lvlnboot -v


Regards:
DGH

DGH_2
Valued Contributor

Re: how to mirror 4 disks

it's a good idea to do an ignite of vg00 before doing anything on the system.

DGH