- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restore deleted /dev/vgxxx
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
06-23-2004 05:36 PM
06-23-2004 05:36 PM
How do we restore the /dev/vgxx directory structure?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 06:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 06:06 PM
06-23-2004 06:06 PM
Re: Restore deleted /dev/vgxxx
As for the group file, that's more difficult. But what you need to do:
1) create the directory /dev/vgxx
2) create the group file using mknod:
mknod /dev/vgxx/group c 64 0x
3) create the lvol device files
mknod /dev/vgxx/
mknod /dev/vgxx/r
The difficulty in all this is to get the groupid and lvolid. But I think you can get the lvolid's from your mapfiles in /etc/lvmconf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 06:26 PM
06-23-2004 06:26 PM
Re: Restore deleted /dev/vgxxx
I assume you have map file of the vgxx and if not try searching for one. Also try remembering the group file minor no., you can judge it looking at other VG's group file. Then this should work.
1. # mkdir /dev/vgxx
2. # mknod /dev/vgxx/group c 64 minorno.
3. # vgimport -v -m vg01.map /dev/vgxx
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 07:27 PM
06-23-2004 07:27 PM
Re: Restore deleted /dev/vgxxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 07:30 PM
06-23-2004 07:30 PM
Re: Restore deleted /dev/vgxxx
I had already recreated the files (/dev/vgxx/group , lvol1 , rlvol1) using mknod and since there is only one lvol, that part was a slam dunk... BUT, what I didn't know "for sure" was the group file number or how to extract it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 09:18 PM
06-23-2004 09:18 PM
Re: Restore deleted /dev/vgxxx
Group is control file for VG and look like this :
crw-r----- 1 root sys 64 0x000000 Feb 3 06:07 group
it resides in /dev/vgxx
0x stands for hex no.
00 stand's unique group number.
0000 (last 4) are always zero.
Noramlly group no. are 01,02 ..
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 09:34 PM
06-23-2004 09:34 PM
Re: Restore deleted /dev/vgxxx
But until I get the tapes back on-site, this is just a guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 09:53 PM
06-23-2004 09:53 PM
Re: Restore deleted /dev/vgxxx
You could vgimport the disks.
Create the volumegroup.
# mkdir /dev/vgxx
# mknod /dev/vgxx/group c 64 minorno
Preview
# vgimport -p -
v /dev/vg01 /dev/dsk/c0t1d0 /dev/dsk/c0t3d0
# vgimport -v /dev/vg01 /dev/dsk/c0t1d0 /dev/dsk/c0t3
# vgchange -a y vg01
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 05:06 AM
06-24-2004 05:06 AM
Re: Restore deleted /dev/vgxxx
I thought that was strange, so I imported a volume from a different system and the files were created as expected.
I suspect that if I were to unmount the volume and vgimport it, the files would be recreated, but unmounting it isn't an option on this system (production - not many opportunities to do that).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 05:22 AM
06-24-2004 05:22 AM
Re: Restore deleted /dev/vgxxx
don't you?
correct me if I am wrong..
mknod /dev/vgxx/group c 64 0x0y0000
y will be 01 if it is vg01
y will be 02 if it is vg02
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 05:34 AM
06-24-2004 05:34 AM
Re: Restore deleted /dev/vgxxx
Like vgemc1db1, or vgemc2db1, or vgdbora, etc.
In this situation, finding what the group number was is what I was looking for, to see if it is buried somewhere that a scan could get it (0x0?0000).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 05:44 AM
06-24-2004 05:44 AM
Re: Restore deleted /dev/vgxxx
It should be there somewhere.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 05:53 AM
06-24-2004 05:53 AM
Re: Restore deleted /dev/vgxxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 05:54 AM
06-24-2004 05:54 AM
Re: Restore deleted /dev/vgxxx
ll /dev/vg??/group.
Check what have been used and any relation ship between the one used and their respective vg names. But this is not 100 % correct.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 06:01 AM
06-24-2004 06:01 AM
Re: Restore deleted /dev/vgxxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 06:07 AM
06-24-2004 06:07 AM
Re: Restore deleted /dev/vgxxx
I just figured you might as well can give any free minor to the group file. But if the lvs are unmounted and if you try to mount them back, you will get "No such device or address" error message.
But if you deactivate the vg and activate again then there should be no issues.
As you said, you are not going to unmount the lvs anytime in the near future. If you had to , you can as well deactivate and activate the vg again ?
-- Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 08:50 AM
06-24-2004 08:50 AM
Re: Restore deleted /dev/vgxxx
I did use the correct vg numbers when recreating the vg files (0x020000), so I've left the files there that I created instead of overwriting them.
Now... will the vg's get mounted up without any further intervention next time I unmount or reboot the system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 08:56 AM
06-24-2004 08:56 AM
Re: Restore deleted /dev/vgxxx
# strings /etc/lvmtab
Do see your VG in this. If yes it is ok or else recreate lvmtab file using "vgscan -a" see man vgscan.
Update fstab file for all LV.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 08:56 AM
06-24-2004 08:56 AM
Re: Restore deleted /dev/vgxxx
Yes, the VG should get activated without any need for manual intervention as long as you have the group control file and the character/block device files for all the logical volumes.
-- Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 03:56 AM
07-05-2004 03:56 AM
Re: Restore deleted /dev/vgxxx
#vgcfgrestore vgxx
or
# vgchange -a y