Operating System - HP-UX
1753894 Members
7574 Online
108809 Solutions
New Discussion юеВ

vgimport without vgexport

 
Narasimha
Occasional Advisor

vgimport without vgexport

Hi ,

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
18 REPLIES 18
curt larson_1
Honored Contributor

Re: vgimport without vgexport

did you create the volume group device directory and the group special file
these need to be created before the command is executed
Bill Hassell
Honored Contributor

Re: vgimport without vgexport

Your new installation knows nothing about the attached disks. The simplest method is to run SAM, select Disks and File Systems, then Volume Groups (there will be a pause while SAM searches for all attached disks). Now select Actions -> Import. SAM will look at all the unassigned disks, find your old volume group and from there you can choose to import the volume group. If you old VG used standard names for lvols (ie,lvol1, lvol2, etc) then the import will be complete and you can create moutpoints and mount the disks.


Bill Hassell, sysadmin
Narasimha
Occasional Advisor

Re: vgimport without vgexport

Hi
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
Sanjiv Sharma_1
Honored Contributor

Re: vgimport without vgexport

Hi Narasimha,

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,
Everything is possible
Narasimha
Occasional Advisor

Re: vgimport without vgexport

Sajiv,

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 ??
Radhakrishnan Venkatara
Trusted Contributor

Re: vgimport without vgexport

Hi,

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
Negative thinking is a highest form of Intelligence
Narasimha
Occasional Advisor

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".
Thayanidhi
Honored Contributor

Re: vgimport without vgexport

Hi,

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


Attitude (not aptitude) determines altitude.
Narasimha
Occasional Advisor

Re: vgimport without vgexport

Hi ,

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.