- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to import volume group and it's logical volume...
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
Discussions
Discussions
Forums
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
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
тАО08-19-2008 04:20 AM
тАО08-19-2008 04:20 AM
Best regards,
Lars Bylander
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2008 04:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2008 04:36 AM
тАО08-19-2008 04:36 AM
Re: How to import volume group and it's logical volumes
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x------
vgcreate
vgimport /dev/vg01 disk name
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 02:51 AM
тАО08-20-2008 02:51 AM
Re: How to import volume group and it's logical volumes
Will vgimport write anything to the disks to be imported? or is only /etc/lvmtab and eventually /etc/lvmconfig updated?
Executing vgimport with the option preview:
vgimport -m /tmp/vg01.mapfile -p -v /dev/vg01 /dev/dsk/c2t0d0 /dev/dsk/c1t0d0
Beginning the import process on Volume Group "/dev/vg01".
Logical volume "/dev/vg01/lvol20" has been successfully created
with lv number 1.
Logical volume "/dev/vg01/lvol21" has been successfully created
with lv number 1.
Volume group "/dev/vg01" has been successfully created.
The map files used where a copy of the mapfile: /etc/lvmconf/vg01.mapfile
Strange that lv number 1 points to 2 logical volumes!!
Best regards.
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 04:08 AM
тАО08-20-2008 04:08 AM
Re: How to import volume group and it's logical volumes
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
тАО08-20-2008 04:52 AM
тАО08-20-2008 04:52 AM
Re: How to import volume group and it's logical volumes
# cat /tmp/vg01.mapfile
1 lvol20
1 lvol21
/Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 04:59 AM
тАО08-20-2008 04:59 AM
Re: How to import volume group and it's logical volumes
# cat /tmp/vg01.mapfile
1 lvol20
2 lvol21
IMHO you don't need a mapfile for your config, unless the lvols should be not named lvol1 and lvol2.
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
тАО08-20-2008 05:18 AM
тАО08-20-2008 05:18 AM
Re: How to import volume group and it's logical volumes
As Torsten notes, the mapfile is useful when your logical volume names are *not* standard (i.e. are not 'lvol1', 'lvol2', etc. associated with logical volume #1 and #2, respectively).
However, there is another use of the mapfile, and that is to contain the Volume Group ID (VGID) of the physical disks comprising the volume group. If this is included (by specifying '-s' during 'vgexport' *and* during the subsequent 'vgimport'), then you can avoid having to specify the device files (pv_paths) during the process. The VGID disk signiture is read instead and and all physical disks with a matching VGID collected into a volume group.
This is particularly useful during cold-installations or when disk are moved among servers, or when SANs are rezoned, since one doesn't have to look up pv_paths for the affected disks.
See the manpages for 'vgexport' and 'vgimport' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 05:30 AM
тАО08-20-2008 05:30 AM
Re: How to import volume group and it's logical volumes
Well I had a disk crash and did not have anything saved from vgexport. Some earlier LVM setup seems to have generated the strange mapfile:
# cat /etc/lvmconf/vg01.mapfile
1 lvol20
1 lvol21
After executing vgimport with preview I think that lvol20 and lvol21 are treated as the same logical volumes.
Anyway, since I do not want risk that data on the vg01 disks are destroyed, does vgimport only write to the config files in /etc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 05:38 AM
тАО08-20-2008 05:38 AM
Re: How to import volume group and it's logical volumes
vgimport -p ...
will preview the results.
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!