- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What if raw device file for a logical volume delet...
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
07-27-2008 07:52 AM
07-27-2008 07:52 AM
What if raw device file for a logical volume deleted for a mounted file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2008 08:29 AM
07-27-2008 08:29 AM
Re: What if raw device file for a logical volume deleted for a mounted file system
Remember, Unix won't actually remove a file that is being held open until the file is closed. The same principle applies here.
Device files are very easy to re-generate: all you need is the name, device type (character or block), minor & major device numbers, and ownership & permissions information.
If you know this information, you can re-create the missing device file using the mknod command, but the command "insf -e" should be be even easier way to recover. It will automatically re-create any missing device files.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2008 10:36 AM
07-27-2008 10:36 AM
Re: What if raw device file for a logical volume deleted for a mounted file system
You can just recreate the device files, see example below.
# ll /dev/vg00
total 0
crw-r----- 1 root sys 64 0x000000 Jan 5 2005 group
brw-r----- 1 root sys 64 0x000001 Apr 21 08:54 lvol1
brw-r----- 1 root sys 64 0x000002 Jan 5 2005 lvol2
brw-r----- 1 root sys 64 0x000003 Jan 5 2005 lvol3
brw-r----- 1 root sys 64 0x000004 Jan 5 2005 lvol4
brw-r----- 1 root sys 64 0x000005 Jan 5 2005 lvol5
brw-r----- 1 root sys 64 0x000007 Jan 5 2005 lvol7
brw-r----- 1 root sys 64 0x000008 Jan 5 2005 lvol8
crw-r----- 1 root sys 64 0x000001 Jan 5 2005 rlvol1
crw-r----- 1 root sys 64 0x000002 Jan 5 2005 rlvol2
crw-r----- 1 root sys 64 0x000003 Jan 5 2005 rlvol3
crw-r----- 1 root sys 64 0x000004 Jan 5 2005 rlvol4
crw-r----- 1 root sys 64 0x000005 Jan 5 2005 rlvol5
crw-r----- 1 root sys 64 0x000007 Jan 5 2005 rlvol7
crw-r----- 1 root sys 64 0x000008 Jan 5 2005 rlvol8
I removed the raw device files for (r)lvol6
# mknod /dev/vg00/lvol6 b 64 0x000006
# mknod /dev/vg00/rlvol6 c 64 0x000006
You could also restore these device files from back-up.
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2008 11:07 AM
07-27-2008 11:07 AM
Re: What if raw device file for a logical volume deleted for a mounted file system
So the device files are used just during the open system calls. They can be remove and restored without incident. They do not have a direct connection to the device. The mknod command can be run at anytime to create/recreate a missing device file. There are just two numbers needed to recreate the file, major and minor.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2008 01:44 PM
07-28-2008 01:44 PM