1832995 Members
2184 Online
110048 Solutions
New Discussion

Re: LVM volume name

 
SOLVED
Go to solution
Martin Brachtl
Advisor

LVM volume name

Are there any constraints on the length of the volume name? I guess, the constraints are the same as in the case of the filename. Am I wrong?

M. Brachtl
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: LVM volume name

That's all the man page says:

"where lv_name is a simple file name, not a path name"


Pete

Pete
Martin Brachtl
Advisor

Re: LVM volume name

well, I read that, but this is not "a proof" that there are no other constraints.
generic_1
Respected Contributor

Re: LVM volume name

I would keep not get crazy with the naming. Remember if something goes wrong your gonna have to type these puppies.
Rick Garland
Honored Contributor

Re: LVM volume name

Keep it somewhat short and it will keep the `bdf` output on 1 line.

Get longer vg_ & lv_ names and the `bdf` display has too use multiple lines.

Martin Brachtl
Advisor

Re: LVM volume name

I am asking because the author of application suggested pretty long names. Shall I say to him, silly long names, but it will work, or, will not.

M. Br.
Kent Ostby
Honored Contributor

Re: LVM volume name

It will work, but there is a point where readability clashes with useability, especially if you are the system administrator.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Pedro Cirne
Esteemed Contributor
Solution

Re: LVM volume name

Hi,

I wouldn't use very long names, they are not pratical for administration, some tools like Glance, MeasureWare, OVO will truncate those names.

Enjoy :)
TwoProc
Honored Contributor

Re: LVM volume name

What does the author mean by "pretty long names" ?
"BeautifulDreamer001" ? :-)

lvol2 is long enough for me. But, it's probably not all that pretty. :-)
We are the people our parents warned us about --Jimmy Buffett
Rick Garland
Honored Contributor

Re: LVM volume name

The long names will work.

Do keep in mind the balance act between readability and useability
Bill Hassell
Honored Contributor

Re: LVM volume name

Tell the developer that the system administration policies do not allow for fancy names. After all, where will those volume groups be used? As parameters and/or answers to questions in the application? Or just some names in a config file? VG's are sysadmin symbols. Long VG names will create a *LOT* of sysadmin pain in the future as apps (like Glance and OV) and tools like bdf try to work around the long names. It won't be pretty...


Bill Hassell, sysadmin
Martin Brachtl
Advisor

Re: LVM volume name

"Pretty long" is something like this:

/dev/vgxx/cust_scoring1_db12_arch_log_w_1

I would not choose anything like that, because of all reasons you mentioned. And I was not sure, if this is also technically possible. It seems, it is.

BTW thank you all for the responses.

MBr.