1829593 Members
1364 Online
109992 Solutions
New Discussion

Disk mirroring

 
SOLVED
Go to solution
YAQUB_1
Respected Contributor

Disk mirroring

He There,

My system (rp 4440 & OS 11i v2) running fine. Recently my company purchase a new HDD. Right now my requirement disk mirroring.

Could you please inform me which process I can config disk mirroring.

Regards-Yaqub.
9 REPLIES 9
Mridul Shrivastava
Honored Contributor

Re: Disk mirroring

Hi could you please let us know the volume manager you are using, I mean it is LVM or VxVM as the procedure differs.
Time has a wonderful way of weeding out the trivial
Mridul Shrivastava
Honored Contributor

Re: Disk mirroring


Mirror vg00 on Itanium systems that are running B.11.23:

1. From HPUX, use vgdisplay to identify the disk that is in vg00. Use
ioscan to find the spare disk.

# vgdisplay -v --> vg00 is on /dev/dsk/c2t1d0s2 in this example
# ioscan -efunC disk --> Let's assume c3t2d0 for this example

2. Create the system, OS, and service partitions.

# cat </tmp/partitionfile
> 3
> EFI 500MB
> HPUX 100%
> HPSP 400MB
> EOF
# idisk -wf /tmp/partitionfile /dev/rdsk/c3t2d0
idisk version: 1.31
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes <-- Answer "yes" and not "y"

3. Create device files needed for the new partitions.

# insf -eC disk

4. Verify the partition table.

# idisk /dev/rdsk/c3t2d0

5. Verify that the device files were created properly.

# ioscan -efnC disk --> c3t2d0 is 0/1/1/1.2.0

6. Initialize the efi partition for use.

# efi_fsinit -d /dev/rdsk/c3t2d0s1

7. Populate the /efi/hpux/ directory in the new EFI system partition.

# mkboot -e -l /dev/rdsk/c3t2d0

8. Change the auto file for the mirror to boot without quorum.
NOTE: Using "s1"

# echo "boot vmunix -lq" > /tmp/AUTO.lq
# efi_cp -d /dev/rdsk/c3t2d0s1 /tmp/AUTO.lq /EFI/HPUX/AUTO

NOTE: We assume that if we boot from the primary, the mirror is fully
functional and therefore we don't need to override quorum. Your site
might require that both disks override quorum.

9. Verify the contents of the auto file on the primary and the mirror.
NOTE: Using "s1"

# efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.pri
# efi_cp -d /dev/rdsk/c3t2d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.alt
# cat /tmp/AUTO.pri
# cat /tmp/AUTO.alt

10. Add the new partition to vg00.
NOTE: Using "s2"

# pvcreate -fB /dev/rdsk/c3t2d0s2
# vgextend vg00 /dev/dsk/c3t2d0s2

11. Mirror all logical volumes in vg00.
NOTE: Using "s2"

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

12. Add the new disk to /stand/bootconf.
NOTE: Using "s2"

# echo "l /dev/dsk/c3t2d0s2" >> /stand/bootconf

13. Verify that the new disk was added to vg00, and the lv's are in sync.

# vgdisplay -v vg00

14. Verify that the BDRA was updated properly. Take note of the HW paths for
step 15.

# lvlnboot -v

15. Add EFI primary and high availability boot path menu entries.

# setboot -p 0/1/1/0.1.0 <-- Set primary disk
# setboot -h 0/1/1/1.2.0 <-- Set mirror disk
# setboot -b on <-- Set autoboot on

16. Verify that the primary and mirror boot paths are configured properly.

# setboot

17. Test the new mirror by booting off of it.

# shutdown -r -y 0

18. Select "HP-UX HA Alternate Boot" to test the mirror.

EFI Boot Manager ver 1.10 [14.61] Firmware ver 2.21 [4334]
Please select a boot option
HP-UX Primary Boot: 0/1/1/0.1.0
HP-UX HA Alternate Boot: 0/1/1/1.2.0
EFI Shell [Built-in]

20. Verify which disk/kernel you booted from.

# grep "Boot device" /var/adm/syslog/syslog.log
vmunix: Boot device's HP-UX HW path is: 0.1.1.1.2.0

21. Remove temporary files.

# rm /tmp/partitionfile /tmp/AUTO*




Time has a wonderful way of weeding out the trivial
Mridul Shrivastava
Honored Contributor

Re: Disk mirroring

SORRY PLEASE IGNORE THE ABOVE PROCEDURE IT IS FOR ITANIUM SYSTEMS, I PASTED WRONGLY...

PLEASE REFER THE FOLLOWING DOC TO MIRROR VG00:

http://docs.hp.com/en/B2355-90672/ch07s07.html
Time has a wonderful way of weeding out the trivial
Shashi Bhargava
Advisor

Re: Disk mirroring

hi,

For disk mirroring,you should have
Mirror-UX software installed on your system.

whether you want to mirror root disk or data disk revert back
Shashi Bhargava
Advisor

Re: Disk mirroring

hi,

For root disk mirroring

pvcreate -B /dev/rdsk/cxtxdx
mkboot /dev/rdsk/cxtxdx
vgextend /dev/vg00 /dev/dsk/cxtxdx
for i in 1 2 3 4 5 6 6 7
>do
>lvextend -m 1 /dev/vg00/lvol$i /dev/dsk/cxtxdx
>done;
lvlnboot -R /dev/dsk/cxtxdx
mkboot -a "hpux -lq" /dev/rdsk/cxtxdx

mirroring is completed, then try booting with new hdd by changing the boot disk in PDC

Shashi Bhargava
Advisor

Re: Disk mirroring

hi,

For root disk mirroring

pvcreate -B /dev/rdsk/cxtxdx
mkboot /dev/rdsk/cxtxdx
vgextend /dev/vg00 /dev/dsk/cxtxdx
for i in 1 2 3 4 5 6 7 8
>do
>lvextend -m 1 /dev/vg00/lvol$i /dev/dsk/cxtxdx
>done;
lvlnboot -R /dev/dsk/cxtxdx
mkboot -a "hpux -lq" /dev/rdsk/cxtxdx

mirroring is completed, then try booting with new hdd by changing the boot disk in PDC

Asif Sharif
Honored Contributor
Solution

Re: Disk mirroring

Assalam-O-Alaikum Yaqub,

Please find the attached file for detail mirroring root disks process. First you need to check do you have Mirroring software. Then follow the attached document.

Regards,
Asif Sharif
Regards,
Asif Sharif
YAQUB_1
Respected Contributor

Re: Disk mirroring

Hi All,

Thank for your all unicqu support.

Rdge-Yaqub

Assalam-O-Alaikum Asif Bhai,

Could you send me your email address; I'll personal contact with you.

Thanks & Regard
Mohammad Yaqub
E-mail: info_yaqub@yahoo.com
YAQUB_1
Respected Contributor

Re: Disk mirroring

Thank for all for your unique support.

Thanks