HPE 9000 and HPE e3000 Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create a second boot area??

 
SOLVED
Go to solution
rmueller58
Valued Contributor

How do I create a second boot area??

I need to define a second boot device location as it appears we have drive failure or controller coming on the existing boot partition. K Class server with a disk subsystem

10/0.0.0 1 LVM vg04 4095 SEAGATE ST34572WC
10/0.1.0 1 LVM vg03 4095 SEAGATE ST34572WC
10/0.3.0 1 LVM vg02 2033 HP C2490 SCSI Disk
10/0.4.0 1 LVM vg02 2033 HP C2490 SCSI Disk
10/0.5.0 1 LVM vg01 2033 HP C2490 SCSI Disk
10/0.6.0 1 LVM vg00 2033 HP C2490 SCSI Disk 10/12/5.2.0 1 Unused 483 Toshiba CD-ROM SCSI

Currently the boot sector sits on 10/0.6.0
We'd like to have an alternate boot available set on 10/0/0.0 or 10/0/1.0. We only have 2 gb allocated for that. it is a 4gb drive..

our current mounts are as follows:
/ /dev/vg00/lvol3
/home /dev/vg00/lvol4 /net Auto :
/opt HFS /dev/vg00/lvol5
/opt/langtools HFS /dev/vg03/lvol304
/stand HFS/dev/vg00/lvol1
/tmp HFS /dev/vg03/lvol301
/u HFS /dev/vg04/lvol401
/usr HFS /dev/vg00/lvol7
/usr/informix HFS /dev/vg03/lvol3
/var HFS /dev/vg00/lvol8

If someone can point in the directions of how to do this I would appreciated it greatly

rex m!
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: How do I create a second boot area??

If the disk you want to use as another boot disk is already in use within the VG00 volume group or another volume group, then I am sorry to say you are out of luck. If you had a spare, unused disk attached to the system, you could duplicate you boot disk. The problem is that the disk that you boot from has to have 1 extent reserved for the boot area prior to creating the volume group structures on the disk. There is no way to do this after the VG has been created.

And besides, it is not a matter of just moving the boot record to the other disk, you have to duplicate the majority of VG00 (/, /stand, Pri. Swap., etc.) in order to have a bootable system.

Have a look at Peggy Fong's response in the following post for a way to copy your VG00 to another spare disk.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xafc36af52b04d5118fef0090279cd0f9,00.html

If you don't have a spare disk, I would recommend that you download and install Ignite/UX ( http://software.hp.com/products/IUX ) and create a make_tape_recovery tape of your system (hopefully you have a tape drive attached). This tape will allow you to boot from the tape and recreate VG00 should the disk ever go bad. This tape will recreate your system exactly as it was at the point in time that the tape was made.

I highly recommend this solution. Ignite/UX is a FREE product.
KapilRaj
Honored Contributor

Re: How do I create a second boot area??

Senior experts may correct me , i don't think there is some prob with it but still some syntaxes which may affect him badly.

kaps

I hv the solution for you,

Let me assume u r not using /dev/vg02 .... 2033 HP C2490 SCSI Disk

Using bdf, find out the capacities of file systems

/dev/vg00/lvol1 ... i use S1,S2,S3,S4,S5 variables for these sizes.
/dev/vg00/lvol2 (Size of /dev/vg00/lvol3 as S3)
/dev/vg00/lvol3
/dev/vg00/lvol4
/dev/vg00/lvol5
/dev/vg00/lvol7
/dev/vg00/lvol8

vgexport /dev/vg02

pvcreate -f -B /dev/dsk/c0t3d0

mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x020000
vgcreate /dev/vg02 /dev/dsk/c0t3d0

mkboot /dev/rdsk/c0t3d0
mkboot -a "hpux" /dev/rdsk/c0t3d0

lvcreate -L S1 -C y -r n -n lvol1 /dev/vg02
lvcreate -L S2 -C y -r n -n lvol2 /dev/vg02
lvcreate -L S3 -C y -r n -n lvol3 /dev/vg02
lvcreate -L S4 -n lvol4 /dev/vg02
lvcreate -L S5 -n lvol5 /dev/vg02
lvcreate -L S7 -n lvol7 /dev/vg02
lvcreate -L S8 -n lvol8 /dev/vg02

newfs -F hfs /dev/vg02/lvol1
newfs -F vxfs /dev/vg02/lvol3
newfs -F vxfs /dev/vg02/lvol4
newfs -F vxfs /dev/vg02/lvol5
newfs -F vxfs /dev/vg02/lvol7
newfs -F vxfs /dev/vg02/lvol8

mkdir /newboot
mkdir /newroot
mkdir /newhome
mkdir /newopt
mkdir /newusr
mkdir /newvar

vgchange -a y /dev/vg02

mount /dev/vg02/lvol1 /newboot
mount /dev/vg02/lvol3 /newroot
mount /dev/vg02/lvol4 /newhome
mount /dev/vg02/lvol5 /newopt
mount /dev/vg02/lvol7 /newusr
mount /dev/vg02/lvol8 /newvar

mkdir /newroot/tmp

cd /stand
find . -xdev -depth -print |cpio -pxdm /newboot&

cd /
find . -xdev -depth -print |cpio -pxdm /newroot&

cd /home
find . -xdev -depth -print |cpio -pxdm /newhome&

cd /opt
find . -xdev -depth -print |cpio -pxdm /newopt&

cd /usr
find . -xdev -depth -print |cpio -pxdm /newusr&

cd /var
find . -xdev -depth -print |cpio -pxdm /newvar

lvlnboot -b /dev/vg02/lvol1
lvlnboot -r /dev/vg02/lvol3
lvlnboot -s /dev/vg02/lvol2
lvlnboot -d /dev/vg02/lvol2
lvlnboot -R
lvlnboot -v

cp -R /etc/lvmconf /newroot/etc

Now you can boot from 10/0.3.0 , once you boot it you hv to
perform somemore actions theyare

01. Update /etc/fstab file
02. Import all the vg's
03. update /etc/fstab file
04. take a vgcfgbackup

If u need assistance for these please update me

best of luck,

Thanks for the question !! Such interesting questions are good to answer


kaps
Nothing is impossible
rmueller58
Valued Contributor

Re: How do I create a second boot area??

thanks