- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recover old Volume Group
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
11-27-2008 05:10 AM
11-27-2008 05:10 AM
2 disks in my system. One volume group, one in each disk. I reinstalled OS using only the disk 1.
How can I recover my old volume group (with its logical volumes) still existing in the disk 2?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 05:18 AM
11-27-2008 05:18 AM
Re: Recover old Volume Group
Hi Tonatiuh,
I thing this is not possible,becuase if u r going to add a new disk,it will be automatically formated,
so you are not able to recover the VG.
Regards,
Unixguy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 05:21 AM
11-27-2008 05:21 AM
Re: Recover old Volume Group
And even if you recover your VG, you will need a backup to restore the data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 05:22 AM
11-27-2008 05:22 AM
Re: Recover old Volume Group
You have 2 options, import the vg with the names of the lvols or with the default name lvols
with name of lvols:
Do you still have a map from the vg?
or a cfg2html, somewhere where you can look at the names of the lvols?
if you have you can import with:
vgimport -m vgmapfile /dev/vgname /dev/dsk/disk
if not you have to import:
vgimport /dev/vgname /dev/dsk/disk
and the names of the lvols will be lvol1,lvol2,etc
Just mount them to guess what where their names, and change then with a mv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 05:24 AM
11-27-2008 05:24 AM
Re: Recover old Volume Group
2 disks in my system. One volume group, one in each disk. I reinstalled OS using only the disk 1.
It means you had to independent VG's, 1 in each disk, then it is posible to get your data from the disk that doesn't have the os
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 05:27 AM
11-27-2008 05:27 AM
Re: Recover old Volume Group
Hi,
yes Orange adm is correct,
if u have a map file for that VG,
it will be going recover it.
use the below mentioned commands
#vgimport -s -p -m /tmp/vg01.map /dev/vg01
the above mentioned commands is going to recover a VG.
but if u don't have it's not possible to do it.
Regards,
Unixguy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 05:28 AM
11-27-2008 05:28 AM
Re: Recover old Volume Group
You can recover the volume group with the help of vgimport command
Just issue the below commands.
#mkdir /dev/vgnew
#mknod /dev/vgnew/group c 64 0x030000
#vgimport /dev/vgnew
#vgimport /dev/vgnew /dev/dsk/c0t5d0
#vgchange -a y /dev/vgnew
#vgdisplay -v /dev/vgnew
It will list the available logical volumes
Mount the logical volumes and access the data.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 05:32 AM
11-27-2008 05:32 AM
Re: Recover old Volume Group
Yes you can recover it using the map files, if exists.
After exporting/importing.
go for vgscan command.
there is possibilities to get the configurations back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 06:58 AM
11-27-2008 06:58 AM
Re: Recover old Volume Group
Any other idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 07:08 AM
11-27-2008 07:08 AM
Re: Recover old Volume Group
Post the error you received when you try to import. That will help us to provide more solutions..
Other than vgimport, I don't think anyway you can import the data.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 07:09 AM
11-27-2008 07:09 AM
Re: Recover old Volume Group
I want to be able to create a new filesystem in that disk 1, but it shows me an error, I think because the importing filed.
pvcreate: The physical volume "/dev/dsk/c2t2d0" in the "/etc/lvmtab" file.
Any secure idea aboout it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 07:10 AM
11-27-2008 07:10 AM
Re: Recover old Volume Group
pvcreate: The physical volume "/dev/dsk/c2t2d0" is already recorded in the "/etc/lvmtab" file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 07:59 AM
11-27-2008 07:59 AM
SolutionEither export the vg from /etc/lvmtab or recreate the /etc/lvmtab file
1.Export the /etc/lvmtab
#strings /etc/lvmtab --> note down the imported vgname.
#vgexport -v /dev/vgname
2. Recreate the lvmtab file.
#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -av
This will remove the entry from lvmtab. Now you can create pvcreate on that disk.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 08:55 AM
11-27-2008 08:55 AM