- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Limitation of an lvol device name
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
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-26-2002 06:38 AM
06-26-2002 06:38 AM
short question:
I want to create a new lvol on my machines. How long can be the name of the device file ?
Here's what i mean: /dev/vg01/lvol_withaverylongnamewhichhopefullywillworkfineifnotihaveaproblem
Does it behave like a normal filename limit with 255 characters or is there something else i should take care of ?
Software:
OS: HP-UX 11.00 64bit
MC/SG A.11.13
CIFS/9000 A.01.08
Servers:
HP9000 L2000-440
TIA
RGDS, Holger
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 06:42 AM
06-26-2002 06:42 AM
Re: Limitation of an lvol device name
hi
I am havn't seen any restriction for lvol naming, other than the normal file name restrictions.
Best of luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 06:44 AM
06-26-2002 06:44 AM
SolutionYou may like to look at this :
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90672/B2355-90672_top.html&con=/hpux/onlinedocs/B2355-90672/00/00/30-con.html&toc=/hpux/onlinedocs/B2355-90672/00/00/30-toc.html&searchterms=a%7clvol%7cdevice%7cNaming&queryid=20020626-075115
Also from the link :
Naming Logical Volumes
Logical volumes are identified by their device file names which can either be assigned by you or assigned by default when you create a logical volume using lvcreate (1M).
When assigned by you, you can choose whatever name you wish up to 255 characters.
When assigned by default, these names take the form: /dev/vgnn/lvolN (the block device file form) and /dev/vgnn/rlvolN (the character device file form). The number N starts at 1 and proceeds 2, 3, and so on, in the order that logical volumes are created within each volume group.
When LVM creates a logical volume, it creates both block and character device files. LVM then places the device files for a logical volume in the appropriate volume group directory.
For example, the default block name for the first logical volume created in volume group vg01 would have the full path name:
/dev/vg01/lvol1
If you create a logical volume to contain raw data for a sales database, you might want to name it using a non-default name:
/dev/vg01/sales_db_lv
After the logical volume in the above example has been created, it will have two device files:
/dev/vg01/sales_db_lv
(the block device file)
/dev/vg01/rsales_db_lv
(the character, or raw, device file)
It should behaev normally excpet when you want to put it as a home directory in /etc/passwd bczo there are limitation over there .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 06:47 AM
06-26-2002 06:47 AM
Re: Limitation of an lvol device name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 07:14 AM
06-26-2002 07:14 AM
Re: Limitation of an lvol device name
Keep the LVOL name fairly standard and then use a symbolic link
ln -s /dev/vg04/lvolsimple /really/strange/fiilenameXXXXXXXXXXXXXXXXXXXXXXXXXX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 07:30 AM
06-26-2002 07:30 AM
Re: Limitation of an lvol device name
If you REALLY need a long lvol name, then Clay's solution would be the one I'd use. I certainly wouldn't want to have to type that name EVERY time I wished to check or mod it. And you still could use the long name for whatever reson you need to.
Two caveats:
1) - ABSOLUTELY no spaces allowed in the name & I'd avoid special chars. Stick to alphanumeric & all should be well.
2) - The LV name will also contain the /dev/vgxxx value, so bear that in mind. Can't put ALL 255 chars in the LV "name" alone.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 08:14 AM
06-26-2002 08:14 AM
Re: Limitation of an lvol device name
thanx everybody for your quick assistance. Clay, I'll keep that trick in mind for more complex systems, which we will probably have in the future (I don't really think so, but it sounds very interesting!) As you all can see, we're using a HA CIFS/9000 environment, nothing what has to do with large databases, but my customers are getting hungry in disk space ;-)
CU
RGDS, Holger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 08:27 AM
06-26-2002 08:27 AM