- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgimport help?
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
05-31-2007 01:30 AM
05-31-2007 01:30 AM
I have a server with a LUN attached. I need a copy of the data on that LUN on another system. So I extended vg02 with another LUN and lvextend -m 1 with all the logical volumes. I then lvreduced to break the mirrors and exported the new lUN from vg02. I now want to vgimport the new LUN onto the new server and it isn't working. Here is what I am getting:
# vgscan -p -v
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg02".
vgscan: The physical volume "/dev/dsk/c1t2d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t2d0" is already recorded in the "/etc/lvmtab" file.
Couldn't stat physical volume "/dev/dsk/c3t2d0":
Invalid argument
Physical Volume "/dev/dsk/c4t0d3" contains no LVM information
Physical Volume "/dev/dsk/c5t0d3" contains no LVM information
/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/vg02 failed.
# vgimport -v -s -m /tmp/vg0216.map /dev/vg02
Beginning the import process on Volume Group "/dev/vg02".
Couldn't access the list of physical volumes for volume group "/dev/vg02".
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 01:57 AM
05-31-2007 01:57 AM
Re: vgimport help?
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GATLAS10K3_36_SCA
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE FUJITSU MAJ3364MC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 3 255/0/2.0.0.3 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c4t0d3 /dev/rdsk/c4t0d3
disk 4 255/0/3.0.0.3 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c5t0d3 /dev/rdsk/c5t0d3
disk 5 255/0/4.0.0.3 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c6t0d3 /dev/rdsk/c6t0d3
disk 6 255/0/5.0.0.3 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c7t0d3 /dev/rdsk/c7t0d3
It is disk 4.0.0.3 (c6t0d3) that I want imported into vg02. It is the disk with the LVM info on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 02:03 AM
05-31-2007 02:03 AM
Solution- lvsplit mirror
- create new VG
- add split lvol to new VG
- fsck split lvol
- mount lvol for verification
- vgexport new VG
- copy mapfile onto new server
- vgimport new VG into new server
Note that the split off lvol name would end in "b" for ex. /dev/vgold/lvol1b if you stick to the defaults.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 02:07 AM
05-31-2007 02:07 AM
Re: vgimport help?
Coolmar
When you do a lvreduce, you are actually removing the lv from from disk. It can be retrieved, but a vgimport will not work (to my knowledge)
You could try lvsplit, and then vgreduce, but even that may not work because (according to the man page) vgreduce removes the LVM info
You could remove the LUN from system A with the mirror active and add it to system B then do a vgimport - that probably will work - however the VG on system A will require maintenance because of the forced removal.
You probably are better off adding the disk to system B, creating the mount pounts, NFS mounting to system A, and copying the data over that way
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 02:07 AM
05-31-2007 02:07 AM
Re: vgimport help?
Try lvsplit instead and create a new vg
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 02:21 AM
05-31-2007 02:21 AM
Re: vgimport help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 02:28 AM
05-31-2007 02:28 AM
Re: vgimport help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 02:42 AM
05-31-2007 02:42 AM
Re: vgimport help?
Yes that would be the way to go.
>Also, after I am able (I hope) to mount the logical volume on the new server >then can I do an lvreduce and vgreduce to get that disk off the original server >without it screwing up the new one?
No need to lvreduce since the lvsplit makes the primary or original logical vol un-mirrored. All that needs to be done at the end of the export/import process is a vgreduce which will remove the bitmap for the sync operation in case the lvols are lvmerge'd back in. man lvsplit(1M) for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 02:54 AM
05-31-2007 02:54 AM
Re: vgimport help?
vgchange: Couldn't activate volume group "/dev/vg02":
Quorum not present, or some physical volume(s) are missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 02:54 AM
05-31-2007 02:54 AM
Re: vgimport help?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 02:58 AM
05-31-2007 02:58 AM
Re: vgimport help?
will activate the VG without the quorum requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 03:01 AM
05-31-2007 03:01 AM
Re: vgimport help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 03:05 AM
05-31-2007 03:05 AM
Re: vgimport help?
# fsck /dev/vg02/lvol10
fsck: /etc/default/fs is used for determining the file system type
vxfs fsck: read of super-block on /dev/vg02/lvol10 failed: I/O error
file system check failure, aborting ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 03:21 AM
05-31-2007 03:21 AM
Re: vgimport help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 03:22 AM
05-31-2007 03:22 AM
Re: vgimport help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 03:23 AM
05-31-2007 03:23 AM
Re: vgimport help?
then cd /dev/vgXX
mv lvol1b lvol1
etc...
update fstab file - and you are good to go.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 05:09 AM
05-31-2007 05:09 AM
Re: vgimport help?
Thanks
# vgreduce /dev/vg02 /dev/dsk/c8t0d3 /dev/dsk/c6t0d3
vgreduce: Physical volume "/dev/dsk/c8t0d3" could not be removed since some of its
physical extents are still in use.
vgreduce: Physical volume "/dev/dsk/c6t0d3" could not be removed since some of its
physical extents are still in use.
#vgdisplay (end)
--- Physical volumes ---
PV Name /dev/dsk/c6t0d0
PV Name /dev/dsk/c7t0d0 Alternate Link
PV Status available
Total PE 44479
Free PE 0
Autoswitch On
PV Name /dev/dsk/c6t0d1
PV Name /dev/dsk/c7t0d1 Alternate Link
PV Status available
Total PE 9598
Free PE 6823
Autoswitch On
PV Name /dev/dsk/c8t0d3
PV Status available
Total PE 9598
Free PE 9285
Autoswitch On
PV Name /dev/dsk/c6t0d3
PV Status available
Total PE 33596
Free PE 33471
Autoswitch On
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 07:37 AM
05-31-2007 07:37 AM
Re: vgimport help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 01:59 PM
05-31-2007 01:59 PM
Re: vgimport help?
==========================
PV Name /dev/dsk/c6t0d3
PV Status available
Total PE 33596
Free PE 33471
Autoswitch On
================
33596-33471=125PE is in used now.
You should use:
#lvdisplay -v /dev/vg02/lvname (some last lv on vg02)
to determine which lv consumes PE
HTH