Operating System - HP-UX
1753876 Members
7345 Online
108809 Solutions
New Discussion юеВ

Re: how to recreate boot definitions

 
joseph51
Regular Advisor

how to recreate boot definitions

hi,

can any one tell me how tho delete the boot definitions when the OS is running, i mean root,boot,dump,swap,..

and how to create it online.
my actual plan is --

I have one server .in that i have splitted the lvols,for patching. after patching i found that the application is not working. so i booted the server with the unpatched volume. NO wi want to boot the server from patched volume and to test the application..
this is my action plan i created.please correct me if there is somethin gwron in this steps,because its a production server..

------------------


Action Plan
---------------
1) Edit the /etc/fstab file--remove the entry of "b"

#mount /dev/vg00/lvol3 /mnt
#cd /mnt/etc
#vi fstab

/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /home vxfs delaylog 0 2
/dev/vg00/lvol5 /opt vxfs delaylog 0 2
/dev/vg00/lvol6 /tmp vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg00/lvol11 /apps vxfs delaylog 0 2
/dev/vg00/lvol10 /apps/appworx vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg00/lvol12 /data vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg00/lvol13 /oracle vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg00/lvol14 /apps/retek/rdw9.0 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg00/lvsrm /var/adm/perfmgr vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg00/lvol15 /opt/oracle vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2

2) Remove and recreate the boot definitions

lnrmboot -R

lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
------
please help me..
and is this the right command (lvrmboot -R)to delete all the boot definitions.and if i delete this can i create the boot definition with above command for the patched volume..

and my back out plan is

do the same in reverse..
3 REPLIES 3
Roopesh Francis_1
Trusted Contributor

Re: how to recreate boot definitions

Binu,

1) Edit the /etc/fstab file--remove the entry of "b"(if it is there)
Boot the system in LVM maintenance mode using hpux -lm from ISL.
remove LVM logical volume link to root, primary swap, or dump volume using lvrmboot
man pages for lvrmboot:
http://docs.hp.com/en/B9106-90008/lvrmboot.1M.html
prepare LVM logical volume to be root, boot, primary swap, or dump volume using lvlnboot.
Man pages for lvlnboot:
http://docs.hp.com/en/B9106-90008/lvlnboot.1M.html
reboot the system in multiuser mode.
Thanks,
Lijeesh N G_1
Respected Contributor

Re: how to recreate boot definitions

Hi,

1) can any one tell me how to delete the boot definitions when the OS is running,
i mean root,boot,dump,swap,.??
===>
#lvrmboot -r vg00

2) how to create it online?
===>
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2

3) so i booted the server with the unpatched volume.
==> How did you booted from unpatched volume?.
>Did you changed BDRA information with lvrmboot and lvlnboot command?
>When did you edited /etc/fstab? Before splitting lvols or after splitiing lvols?

4) Now i want to boot the server from patched volume and to test the application,How?
==>I hope you changed BDRA and I hope the present lvlnboot -v command output is,

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
-- Boot Disk
-- Boot Disk
Boot: lvol1b on:
Root: lvol3b on:
Swap: lvol2b on:
Dump: lvol2b on:

If yes, change it with lvrmboot and lvlnboot commands,
#lvrmboot -r vg00
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2

==>For /etc/fstab entry,When did you changed the entry; Before splitting lvols
or after splitting lvols.

=>If before splitting lvols,you have to change the fstab entry; as you told remove "b",
#mkdir /lvol3
#mount /dev/vg00/lvol3 /lvol3
#vi /lvol3/etc/fstab

=>If after splitting lvols,I hope you changed only in unpatched volume by mounting
the lvol3b manually. In this case no need to change fstab entry.

==>Reboot the server with patched disk.

5) Please correct me if there is something wrong in this steps,because its a production server?

I recommend you
==>Take ignite backup always if you do patching.
==>Use DRD-Dynamic Root Disk product like this situation instead of doing splitting and merging.


Can you give me following command present outputs as ***attachment***.
#lvlnboot -v
#cat /etc/fstab
#bdf
#mount
#vgdisplay -v vg00


Regards,
LIJEESH N G







Lijeesh N G_1
Respected Contributor

Re: how to recreate boot definitions

Can you give me following command present outputs as ***attachment***.
#lvlnboot -v
#cat /etc/fstab
#bdf
#mount
#vgdisplay -v vg00

Also,

#mkdir /lvol3
#mount /dev/vg00/lvol3 /lvol3
#cat /lvol3/etc/fstab <<==this optput also

Regards,
LIJEESH N G