Operating System - HP-UX
1849745 Members
6741 Online
104044 Solutions
New Discussion

Re: could not active volums groups

 
Abdullah_2
Advisor

could not active volums groups

Dear All ,
I'll show you LVMTAB :
# strings /etc/lvmtab
/dev/vg00
#:?$Z&
/dev/dsk/c0t5d0
/dev/dsk/c0t8d0
/dev/vgsaspstn
/dev/dsk/c2t1d0
/dev/dsk/c2t2d0
/dev/dsk/c2t3d0
-------------------------------------
# more /etc/fstab
/dev/vgsaspstn/lvapp /saspstnapp vxfs rw,suid,nolargefiles,delaylog,datainlog 0
2
/dev/vgsaspstn/lvdata /saspstndata vxfs rw,suid,nolargefiles,delaylog,datainlog
0 2
-------------------------------------------
# vgimport -v /dev/vgsaspstn /dev/dsk/c2t1d0 /dev/dsk/c2t2d0 /dev/dsk/c2t3d0
Beginning the import process on Volume Group "/dev/vgsaspstn".
vgimport: Volume group "/dev/vgsaspstn" already exists in the "/etc/lvmtab" file
----------------------------------------------
# vgcfgrestore -n /dev/vgsaspstn /dev/rdsk/c2t1d0
Volume Group configuration has been restored to /dev/rdsk/c2t1d0
# vgcfgrestore -n /dev/vgsaspstn /dev/rdsk/c2t2d0
Volume Group configuration has been restored to /dev/rdsk/c2t2d0
# vgcfgrestore -n /dev/vgsaspstn /dev/rdsk/c2t3d0
Volume Group configuration has been restored to /dev/rdsk/c2t3d0
----------------------------------------------
# vgchange -a y vgsaspstn
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk
/c2t1d0":
Cross-device link
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk
/c2t2d0":
Cross-device link
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk
/c2t3d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t1d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t3d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Couldn't query the list of physical volumes.
vgchange: Couldn't activate volume group "vgsaspstn":
Quorum not present, or some physical volume(s) are missing.
----------------------------------------------
# ioscan -funC disk |grep c2
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
/dev/dsk/c2t3d0 /dev/rdsk/c2t3d0
/dev/dsk/c2t4d0 /dev/rdsk/c2t4d0
/dev/dsk/c2t5d0 /dev/rdsk/c2t5d0
---------------------------------------------
I do not know what i have to do to return all the volum groups ?

Note I already do vgimport !
Any Idea please ?

Regards
5 REPLIES 5
Rajeev  Shukla
Honored Contributor

Re: could not active volums groups

See where you went wrong is when you did the vgcfgrestore
when you do the vgcfgrestore you should supply all the disk which were in that volume group not disk one by one as you have done that has corrupted the volume group configuration on the disks.

And vgimport wont happen till the disks are in /etc/lvmtab
Now there is very little you can do to restore the lv and data. What you can do is export the volume group
1. vgexport
2. mkdir /dev/
3. mknod /dev//group c 64
and vgimport
4. vgimport /dev/ <....all disks to be included in VG>
5. If vgimport doesn't work then you have to create the VG again and then all lv and restore the data from backup.
vgcreate /dev/ ....all disks...
lvcreate ...

Thanks
Rajeev
Massimo Bianchi
Honored Contributor

Re: could not active volums groups

hi,
are there any other disks, from another chain ?

What is this storage? Is it possible that you used some disks that belongs to a vg on another server ?

Please post a full (if not already so)

strings /etc/lvmtab

and ioscan -fnCdisk


I suspect that you re-used some disks..

Another thing: in the output it comes:

"/dev/dsk
/c2t3d0":


on two rows, can you confirm this ? i suspect also some corruption in lvmtab or vgda/vgra structures...

Massimo Bianchi
Honored Contributor

Re: could not active volums groups

From your other thread i see:


http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfaf43ac61301774ba24b37ec56774b38,00.html

that you had other vg.

Check the minor number !

ll /dev/vg*/group

to see if they are unique
Eslam Kamal
Occasional Advisor

Re: could not active volums groups

Hi

I think that you have a problem with lvmtab so run vgscan in preview mode and if the output is ok run it for update lvmtab

# vgscan -p -a -v

# vgscan -a -v

good luck
sdip
Advisor

Re: could not active volums groups

It seems your lvmtab got corrupted. Do the following steps to rectify the problem

1) mv /etc/lvmtab /etc/lvmtab.org
2) vgscan -a -v

The above command will recreate lvmtab file. Now you check your vgdisplay command.