- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Creating new boot disk (lvlnboot errs)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2008 01:16 PM
тАО04-23-2008 01:16 PM
Creating new boot disk (lvlnboot errs)
http://www.met.ca/itrc/index.php?option=com_content&task=view&id=34&Itemid=2
during the process of creating a mirror of the original boot drive.
Logical volume groups were lvreduced to no mirror, then the disk was removed from the volume group with vgreduce.
Now this disk is configured with new filesystems and a larger swap and /tmp for our needs.
The trouble is that lvlnboot doesn't display data the way I would think it should, and it generates an error when trying to fix it:
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk4_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk4_p2
Root: lvol3 on: /dev/disk/disk4_p2
Swap: lvol2 on: /dev/disk/disk4_p2
Dump: lvol2 on: /dev/disk/disk4_p2, 0
Boot Definitions for Volume Group /dev/vg00b:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk3_p2 -- Boot Disk
No Boot Logical Volume configured
Root: ??? on: /dev/disk/disk3_p2
No Swap Logical Volume configured
No Dump Logical Volume configured
# lvlnboot -r /dev/vg00b/lvol3 /dev/vg00b
lvlnboot: A Logical Volume has already been assigned
to be the Root or Swap Logical Volume.
What do I do with this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2008 01:46 PM
тАО04-23-2008 01:46 PM
Re: Creating new boot disk (lvlnboot errs)
> Logical volume groups were lvreduced to no mirror, then the disk was removed from the volume group with vgreduce.
Why did you do this?
> Now this disk is configured with new filesystems and a larger swap and /tmp for our needs.
> You could have added a secondary device swap and simply enlarged the '/tmp' logical volume and filssystem. This could have been done while the logical volumes were mirrored.
> The trouble is that lvlnboot doesn't display data the way I would think it should, and it generates an error when trying to fix it:
That's clear.
I suggest that you start from scratch. I also suggest that you use the official (not copied) HP-UX documention:
http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
http://www.docs.hp.com/en/5992-3385/index.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2008 01:47 PM
тАО04-23-2008 01:47 PM
Re: Creating new boot disk (lvlnboot errs)
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
Thanks to all that made this doc right.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2008 02:10 PM
тАО04-23-2008 02:10 PM
Re: Creating new boot disk (lvlnboot errs)
The reason I'm not starting over is that this is a production environment and I can't just reinstall the operating system when people are expecting to get their work done.
I'm doing essentially these steps:
http://www.docs.hp.com/en/5992-3385/ch03s04.html#v1446112
and have found myself at step 10 with the error given above.
I am also not using cXtXdX as this is HP-UX 11i v3 and it uses the persistent DSFs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2008 09:54 PM
тАО04-23-2008 09:54 PM
Re: Creating new boot disk (lvlnboot errs)
http://www.docs.hp.com/en/5992-3385/ch03s04.html#v1446112
Your procedure applies to older hp-ux versions on PA-RISCs!
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2008 10:57 AM
тАО04-24-2008 10:57 AM
Re: Creating new boot disk (lvlnboot errs)
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1209062777690+28353475&threadId=132937
One of the steps (step #2) in the process described there mentioned the lvrmboot command:
2. Remove the swap and dump link to the current primary swap.
lvrmboot -s /dev/vg00
lvrmboot -d /dev/vg00/lvol2
So I looked up lvrmboot and did a lvrmboot -r on the specified volume. The problem was the '???' listed in the lvlnboot display (root volume link). After a lvrmboot -r all of that was cleared out.
I also found this document that was helpful:
http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01037913-2
That PDF document is "HP-UX Software Recovery Handbook - Logical Volume Manager (LVM)"
Thanks for trying!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2008 10:59 AM
тАО04-24-2008 10:59 AM