- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: where LV names are stored?
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
03-31-2011 07:58 AM
03-31-2011 07:58 AM
I've been notified that LV names are not stored on disks(PVs), so where are they? they should not be at VGRA. If I mistakenly rm some LVs' device file, how can vgexport -m get those LVs' name of specific VGs?
regards
Stephen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 08:29 AM
03-31-2011 08:29 AM
Re: where LV names are stored?
After that it is up to you if you want to rename those newly created lvol driver files under /dev/vgXX/lvolXX files back to the way they were before, by just using mv command. I was told this, as the way to do it. Never done it myself. Hence, I can not advise you to do it or discourage for that matter.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 08:46 AM
03-31-2011 08:46 AM
Re: where LV names are stored?
I don't think your "default name" saying was true when I use vgexport -m and vgimport -m and I did recover some accidently-lv-deleted VGs using this method. I just want to know how vgexport -m get LVs' name and whether there was another way to recover such VGs I mentioned before, not application halting needed.
regards
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 08:46 AM
03-31-2011 08:46 AM
Re: where LV names are stored?
When you do a 'vgimport' with a mapfile, it is the association of the device minor number and the name in the mapfile that makes the logical volume name (as seen in the device file created).
In the absence of a mapfile, the default, standard is 'lvolN' where N is the minor number.
If you lost a mapfile, or wanted to change the names of your logical volumes you could build a custom mapfile that looks like this:
1 mylvone
2 mylvtwo
3 lvol3
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 08:51 AM
03-31-2011 08:51 AM
Re: where LV names are stored?
So how vgexport -m creates the map file? from where it get those LVs' names?
regards
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 08:57 AM
03-31-2011 08:57 AM
Re: where LV names are stored?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 08:59 AM
03-31-2011 08:59 AM
Solution> So how vgexport -m creates the map file? from where it get those LVs' names?
My understanding is that the names are derived from the '/dev/vgXX' directory's files during the 'vgexport'. During a 'vgimport', you have the ability to specify a mapfile with your *own* nomenclature or let 'vgimport' use default names (as in the absence of any mapfile).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 09:04 AM
03-31-2011 09:04 AM
Re: where LV names are stored?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 09:18 AM
03-31-2011 09:18 AM
Re: where LV names are stored?
Sorry, I must forget something, and I agree with your words after I did a test right before.
So, if, I accidently rm some LVs' names under /dev/vgxx on a standalone server, all I can do is vgexport and vgimpot vgxx, then mv the new-created default-name lvs to what name I need them to be.
regards
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 09:22 AM
03-31-2011 09:22 AM
Re: where LV names are stored?
What you said was right, I owe you points, just give me a reply.
regards
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 09:33 AM
03-31-2011 09:33 AM
Re: where LV names are stored?
Just create the special files for lvol and rlvol again, that's all.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 09:35 AM
03-31-2011 09:35 AM
Re: where LV names are stored?
using mknod? I never do that before.
regards
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 09:38 AM
03-31-2011 09:38 AM
Re: where LV names are stored?
mknod /dev/vg08/lvol1 b 64 0x080001
mknod /dev/vg08/rlvol1 c 64 0x080001
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 09:51 AM
03-31-2011 09:51 AM
Re: where LV names are stored?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 09:54 AM
03-31-2011 09:54 AM
Re: where LV names are stored?
don't want to open a new threads, what is the meaning of the following messages:
[RX6600_4][root][/dev/vghq]#newfs /dev/vghq/rpeng
newfs: /etc/default/fs is used for determining the file system type
version 6 layout
49152 sectors, 49152 blocks of size 1024, log size 1024 blocks
largefiles supported
[RX6600_4][root][/dev/vghq]#mount /dev/vghq/peng /peng
/dev/vghq/peng: unrecognized file system
[RX6600_4][root][/dev/vghq]#fsadm /dev/vghq/rpeng
fsadm: /etc/default/fs is used for determining the file system type
mismatch : command version 41 - kernel version 35
regards
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 11:23 AM
03-31-2011 11:23 AM
Re: where LV names are stored?
[RX6600_4][root][/dev/vghq]#mount /dev/vghq/peng /peng
/dev/vghq/peng: unrecognized file system
[RX6600_4][root][/dev/vghq]#fsadm /dev/vghq/rpeng
fsadm: /etc/default/fs is used for determining the file system type
mismatch : command version 41 - kernel version 35
END QUOTE
fsadm command should not be run against the device files but should be pointed to mountpoints for filesystems.
in your case above, the command should look like:
fsadm /peng
But my concern is prior to that where you created the newfs and it doesn't mount.
can you try something like this:
newfs -F vxfs -o largefiles /dev/vghq/rpeng
mount -o largefiles /dev/vghq/peng /peng
did it succeed ?
Also, by any chance, did you copy the fsadm from another server or update VxVM without rebooting your machine recently ?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 11:26 AM
03-31-2011 11:26 AM
Re: where LV names are stored?
> [RX6600_4][root][/dev/vghq]#newfs /dev/vghq/rpeng
Confusing but common error relating to the filesystem type. Just type...
newfs -F vxfs /dev/vghg/rpeng
I guess this should work.... Well the error simply states that what is present in /etc/default/fs is the default filesystem type and if you cat this file you should see an obvious vxfs. However, not specifying the -F option looks like the error to me.
Regards
Ismail Azad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 10:58 PM - last edited on 08-17-2011 08:59 AM by Kevin_Paul
03-31-2011 10:58 PM - last edited on 08-17-2011 08:59 AM by Kevin_Paul
Re: where LV names are stored?
Guys,
I think I should open a new thread about this issue:
http://h30499.www3.hp.com/t5/LVM-and-VxVM/quot-unrecognized-file-system-quot-after-newfs/m-p/5278388#M49238
regards
Stephen