- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reusing disk as a mirror boot disk
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
тАО06-10-2006 02:18 AM
тАО06-10-2006 02:18 AM
HI. Currently we have 1 boot disk with ux 11.11v1 on it, and another boot disk with ux11.00 on it. We are ready to blow away the ux11.oo disk, and wish to reuse the disk as the mirror disk of ux11.11v1 disk.
Would someone please check if I have the process correct??
For the 11.00 disk:
remove the 11.00 info and vol structures
umount filesystems on vg to be removed (vg11).
vgchange -a n /dev/vg11
lvremove -f for all lvols on vg11.
lvremove /dev/vg11
Make bootable -
pvcreate -fB /dev/rdsk/cYtXd0 - the disk that had the 11.00 on it.
mkboot /dev/Rdsk/cYtXd0
mkboot -a "hpux -lq(;0)/stand/vmunix /dev/Rdsk/cYtXd0
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -r /dev/vg00/lvol3 /dev/vg00
( Do I need to really issue the above 3 cmds, because wouldnt the bootability, swap etc be there after the lvols are extended and vg synd'd? )
lvextend -m 1 /dev/vg00/lvol1/ /dev/dsk/cYtXd0 extending the lvo1s on to the disk that had ux11.0 on it.
Issue the lvextend command for each of the lvols on the vg00.
vgchange -a n /dev/vg00
vgsync /dev/vg00
This command takes a while to execute, due to amount of data on the original disk being mirrored.
vgchange -a y /dev/vg00
Once complete, verify the two disks are in the one vol group:
lvlnboot -v
and
vgdisplay -v /dev/vg00
Have I got this right??
Thanks for input, and plenty of points to be had.
Maria
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2006 02:27 AM
тАО06-10-2006 02:27 AM
Re: Reusing disk as a mirror boot disk
You do not have to do the vgchange and vgssync commands. When you extend the mirrors to the second disk, each lvol is sync'd at that time - in fact the lvextend command will take varying amount of time to complete, depending on the size of the lvol being mirrored.
The lvlnboot commands are a good set of commands to run - That way you are sure everthing is fully configured.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2006 03:00 AM
тАО06-10-2006 03:00 AM
Solution1. If you do vgchange -a n /dev/vg11--> you won't be able to execute any command successfully after this as it will give error that vlmtab doesn't contain this volume so lvreduce/lvremove and vgremove command needs to be executed when vg11 is active.
2. After executing pvcreate command need to execute vgextend /dev/vg00 /dev/dsk/cxtydz
for step by step procedure please refer the following link to mirror the root disk.
Please make a note that if we deactivate the vg then no vg related commad would complete successfully as lvmtab won't have any details of that vg (its used when need to restore vg configuration or configuration related activities).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2006 08:55 AM
тАО06-10-2006 08:55 AM
Re: Reusing disk as a mirror boot disk
add the old disk to your running vg
,extend the lvols so you are mirrored.
You are pretty much done.
shutdown and boot from BHC to the mirror disk to test.
You can use lifcp /dev/rdsk/cxtxd0:auto -
this will show you the auto file for boot to confirm the settings used during mkboot as a check.
Easy as pie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2006 09:17 AM
тАО06-10-2006 09:17 AM
Re: Reusing disk as a mirror boot disk
add on to above answers.
you do not need to remove all lv's separately.
# vgchange -a n /dev/vg11
# vgexport /dev/vg11
Just before you pvcreate the old 11.0 disk, copy something to the first part of the disk to remove all old lvm information.
# dd if=/dev/null of=/dev/rdsk/cxtydz bs=1024k count=10
# pvcreate -fB /dev/rdsk/cYtXd0
# mkboot -l /dev/dsk/cxtydz
# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cxtydz -->Mirror Boot disk
# vgextend /dev/vg00 /dev/dsk/cxtydz
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -R
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cxtydz
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/cxtydz
# lvextend -m 1 ... do this for all remaining lvols in vg00
# vgcfgbackup vg00
check part
# lvlnboot -v
and
# vgdisplay -v /dev/vg00
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2006 12:33 PM
тАО06-11-2006 12:33 PM
Re: Reusing disk as a mirror boot disk
regards
Maria