- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I keep my VG's intact when doing a cold up...
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
01-08-2003 11:20 AM
01-08-2003 11:20 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 11:28 AM
01-08-2003 11:28 AM
Re: How can I keep my VG's intact when doing a cold upgrade from 10.20 to 11i?
You should be able to do a vgexport, install 11i, and then do a vgimport to get back your filesystems. I've done it before on a cold install from 10.20 to 11.00, and it should work the same way going to 11i. You'll just have to keep track of which PVs make up your VG now, and be able to correctly identify them after your installation of 11i. After installing 11i, you'll need to do the mkdir in /dev for your vgname, and do the mknod for the group file with a unique minor number. Then you'll be ready for your vgimport.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 11:29 AM
01-08-2003 11:29 AM
SolutionBefore you start the process, do a vgexport -p -s -m /tmp/vgNNmap /dev/vgNN.
Then save the resulting mapfiles somewhere where you can get at them after the install. Then all you need to do is:
mkdir /dev/vgNN
mknod /dev/vgNN/group c 64 0xNN0000
vgimport -s -m /tmp/vgNNmap /dev/vgNN
That's all there is to it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 11:29 AM
01-08-2003 11:29 AM
Re: How can I keep my VG's intact when doing a cold upgrade from 10.20 to 11i?
Yes. Your vgexport and vgimport with the map files will work.
Generate map files with various options and save them on another system.
#vgexport -p -v -s -m /tmp/vg01.s.map vg01
#vgexport -p -v -m /tmp/vg01.map -f /tmp/vg01.disks
#ll /dev/vg*/group > /tmp/group.info
#cp /etc/fstab /tmp/fstab.old
Copy vg01.s.map, vg01.map, group.info, fstab.old and vg01.disks to another system.
Once you are done with installing 11i, import the volume groups back by following this process.
Copy the above files into /tmp directory
#mkdir /dev/vg01
#mknod /dev/vg01/group -c 64 0x0?0000
(use the group number from group.info file)
Edit /tmp/vg01.disks and change the devices files. Only the controller numbers (cxx) will change.
#ioscan -fnC disk > /tmp/disk.out
Look at disk.out and see how the controller numbers got changed. So, modify vg01.disks accordingly. Once it is done import the vg.
#vgimport -v -m /tmp/vg01.map -f /tmp/vg01.disks vg01
If you are not sure about the disks, then you can import it with -s option.
#vgimport -v -s -m /tmp/vg01.s.map vg01.
This will scan the disks and import the ones that correspond to vg01.
#vgchange -a y vg01
paste the entries corresponding to vg01 from fstab.old into /etc/fstab
#mount -a
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 11:33 AM
01-08-2003 11:33 AM
Re: How can I keep my VG's intact when doing a cold upgrade from 10.20 to 11i?
The use of the -s option on both the import and export in my example will eliminate having to fool around with the device files. The import will scan the LVM headers and construct the VGs for you.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 11:41 AM
01-08-2003 11:41 AM
Re: How can I keep my VG's intact when doing a cold upgrade from 10.20 to 11i?
Just a word of clarification.
I do not encourage the use of "-s" option unless it is inevitable. If you have enabled load balancing by changing the alternate links on the old system, you will have to redo it again if you use -s option. However, by simply replacing the controller numbers in the -f output, you can get the exact configuration back with -f option.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 07:28 AM
01-09-2003 07:28 AM
Re: How can I keep my VG's intact when doing a cold upgrade from 10.20 to 11i?
Keep in mind that alternate links do not provide load balancing. They are just for failover. You'll want to check all of your links when you are finished and maybe adjust them to balance the load on your controllers.