- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgimport without vgexport
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
03-09-2004 01:12 PM
03-09-2004 01:12 PM
vgimport without vgexport
Recently I upgraded my system from hpux 11i 32 bit to 64bit with cold installation. After cold installation I tried to import the Volume groups of my disk arry . I can't import it .
Please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:20 PM
03-09-2004 01:20 PM
Re: vgimport without vgexport
these need to be created before the command is executed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:21 PM
03-09-2004 01:21 PM
Re: vgimport without vgexport
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:29 PM
03-09-2004 01:29 PM
Re: vgimport without vgexport
I re-created /dev/vg03 and group file , when i tried to import or vgcfgrestore it gives the error /etc/lvmconf/vg03.conf not found
From SAM its not recognising the volume group.
Please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:38 PM
03-09-2004 01:38 PM
Re: vgimport without vgexport
Have you created the map file and kept a backup of the same.
With previous OS
# vgexport -m /tmp/vg03.txt /dev/vg03
If yes then you can use this map file "vg03.txt" for the vgimport.
Else, you need to create the vg03/group with the same minor number as earlier one then run the vgimport.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:58 PM
03-09-2004 01:58 PM
Re: vgimport without vgexport
I didn't created any map file . I don't have the backup of /dev/vg03/group file . Is there a way to solve this ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 02:59 PM
03-09-2004 02:59 PM
Re: vgimport without vgexport
I did the following steps to restore my old VG's.
Create a directory /dev/vgxx and a group file.
then did vgimport -v /dev/vgxx /dev/dsk/cxtxdx /dev/dsk/cytydy
it worked fine.
Then i did a vgcfgbackup for this vg.
If u hv changed the LV names then u will not get that.
regards
Radhakrishnan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 04:05 PM
03-09-2004 04:05 PM
Re: vgimport without vgexport
Hi Radha Krishnan
I am getting the following out put
# vgimport -v /dev/vg03 /dev/dsk/c1t0d1 /dev/dsk/c4t1d1
Beginning the import process on Volume Group "/dev/vg03".
Volume group "/dev/vg03" is still active.
# vgcfgbackup /dev/vg03
vgcfgbackup: Couldn't access the list of physical volumes for volume group "/dev
/vg03".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 04:40 PM
03-09-2004 04:40 PM
Re: vgimport without vgexport
Try this.
First create group file with unique vg-id.
Then run
vgimport -v /dev/vgxx /dev/dsk/cxtydz /dev/dsk/cxtydz
From your last post: If you get VG is still
active run.
vgchange -a n /dev/vgxx
vgimport -v /dev/vgxx /dev/dsk... ......
vgchnage -a y /dev/vgyy
You can also run vgscan to find out unconfigured
LVM disks in the system. Move the /etc/lvmtab to /etc/lvmtab.old then run
vgscan.
If you don't have map file you loose only
custom lv names (If it was there already).
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 05:05 PM
03-09-2004 05:05 PM
Re: vgimport without vgexport
I am getting following information for vgscan
# vgscan -v
vgscan: The physical volume "/dev/dsk/c0t5d0" is already recorded in the "/etc/l
vmtab" file.
vgscan: The physical volume "/dev/dsk/c0t9d0" is already recorded in the "/etc/l
vmtab" file.
vgscan: The physical volume "/dev/dsk/c1t0d0" is already recorded in the "/etc/l
vmtab" file.
vgscan: The physical volume "/dev/dsk/c4t1d0" is already recorded in the "/etc/l
vmtab" file.
Current path "/dev/dsk/c4t1d0" is an alternate link, skip.
Physical Volume "/dev/dsk/c1t0d1" contains no LVM information
Physical Volume "/dev/dsk/c2t2d0" contains no LVM information
Physical Volume "/dev/dsk/c4t1d1" contains no LVM information
/dev/vg00
/dev/dsk/c0t5d0
/dev/dsk/c0t9d0
/dev/vgoracle
/dev/dsk/c1t0d0
/dev/dsk/c4t1d0
Scan of Physical Volumes Complete.
# vgchange -a n /dev/vg03
vgchange: Volume group "/dev/vg03" does not exist in the "/etc/lvmtab" file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 07:47 AM
03-10-2004 07:47 AM
Re: vgimport without vgexport
if /dev/vg03/group exists
otherwise create it with mkdir and mknod
then you can try
vgimport -p -v /dev/vg03 /dev/dsk/c1t0d1 /dev/dsk/c4t1d1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 08:17 AM
03-10-2004 08:17 AM
Re: vgimport without vgexport
vgimport -v /dev/vg03 {dsk} {dsk}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 08:42 AM
03-10-2004 08:42 AM
Re: vgimport without vgexport
I may be entirely off the mark... but this doesn't look good:
###############################################################
Physical Volume "/dev/dsk/c1t0d1" contains no LVM information
Physical Volume "/dev/dsk/c2t2d0" contains no LVM information
Physical Volume "/dev/dsk/c4t1d1" contains no LVM information
###############################################################
Typically you'd see something similar to:
"these disks are part of some volume group" (paraphrased)
Without an old config file to restore the lvm info from...
I'd guess you're out of luck on getting this VG back.
You may have to do it the long way now:
pvcreate the disks, vgcreate, lvcreate, mount, restore
Is it possible you have an old vg03.conf file on a backup?
If so, I'd restore it ASAP, and try the vgcfgrestore.
If that works, you'll likely be able to import vg03 afterwards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 03:17 PM
03-10-2004 03:17 PM
Re: vgimport without vgexport
If you do not do a vgcfgrestore there will be a good chance that volumes will not import.
Here would be the steps:
vgcfgbackup
backup map file
clean install the system
restore the map file
create /dev/vgxx (voulme group to be restored)
mknod the group file
vgcfgrestore the volume group
activate the volume group.
In most case's a vgimport will not work alone as it assumes you did a vgexport first.
Sounds like the only way to get around this problem would be to completly export the voulme group. Pvcreate the volumes and create the VG and the LV's and restore your data.
Again steps:
vgexport your vg
pvcreate -f your volumes
recreate your VG using what ever method you are comftorable with SAM or Command line
restore your data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 04:26 PM
03-10-2004 04:26 PM
Re: vgimport without vgexport
If you didn't do a vgexport, hope you run an Ignite. When running Ignite, it will create mapfiles of all VGs and put it in /etc/lvmconf. You can then do the vgimport from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 05:09 PM
03-10-2004 05:09 PM
Re: vgimport without vgexport
Prior to above all Please Do Not forget
to look for the patches and the compatibility of your Disk Array with the O.S.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 05:11 PM
03-10-2004 05:11 PM
Re: vgimport without vgexport
Assuming that everything is compatible to your new O.S. and also patches are applied.
Try the following :
cp /etc/lvmtab /etc/lvmtab.old
#vgscan -v
This will create a new lvmtab file and also tell you which of the disks are ready to import
Don't Panic if it takes time.
Tested One.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 12:21 AM
03-11-2004 12:21 AM
Re: vgimport without vgexport
Because the VGs don't exist on your system you have to create the appropriate structure.
# mkdir /dev/vgxx
# mknod /dev/vgxx/group c 64 0x010000
(use a new node for each VG, i.e. 0x020000)
Now import the information into the VG
# vgimport /dev/vgxx /dev/dsk/cxtxdx
# vgchange -a y /dev/vgxx
Any logical volumes will be imported as lvol1, lvol2...
# mount /dev/vgxx/lvol1 /dir_name
Manually edit your /etc/fstab file to reflect the mount.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:14 AM
03-11-2004 03:14 AM
Re: vgimport without vgexport
(via ignite or whatever)
This would be easier with vgcfgrestore
however you should be able to get the volume group back without it. Provided you have not pvcreated your disks. Using the steps provided numerous times above.
1) cp /etc/lvmtab /etc/lvmtab.old
2) vgscan -v
3) mkdir /dev/vg03
4) mknod /dev/vg03/group c 64 0x30000 (or any minor number not in use by other vgs)
5) vgimport -v /dev/vg03 {dsk} {dsk
If you pvcreate or have pvcreated your disks you will have to restore the data from backup.