Operating System - HP-UX
1829378 Members
5450 Online
109991 Solutions
New Discussion

Mirror boot and root logical volume

 
SOLVED
Go to solution
Shelley Zhou
Occasional Advisor

Mirror boot and root logical volume

Hello,

On my L2000-44 server, it's running HP-UX B11.11 OS. There are four hard disks which are configured in VG vg00. It's not mirrored. Only one of the four disks has some free space left. Now I want to mirror only the boot and root LV with the disk which has free space and make this disk bootable.
My question is if it is possible and how to do it if possible.
In the attachment, you can see the output from some commands such as 'ioscan -fnC disk', 'lvlnboot -v vg00', 'setboot -v' etc.
If you need further information to help me, don't hesitate to let me know!

Thank you in advance!

Best Regards
Shelley
6 REPLIES 6
J. Bravo
Respected Contributor
Solution

Re: Mirror boot and root logical volume

Hello:

You can't do it. You need to specify pvcreate -B in the new bootable disk, and this command will erase all of your information. If you want to make a bootable disk mirror, you need a new disk or freed space in one of your disks.

Regards;

J. Bravo
Torsten.
Acclaimed Contributor

Re: Mirror boot and root logical volume

No way.

A boot disk needs a special reserved area at the beginning for the boot files. This area is created with pvcreate -B ...

Anyway, to have only the first 3 LVOLs mirrored won't help you really.

You have all disks in vg00 - bad design.

Make sure you have always a good ignite backup available.

Consider to buy an external chassis and mirror (or better re-design) your disks.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: Mirror boot and root logical volume

Shalom,

Here is a general procedure:


Sep 10, 2003 19:39:15 GMT Unassigned
Yet another typo corrected.

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

Take care that none of the mirror copies of the logical volumes end up on the same disk.

Example, /dev/vg00/lvol1 must be on two different disks.

I recommend mirroring the following filesystems:
/
/stand
/var
/usr
/tmp
/opt (To maintain normal system operation of optional software.

SEP

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: Mirror boot and root logical volume

To say it very clearly

pvcreate will delete all data on the disk.

So be careful!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Shelley Zhou
Occasional Advisor

Re: Mirror boot and root logical volume

Thanks to all of you!! //Shelley
Shelley Zhou
Occasional Advisor

Re: Mirror boot and root logical volume

I got answer from the advices.