- Community Home
- >
- Storage
- >
- Entry Storage Systems
- >
- Disk Enclosures
- >
- Re: Does "vgchgid" change the same "VGID" as is wr...
Disk Enclosures
1753821
Members
8574
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО04-23-2003 01:44 PM
тАО04-23-2003 01:44 PM
When I do a "vgexport -s ...." I get a table like this:
VGID 000119a83ac36a3c
1 lvol01
2 lvol02
3 lvol03
4 lvol04
I find this useful for moving VGs around in my shop. I dont' have to put a long list of device file names after the "vgimport".
Is this "VGID" the same "ID" that "vgchgid" changes when my BCV scripts "import" the BCV volumes on my BCV server?
When I do BCV "splits" from one system to another, can I create my map file with "vgexport -s .."?
VGID 000119a83ac36a3c
1 lvol01
2 lvol02
3 lvol03
4 lvol04
I find this useful for moving VGs around in my shop. I dont' have to put a long list of device file names after the "vgimport".
Is this "VGID" the same "ID" that "vgchgid" changes when my BCV scripts "import" the BCV volumes on my BCV server?
When I do BCV "splits" from one system to another, can I create my map file with "vgexport -s .."?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 05:37 PM
тАО04-23-2003 05:37 PM
Solution
Hi Stuart:
Yes, the '-s' option of a 'vgexport' / 'vgimport' is quite convenient for moving volume groups; since, as you have seem, it writes the Volume Group ID (VGID) into the "mapfile" during 'vgexport'. This ID is matched during 'vgimport' and thus only the physical disk bearing the matching VGID are collected into the "new" volume group.
The VGID is indeed the same ID the is examined by 'vgchgid'.
An LVM mapfile isn't really anything special. You can create one for a 'vgimport' even if it wasn't created during a 'vgexport'. The format is as you have seen. The records with numbers, a blank and a string merely signify the logical volume name to be associated with the minor number of the device file that will be created by 'vgimport' for each logical volume noted when the physical disk's VGRA is read.
You can obtain the VGID of a physical disk with the following, and hence can specify it in a mapfile of your construction, for use with a 'vgimport'. To obtain the VGID do:
# xd -An -j8200 -N16 -tx /dev/rdsk/cXtYdZ
The output will appear in four fields. The third and fourth field when joined together, are the VGID in question. For example, the above might yield:
58a721f3 31bbc985
Thus the VGID=58a721f331bbc985
Regards!
...JRF...
Yes, the '-s' option of a 'vgexport' / 'vgimport' is quite convenient for moving volume groups; since, as you have seem, it writes the Volume Group ID (VGID) into the "mapfile" during 'vgexport'. This ID is matched during 'vgimport' and thus only the physical disk bearing the matching VGID are collected into the "new" volume group.
The VGID is indeed the same ID the is examined by 'vgchgid'.
An LVM mapfile isn't really anything special. You can create one for a 'vgimport' even if it wasn't created during a 'vgexport'. The format is as you have seen. The records with numbers, a blank and a string merely signify the logical volume name to be associated with the minor number of the device file that will be created by 'vgimport' for each logical volume noted when the physical disk's VGRA is read.
You can obtain the VGID of a physical disk with the following, and hence can specify it in a mapfile of your construction, for use with a 'vgimport'. To obtain the VGID do:
# xd -An -j8200 -N16 -tx /dev/rdsk/cXtYdZ
The output will appear in four fields. The third and fourth field when joined together, are the VGID in question. For example, the above might yield:
58a721f3 31bbc985
Thus the VGID=58a721f331bbc985
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 02:34 AM
тАО04-24-2003 02:34 AM
Re: Does "vgchgid" change the same "VGID" as is written/read by "vgexport -s" ?
Hi,
vgchgid changes the VGID that you find on mapfile. The vgchgid command is useful when you do a BCV and after splitting LUN you want to import the destination LUN on the same server of primary volume.
On the same server cannot exist two volume group with the same VGID.
After splitting the volumes you can do:
vgexport -s -p -m mapfile..
and then use the mapfile to import the LUN on another server without using vgchgid.
Tell us if you need more advice.
Good luck
vgchgid changes the VGID that you find on mapfile. The vgchgid command is useful when you do a BCV and after splitting LUN you want to import the destination LUN on the same server of primary volume.
On the same server cannot exist two volume group with the same VGID.
After splitting the volumes you can do:
vgexport -s -p -m mapfile..
and then use the mapfile to import the LUN on another server without using vgchgid.
Tell us if you need more advice.
Good luck
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP