Operating System - HP-UX
1752806 Members
5690 Online
108789 Solutions
New Discussion юеВ

Mirror help needed (testing mirrored disk)

 
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

We will, is it safe to lvreduce while the server's online with users logged in running jobs. Thanks
James R. Ferguson
Acclaimed Contributor

Re: Mirror help needed (testing mirrored disk)

HI:

> it safe to lvreduce while the server's online with users logged in running jobs.

Yes.

You can also safely mirror while your users are operating normally.

Regards!

...JRF...
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Hi all, so yeah I succesfully removed all the mirrors, now I gotta go through the docs on mirroring, I'll keep you posted if anything comes up. Thanks
Geoff Wild
Honored Contributor

Re: Mirror help needed (testing mirrored disk)

Re-mirror the root disk - follow this procedure:

More then likely, he missed step 6:

Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 is the disk you want to make a mirror of.

1. Create a bootable LVM disk to be used for the mirror.
pvcreate -B /dev/rdsk/c3t6d0
2. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c3t6d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c3t6d0
4. Copy the correct AUTO file into the new LIF area.
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c3t6d0
5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. Ensure that all devices in vg00, such as /usr, /swap,
etc., are mirrored.
The following is an example of mirroring the boot logical volume:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
The following is an example of mirroring the primary swap logical
volume:
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0
The following is an example of mirroring the root logical volume:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0
6. Update the boot information contained in the BDRA for the mirror
copies of boot, primary swap and root.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
7. Check if the BDRA is correct.
/usr/sbin/lvlnboot -R /dev/vg00
8. Verify that the mirrors were properly created.
lvlnboot -v /dev/vg00
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

vgdisplay -v vg00

Then lvextend for all other lvols:

lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/c3t6d0



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Hi all, I got done with the instructions, I just gotta test it, there's one thing I didn't see on most of the guides out there, is the quorum option which I heard can be helpful in an event any of my 2 hdd's die -
# mkboot -a "hpux -lq" /dev/rdsk/c0t5d0
can I still run that command even though I'm done going through the guide. Thanks
James R. Ferguson
Acclaimed Contributor

Re: Mirror help needed (testing mirrored disk)

Hi (again):

Yes, you can run 'mkboot' to set the low quorum.

Regards!

...JRF...
Muttikkal_1
Occasional Contributor

Re: Mirror help needed (testing mirrored disk)

for making mirror disk for root
you want to use -B option with pvcreate command
then vgextend to the root vg
then lvextend one by one lvs with -m 1 option
Pls cross check u did all these steps properly
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Hi all, we finally got to test the mirror this weekend and it was a success, we now have a bootable mirror drive. Thanks to all your advice and tips.
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Closing thread