- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: CHMOD - Lvol
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
05-06-2005 07:24 AM
05-06-2005 07:24 AM
CHMOD - Lvol
I'm using HP-UX 11i.
How to set the "b" in the beggining of a filesystem information and what does it means?
br--r----- 1 root sys 64 0x010001 Sep 25 2004 lvol1
Thanks,
Rafael M. Braga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2005 07:32 AM
05-06-2005 07:32 AM
Re: CHMOD - Lvol
mknod command is used to create device file.
What exactly you want to do?
-USA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2005 07:39 AM
05-06-2005 07:39 AM
Re: CHMOD - Lvol
The lvol was created without the "b" in the beggining of the filesystem information, and someone told me that without that letter it won't work correctly... I would like to know what that "b" means, and how can I set it!
Thanks,
Rafael M. Braga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2005 07:49 AM
05-06-2005 07:49 AM
Re: CHMOD - Lvol
e.g. 64 0x020000 group
lvol1 will use those same first two digits and 0001 as the last 4 hex digits; lvol2 will use 0002, and so on.
To create /dev/vg02/lvol1 assuming the "group" minor device number is 0x020000,
rm /dev/vg02/lvol1 # this assumes lvol1 is a regular file (missing the 'b' or 'c').
mknod /dev/vg02/lvol2 b 64 0x020001 # block device
mknod /dev/vg02/rlvol2 b 64 0x020001 # character device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2005 07:54 AM
05-06-2005 07:54 AM
Re: CHMOD - Lvol
d = Directory
b = Block device
c = Character device
l = Link
p = Pipe
- = File
There are others as well.
That bit is determined by how the item is created. You would have to create the 'b' or 'c' with mknod as stated above.
Also pay attention to what Clay talked about. The /dev/vg*/lvol* and /dev/vg*/rlvol* devices are normally created when a logical volume is created. Those are not files that you would normally mess with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2005 02:24 PM
05-06-2005 02:24 PM
Re: CHMOD - Lvol
When you use SAM or lvcreate, both device files are created automatically. Someone has been playing around with the device files, something that should not be done without a lot of training. Rather than guessing how to fix all the problems, you should use lvremove (or SAM) to get rid of the problem lvol and recreate it again. Using the proper tools will always create the correct device file pairs.
Bill Hassell, sysadmin