- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgexport/vgimport
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
06-28-2002 07:47 AM
06-28-2002 07:47 AM
vgexport/vgimport
Volume group "/dev/vg01" is still active.
vgexport: Couldn't export volume group "/dev/vg01".
anyone?
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 07:51 AM
06-28-2002 07:51 AM
Re: vgexport/vgimport
# vgchange -a n /dev/vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 07:51 AM
06-28-2002 07:51 AM
Re: vgexport/vgimport
vgchange -a n /dev/vg01
This deactivates your volume group.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 07:52 AM
06-28-2002 07:52 AM
Re: vgexport/vgimport
Do a vgchange first to deactivate the VG;
vgchange -a n vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 07:54 AM
06-28-2002 07:54 AM
Re: vgexport/vgimport
vgchange: Couldn't deactivate volume group "vg01":
Device busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 08:04 AM
06-28-2002 08:04 AM
Re: vgexport/vgimport
Which directory you are in ???
Go to the root directory and try.
Or else Unmount the filesystems on vg01.
Then try.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 08:05 AM
06-28-2002 08:05 AM
Re: vgexport/vgimport
# bdf | grep vg01
If they are you got to unmount them first. Does it has swap logical volume still in use ?
# swapinfo -tam
If yes that logical volume need to be free up first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 08:05 AM
06-28-2002 08:05 AM
Re: vgexport/vgimport
# umount /dev/vg01/d01
# umount /dev/vg01/d02
# umount /dev/vg01/d03
# vgchange -a n /dev/vg01
Volume group "/dev/vg01" has been successfully changed.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 08:06 AM
06-28-2002 08:06 AM
Re: vgexport/vgimport
Make sure you are not CD'd into a mounted directory on the volume group's logical volume and unmount all logical volumes associated with the volume group. Then reissue the 'vgchange -a n' and do your 'vgexport'.
Regards!
...JRF...
You can use 'fuser -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 08:16 AM
06-28-2002 08:16 AM
Re: vgexport/vgimport
You first need to stop all IO to the disks in that VG which means shutting down the relevant applications and killing off any processes using the file systems in vg01.
Cheers,
Joseph.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 08:18 AM
06-28-2002 08:18 AM
Re: vgexport/vgimport
you have to first deavtivate the vg. unmount all the filesystems from this vg, then dectivate the vg,
vgchange -a n /dev/vg01
Then do a vgeport,
vgexport -s -m /tmp/vg01.map /dev/vg01
to import the same on another system copy the map file /tmp/vg01.map to another system,
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -s -m /tmp/vg01.map /dev/vg01
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 08:54 AM
06-28-2002 08:54 AM
Re: vgexport/vgimport
# vgexport -m vg01.mapfile /dev/vg01
and then I did a cold install
and the I did the following:
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgimport -m vg01.mapfile /dev/vg01
vgimport: Couldn't open MAPFILE "vg01.mapfile".
vgimport: vg01.mapfile: No such file or directory
Help.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 09:05 AM
06-28-2002 09:05 AM
Re: vgexport/vgimport
Hopefully you backed it up to tape before you did the cold install.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 09:19 AM
06-28-2002 09:19 AM
Re: vgexport/vgimport
first try to lacate your map file.
#find / -name vg01.mapfile
if you found this file repeat your vgimport commandt with corect path.
If you lost this file you can recover your vg if you remember witch disk was members of this vg or try with (pvdisplay -v /dev/dsk/cXtXdX | more) to see same lvm info from your disks.
For the next time when you use vgexport if you whant to recover your data from this vg use the command with -p -s (see man) -m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 09:22 AM
06-28-2002 09:22 AM
Re: vgexport/vgimport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 09:28 AM
06-28-2002 09:28 AM
Re: vgexport/vgimport
Can you post your mapfile
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 09:30 AM
06-28-2002 09:30 AM
Re: vgexport/vgimport
If the map file was saved in the root filesystem and if you have reinstalled the OS on the root harddisk then that map file is lost.
Do a vgscan and it will also find out your vg info.
#vgscan -a
Atleast recall the devices files and harddisks which were present in the vg01.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 09:41 AM
06-28-2002 09:41 AM
Re: vgexport/vgimport
map file just contains the information for the no .of lvols in the volume group , incase you are doing a vgimport using a map file either ensure that the mapfile is in the direcotry where you are running the command or specify the path where the mapfile is present . Incase you dont ahve one , you can jsut do a
vgimport /dev/vg01 /dev/dsk/cxtydz /dev/dsk/cx1ty1dz1 etc abd it will read the vg information and reover the lvol as they were present on those disks.
Manoj Srivstava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 10:11 AM
06-28-2002 10:11 AM
Re: vgexport/vgimport
#vgimport /dev/vg01 /dev/dsk/cxtydz.
Then if you go to the /dev/vg01 directory you will get lvol1,lvol2,lvol3,rlvol1,rlvol2,rlvol3. Now you go to your old /etc/fstab file and change the device file name from
/dev/vg01/do1 to /dev/vg01/lvol1
/dev/vg01/do2 to /dev/vg01/lvol2
/dev/vg01/do3 to /dev/vg01/lvol3
Hope this helps
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 10:25 AM
06-28-2002 10:25 AM
Re: vgexport/vgimport
vgscan: The physical volume "/dev/dsk/c0t6d0" is already recorded in the "/etc/.
Physical Volume "/dev/dsk/c0t2d0" contains no LVM information
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c0t5d0
The Volume Group /dev/vg01/group was not matched with any Physical Volumes.
# vgimport /dev/vg01 /dev/dsk/c0t5d0
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating.
# vgchange -a y vg01
Activated volume group
Volume group "vg01" has been successfully changed.
# vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 3
Open LV 3
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1023
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 150
Free PE 873
Total PVG 0
--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 50
Used PV 1
LV Name /dev/vg01/lvol2
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 50
Used PV 1
LV Name /dev/vg01/lvol3
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 50
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c0t5d0
PV Status available
Total PE 1023
Free PE 873
Should I do a mount or ....
so that when I do a bdf, the vg01 will show up in my file system.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 10:29 AM
06-28-2002 10:29 AM
Re: vgexport/vgimport
Do you have a copy of your /etc/fstab from before you did the cold install so that you can remount you LV's as they were before?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 10:31 AM
06-28-2002 10:31 AM
Re: vgexport/vgimport
# cd /
# mkdir /data1 /data2 /data3
# mount /dev/vg01/lvol1 /data1
# mount /dev/vg01/lvol2 /data2
# mount /dev/vg01/lvol3 /data3
Make sure you edit /etc/fstab file to make these mountpoints stick at every reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 10:42 AM
06-28-2002 10:42 AM
Re: vgexport/vgimport
Make new directories and mount the filesystems. Make the entries in /etc/fstab also so that they get mounted during the next reboot.
mount /dev/vg01/lvol1 /data1.....
You can also go to SAM - Filesystems and then mount these filesystems and hence you may not manually edit the /etc/fstab file.
Piyush