- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mkboot : mirroring VG00
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
Forums
Discussions
Discussions
Discussions
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
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
10-18-2004 01:50 AM
10-18-2004 01:50 AM
Having 2 disk in vg00, i do several mkboot command :
#mkboot /dev/rdsk/c2t6d0
#mkboot -l /dev/rdsk/c2t6d0
#mkboot -a "hpux /stand/vmunix -lq" /dev/rdsk/c2t6d0
#mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c2t6d0
Each time answering 'yes'. I don't really know why i have to do all those mkboot things.
Then i made all my lvextend (the lvol2 one's tell me something about LIF but mirror it anyway)
Do i forget some commands ?
The output of lvlnboot command is :
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (0/0/0/2/0.6.0) -- Boot Disk
/dev/dsk/c2t6d0 (0/0/0/3/0.6.0)
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c2t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c2t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c2t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0
Current path "/dev/dsk/c6t0d0" is an alternate link, skip.
Current path "/dev/dsk/c6t1d0" is an alternate link, skip.
Current path "/dev/dsk/c6t2d0" is an alternate link, skip.
Current path "/dev/dsk/c6t3d0" is an alternate link, skip.
Current path "/dev/dsk/c6t4d0" is an alternate link, skip.
Current path "/dev/dsk/c6t5d0" is an alternate link, skip.
#
is there a way to know if the pvcreate -B succeded ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 01:54 AM
10-18-2004 01:54 AM
Re: mkboot : mirroring VG00
1. Create a physical volume with a boot reserved area
"pvcreate -B /dev/rdsk/c1t6d0"
2. Add the physical volume to the root VG
"vgextend /dev/vg00 /dev/dsk/c1t6d0"
3. Use mkboot to place the boot utilities in the boot area and add the AUTO file
"mkboot /dev/rdsk/c1t6d0"
"mkboot -a "hpux -lq" /dev/rdsk/c1t6d0"
4. Use mkboot to update the AUTO file on the primary boot disk
"mkboot -a "hpux -lq" /dev/rdsk/c0t6d0"
5. Mirror the stand, root and swap logical volumes
"lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t6d0"
6. Modify your alternate boot path
"setboot -a 8/8.6.0 # use the path of your new boot disk"
7. Edit /stand/bootconf and add your new mirrored boot disk.
That's all there is to it. You may notice that I left out any lvlnboot commands. That is because they are not ne
cessary - see the man page:
"This command should be run in recovery mode (-R) whenever the configuration of the root volume group is affected
by one of the following commands: lvextend, lvmerge, lvreduce, lvsplit, pvmove, lvremove, vgextend, or vgreduce
(see lvextend(1M), lvmerge(1M), lvreduce(1M), lvsplit(1M), pvmove(1M), lvremove(1M), vgextend(1M), and vgreduce(1
M)). Starting with HP-UX Release 10.0, this is done automatically."
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 01:58 AM
10-18-2004 01:58 AM
Re: mkboot : mirroring VG00
1. you can use:
mkboot -a "hpux -lq" /dev/rdsk/c2t6d0
insted of:
mkboot -a "hpux /stand/vmunix -lq" /dev/rdsk/c2t6d0
2. you should to do
mkboot -a "hpux /stand/vmunix -lq" for your orginal drive too.
3. on the end of script you have to do:
lvlnboot -b /dev/vg00/lvol1
lvlnboot -v -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 02:13 AM
10-18-2004 02:13 AM
Re: mkboot : mirroring VG00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 02:29 AM
10-18-2004 02:29 AM
Re: mkboot : mirroring VG00
How can i remove my PV dev/dsk/c2t6d0 from the VG00 in order to do all those command (pvcreate, vgextend, mkboot ....) ?
Without datalost ofcourse .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 02:39 AM
10-18-2004 02:39 AM
Re: mkboot : mirroring VG00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 02:52 AM
10-18-2004 02:52 AM
Solutione.g.
lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t6d0
Next you do a vgreduce removing your 2nd PV.
e.g.
vgreduce /dev/vg00 /dev/dsk/c2t6d0
Man lvreduce, vgreduce for details. Your original boot disk will remain intact.
You can then do a pvcreate -B -f /dev/rdsk/c2t6d0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 03:22 AM
10-18-2004 03:22 AM
Re: mkboot : mirroring VG00
Everything works fine :
database, root # vgreduce /dev/vg00 /dev/dsk/c2t6d0
Volume group "/dev/vg00" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
database, root # pvcreate -B /dev/rdsk/c2t6d0
Physical volume "/dev/rdsk/c2t6d0" has been successfully created.
database, root # vgextend /dev/vg00 /dev/dsk/c2t6d0
Volume group "/dev/vg00" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
database, root # mkboot /dev/rdsk/c2t6d0
database, root # mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t6d0
database, root # lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
database, root # lvlnboot -v /dev/vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (0/0/0/2/0.6.0) -- Boot Disk
/dev/dsk/c2t6d0 (0/0/0/3/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0
database, root #
i now have to mirror all the lv and make a try using setboot.
Thx all for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 03:24 AM
10-18-2004 03:24 AM