- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recreate device files in /dev/vg01 after accidenta...
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
02-07-2004 10:03 AM
02-07-2004 10:03 AM
of these files. I need to restore (both character and block) device files for rlvoracle and lvoracle ? So that i see the lvoracle logical volume when I do lvdisplay -v vg01 ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2004 10:38 AM
02-07-2004 10:38 AM
SolutionYou need to know which lvol this is, if it isn't the only one
in vg01. You also need to know the vg minor number. # ll /dev/vg01/group
to be sure. Meantime, I'll assume "1" there as well.
(If you have multiple lvols in the vg, try and see what's missing.)
mknod /dev/vg01/rlvoracle c 64 0x010001
mknod /dev/vg01/lvoracle b 64 0x010001
That should get you going, assuming vg01 and first lvol is lvoracle,
and everything else is in its default configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2004 10:41 AM
02-07-2004 10:41 AM
Re: Recreate device files in /dev/vg01 after accidental delete ?
Assuming vg01 is the 0x010000 VG device AND lvoracle is the FIRST LV in the VG, then
cd /dev/vg01
mknod lvoracle b 64 0x010001
mknod rlvoracle c 64 0x010001
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2004 11:34 AM
02-07-2004 11:34 AM
Re: Recreate device files in /dev/vg01 after accidental delete ?
Will fix that right up.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2004 09:37 PM
02-07-2004 09:37 PM
Re: Recreate device files in /dev/vg01 after accidental delete ?
Look at /etc/lvmconf directory and see if you have a file called vg01.mapfile. If so, then do a 'cat vg01.mapfile' and note the logical volume number and the name. If may be something like
1 lvol1
2 lvol2
etc
You would need to know the minor number of the group file (ll /dev/vg01/group). If you don't have it, then you will need to create it. Hopefully you remember it or it is in the sequence
mknod /dev/vg01/group c 64 0x010000
Then create the logical volume device files using the following commands
mknod /dev/vg01/
where lvol_name is the second field and lvol_number is the first field in /etc/lvmconf/vg01.mapfile file for each lvol.
If this didn't work, then you will need to export/re-import the VG which means unmounting the filesystems followed by deactivating the VG.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2004 05:17 AM
02-08-2004 05:17 AM
Re: Recreate device files in /dev/vg01 after accidental delete ?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2004 11:11 AM
02-08-2004 11:11 AM
Re: Recreate device files in /dev/vg01 after accidental delete ?
Shridhar . Thanks for your help in getting me straight with detailed explanation.