HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- removed volume group device files
Operating System - HP-UX
1833184
Members
3082
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-08-2003 01:37 PM
03-08-2003 01:37 PM
hello,
I know I can recover (right?) from this boo boo I did. I was moving data from one logical volume to a new one I created because of failing disks and in renaming the logical volume names I wrote over the existing volume information. now I can't get either volume to mount.
I tried to recreate the lvmtab file with vgscan but it still can't recognize my lv or filesystems because the device files are all screwed up or missing.
Can I get them all back or am I out of luck. The information is still on the disks.
Thank you,
Brian Street.
I know I can recover (right?) from this boo boo I did. I was moving data from one logical volume to a new one I created because of failing disks and in renaming the logical volume names I wrote over the existing volume information. now I can't get either volume to mount.
I tried to recreate the lvmtab file with vgscan but it still can't recognize my lv or filesystems because the device files are all screwed up or missing.
Can I get them all back or am I out of luck. The information is still on the disks.
Thank you,
Brian Street.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2003 02:29 PM
03-08-2003 02:29 PM
Solution
Absolutely, positively.
To be sure, restore /etc/vg**/*lv* information from a tape. You'll also need an old /etc/lvmtab file and maybe the /etc/lvmconf/vg##.conf files. Restore these under /tmp/lvmtab_old, etc. Don't put them back into /etc.
Determine what disk your vg's belong to with:
strings /tmp/lvmtab_old, and,
-and-
vgcfgrestore -f /tmp/lvmconf/vg##.conf_old -l
Now, you may only need these commands:
# vgexport -p -s -m /tmp/vg05map /dev/vg##
-and-
# vgimport -s -p -m /tmp/vg##map
When you vgimport with the -s option all of the disks that belong to /dev/vg## respond to the "VGID" when it is broadcasted out over the SCSI bus, or disk array, by the vgimport command. And the member disks are suppose to answer the broadcast query. A list of disk should be displayed.
Update the /etc/lvmtab file now by removing the -p option:
vgimport -s -m /tmp/vg##map.
Hopefully the above is all you need but sometimes you have to specify each disk. Use the /tmp/lvmtab_old, etc., info for this.
vgimport /dev/vg## /dev/dsk/c... /dev/dsk/c...., etc.
When done, cross reference the old and new /etc/lvmtab and /etc/lvmconf information.
To be sure, restore /etc/vg**/*lv* information from a tape. You'll also need an old /etc/lvmtab file and maybe the /etc/lvmconf/vg##.conf files. Restore these under /tmp/lvmtab_old, etc. Don't put them back into /etc.
Determine what disk your vg's belong to with:
strings /tmp/lvmtab_old, and,
-and-
vgcfgrestore -f /tmp/lvmconf/vg##.conf_old -l
Now, you may only need these commands:
# vgexport -p -s -m /tmp/vg05map /dev/vg##
-and-
# vgimport -s -p -m /tmp/vg##map
When you vgimport with the -s option all of the disks that belong to /dev/vg## respond to the "VGID" when it is broadcasted out over the SCSI bus, or disk array, by the vgimport command. And the member disks are suppose to answer the broadcast query. A list of disk should be displayed.
Update the /etc/lvmtab file now by removing the -p option:
vgimport -s -m /tmp/vg##map.
Hopefully the above is all you need but sometimes you have to specify each disk. Use the /tmp/lvmtab_old, etc., info for this.
vgimport /dev/vg## /dev/dsk/c... /dev/dsk/c...., etc.
When done, cross reference the old and new /etc/lvmtab and /etc/lvmconf information.
Support Fatherhood - Stop Family Law
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2003 02:42 PM
03-08-2003 02:42 PM
Re: removed volume group device files
hello,
here is what I have done so far...I did a vgexport to a map file (the map file had zero length?) and then did vgimport listing each disk device (created the new directory and group file before running vgimport). This appears to have been successful since I now have my vg-group added to lvmtab with the correct disks...
but, when I try to mount the filesystem now, it tells me cannot open the /dev/vghome/lvol1: no such device or address.
The previous logical volume name was lvhome...can/should I name the logical volume when I vgimport?
here is what I have done so far...I did a vgexport to a map file (the map file had zero length?) and then did vgimport listing each disk device (created the new directory and group file before running vgimport). This appears to have been successful since I now have my vg-group added to lvmtab with the correct disks...
but, when I try to mount the filesystem now, it tells me cannot open the /dev/vghome/lvol1: no such device or address.
The previous logical volume name was lvhome...can/should I name the logical volume when I vgimport?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2003 02:52 PM
03-08-2003 02:52 PM
Re: removed volume group device files
I got everything back.
this is a new system and had not been backed up yet, so I didn't have the safety net of restoring from a backup. at least the information on the disks was not changed so that helped a lot.
I forgot to activate the volume and that prevented me from mounting the filesystem.
Thanks for your help,
Brian.
this is a new system and had not been backed up yet, so I didn't have the safety net of restoring from a backup. at least the information on the disks was not changed so that helped a lot.
I forgot to activate the volume and that prevented me from mounting the filesystem.
Thanks for your help,
Brian.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP