- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Lost vg02 after swapping servers
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
05-24-2002 03:35 AM
05-24-2002 03:35 AM
I have lost a volume group after swapping servers. I basically swapped out an L1000 server with a L2000 server, by plainly taking the disks out of one and putting into the other. This worked fine as in everything booted up ok, all the disks are known to the server etc, but I cannot see volume group vg02 for some reason. This is what I get when trying to display it -
# vgdisplay -v vg02
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "vg02".
Why did this not come back up and what do I do to activate it again.
Thanks
Trev
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 03:38 AM
05-24-2002 03:38 AM
Re: Lost vg02 after swapping servers
vgchange -a y /dev/vg02
Hilary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 03:40 AM
05-24-2002 03:40 AM
Re: Lost vg02 after swapping servers
You haven't lost anything. Simply 'vgimport' the volume group:
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x020000
# vgimport vg02
# vgchange -a y vg02
Have a look at the man pages for 'vgexport' and 'vgimport' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 03:47 AM
05-24-2002 03:47 AM
SolutionTo solve the problem you need to export and reimport your VG using the VGID (parameter -s) so during the import the system will scan all the disks attach to it to retrieve the correct disks:
ll /dev/vg02/group
====> note the minor number (could be 0x020000)
vgexport -s -m /tmp/vg02 vg02
mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x020000
====> use the minor number that you have noted instead of 0x020000
vgimport -s -m /tmp/vg02 vg02
vgchange -a y vg02
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 03:51 AM
05-24-2002 03:51 AM
Re: Lost vg02 after swapping servers
Sorry, I forgot to add the pv_path to the 'vgimport', for example:
# vgimport -v /dev/vg02 /dev/dsk/cXtYdZ
Note that I also enabled the 'v'erbose messages. I presume that you never did a 'vgexport' from the old server and therefor do not have mapfiles, so I have not used this syntax. In the absence of 'mapfiles', logical volume names are created using the default naming convention 'lvolNN' where 'NN' us the logical volume minor number.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 03:57 AM
05-24-2002 03:57 AM
Re: Lost vg02 after swapping servers
Hi All,
Thanks for your responses. I still have the device link to vg02, so I don't think I have to do the mkdir, mknod and vgimport commands or do I ???? I am thinking just the vgchange command will fix it ?
# ls -lad /dev/vg02
drwxrwxrwx 2 root sys 1024 Apr 26 16:13 /dev/vg02
Will just the vgchange command work here ?
Thanks
Trev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 04:02 AM
05-24-2002 04:02 AM
Re: Lost vg02 after swapping servers
If you physically moved the disk(s) from one server to another, it is quite likely that the physical path changed. In that case, you need to 'vgimport' as indicated, using the new path.
If you have the appropriate directory and group files, then yes, you may skip that part.
If a 'strings /etc/lvmtab/' does, in fact show your vg02 associated with the correct physical path(s), then, yes, try 'vgchange -a y vg02'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 04:05 AM
05-24-2002 04:05 AM
Re: Lost vg02 after swapping servers
If the instance number of your disks have changed.. this will impact the device name of your disks: /dev/dsk/c?t?d?. So you could try the vgchange if you want it won't hurt you but look at the output of the command and if your disks are not present you have to follow the previous set of commands I have given to you.
These commands will first remove the current definition that your dsystem knows for vg02 (vgexport) then will reimport correctly these informartion using the new device names.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 04:25 AM
05-24-2002 04:25 AM
Re: Lost vg02 after swapping servers
I did everything that Luc mentioned from the vgexport down, just to make sure, and /dev/vg02 is again activated.
Thanks alot all
Trev