- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgimport same volume group
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
07-23-2003 10:53 AM
07-23-2003 10:53 AM
vgimport same volume group
In a cluster environment, we have couple of volume groups. We are planning to add a total of 2 striped logical volumes to the existing volume group vgdb5 by addting 4 more disks to it.
In this scenario,
1) while exporting the volume group vgdb5 do I have to deactivate it before exporting?
2) What actually happens when I import the existing volume group vgdb5, which had earlier 2 striped logical volumes with four disk and has been extended to 8 disks with 4 striped logical volume groups?
I really appreciate your response.
Thanks,
Nikee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 10:59 AM
07-23-2003 10:59 AM
Re: vgimport same volume group
1)
do vgexport -pvs -m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 11:26 AM
07-23-2003 11:26 AM
Re: vgimport same volume group
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1591227a6ab4d711900a0090279cd0f9,00.html
The answer to #1 - deactivate NOT required
#2 - you will see the new devices when you do a strings /etc/lvmtab (if you have granted access to the new disks and have ioscaned/insf -e).
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 11:27 AM
07-23-2003 11:27 AM
Re: vgimport same volume group
I'm not so sure you will actually get what you want. you cannot export the a volume group with 2 disks & import it into another with 4 disks. However you CAN modify the existing volume group by addin mode disks. Creating NEW logical volumes within it & striping these over the 4 disks. Then migrate the data from the old LV to the new LV. e.g.
# pvcreate /dev/rdsk/cXt?d?
# pvcreate /dev/rdsk/cYt?d?
# vgextend vgdb5 /dev/dsk/cXt?d? /dev/dsk/CYt?d?
For KB striping... stripe as follows
# lvcreate -n
For extent striping.... stripe as fillows
edit the /etc/lvmpvg accordingly
# lvcreate -n
Transfer data
# dd /dev/vgdb5/r
# lvremove /dev/vgdb5/
1)
svra# la -s /dev/vgdb5/group
-- note minor number, say 0xNN0000
svra# vgexport -m
svra# rcp
svrb# vgexport vgdb5
svrb# mkdir /dev/vgdb5
svrb# mknod /dev/vgdb5/group c 64 0xNN0000
svrb# vgimport -m
IF you are alternating your disks then it may be best if you do not use vgexport with -s & list the disks expliitly on the vgimport
svra# vgexport -m
&
svrb# vgimport -m
2) the vgimport reads the LVM disk headers & creates the relavent devices in /dev/vgdb5/ & names them according to the mapfile. It also updates the /etc/lvmtab as to the disks & their order in the volume group. I.e. the OS gets a abridged copy of what is already listed on the disk headers.
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 11:30 AM
07-23-2003 11:30 AM
Re: vgimport same volume group
# lvcreate -m 1 -D y -s g -L
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 11:34 AM
07-23-2003 11:34 AM
Re: vgimport same volume group
Thanks for your response.
While I am importing the vgdb5 volume group on the other system, system is responding with the following error message:
root@europa:/tmp# vgimport -m /tmp/vgdb5.map -v -f /tmp/vgdb5_disks.txt vgdb5
Beginning the import process on Volume Group "vgdb5".
vgimport: Volume group "/dev/vgdb5" already exists in the "/etc/lvmtab" file.
Please let me know how to import the modified volume group vgdb5?
Thanks,
Nikee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 11:43 AM
07-23-2003 11:43 AM
Re: vgimport same volume group
mkdir /dev/vgdb5
mknod /dev/vgdb5/group c 64 0x0*
Replace the star with the same minor # from the other node.
Now do a vgimport - it shd not complain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 11:46 AM
07-23-2003 11:46 AM
Re: vgimport same volume group
Before exporting- u have to deactivate it.
vgchange -c n /dev/vgdb5 (since it is cluster aware) then do the vgexport.