LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   LVM got crashed (http://www.linuxquestions.org/questions/linux-server-73/lvm-got-crashed-940572/)

mail2vivek1 04-18-2012 11:43 PM

LVM got crashed
 
Hello All,

I am having problem with HP-UX 11.11 system. My LVM got crashed. I checked my disks are fine.
when i ran vgscan, i was advised to import the data using vgimport. I created /dev/vg09 and then created node with same monor numner(i know its wrong)
Please see below commands and output.
Please suggest me how can i assign unique minor number in vgimport.

Note:- I am getting bcheckrc prompt. and only root file system is mounted. As LVM crashed , (/usr, /swap, /dump etc) nothing else is mounted.


Please suggest




# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
disk 0 1/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 300 GHUS153030VL3800
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 1 1/0/0/2/1.2.0 sdisk CLAIMED DEVICE Optiarc DVD RW AD-5200A
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 300 GHUS153030VL3800
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0


disk 3 1/0/10/1/0.8.0 sdisk CLAIMED DEVICE HP 300 GHUS153030VL3800
/dev/dsk/c12t8d0 /dev/rdsk/c12t8d0
disk 4 1/0/10/1/0.10.0 sdisk CLAIMED DEVICE HP 300 GHUS153030VL3800
/dev/dsk/c12t10d0 /dev/rdsk/c12t10d0
disk 9 1/0/14/1/0.8.0 sdisk CLAIMED DEVICE HP 300 GHUS153030VL3800
/dev/dsk/c16t8d0 /dev/rdsk/c16t8d0
disk 10 1/0/14/1/0.10.0 sdisk CLAIMED DEVICE HP 300 GHUS153030VL3800
/dev/dsk/c16t10d0 /dev/rdsk/c16t10d0
disk 5 1/0/14/1/1.8.0 sdisk CLAIMED DEVICE HP 300 GHUS153030VL3800
/dev/dsk/c17t8d0 /dev/rdsk/c17t8d0
disk 6 1/0/14/1/1.10.0 sdisk CLAIMED DEVICE HP 300 GHUS153030VL3800
/dev/dsk/c17t10d0 /dev/rdsk/c17t10d0



---------------

PV Name /dev/dsk/c12t8d0
PV Name /dev/dsk/c12t10d0
PV Name /dev/dsk/c6t8d0
PV Name /dev/dsk/c7t10d0
PV Name /dev/dsk/c6t10d0
PV Name /dev/dsk/c7t8d0

------

(bcheckrc)#/usr/sbin/vgscan
/sbin/sh: /usr/sbin/vgscan: not found
(bcheckrc)#vgscan
vgscan: The physical volume "/dev/dsk/c0t6d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t6d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c12t8d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c12t10d0" is already recorded in the "/etc/lvmtab" file.
Couldn't stat physical volume "/dev/dsk/c1t2d0":
Invalid argument

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/c0t6d0
/dev/dsk/c2t6d0




--------------------------------------------------
--------------------------------------------------

WHAT I DID
--------------------------------------------------
--------------------------------------------------


mknod /dev/vg03/group c 64 0x040000

(bcheckrc)#vgimport -v /dev/vg03 /dev/dsk/c12t8d0 /dev/dsk/c12t10d0
Beginning the import process on Volume Group "/dev/vg03".
vgimport: Minor number of /dev/vg03/group is not unique. /dev/vg01/group has the same minor number.


(bcheckrc)#vgimport -v /dev/vg03 /dev/dsk/c12t8d0 /dev/dsk/c12t10d0
Beginning the import process on Volume Group "/dev/vg03".
vgimport: Minor number of /dev/vg03/group is not unique. /dev/vg01/group has the same minor number.


(bcheckrc)#ls -lrt /dev/*/group
crw-rw-rw- 1 root root 64 0x040000 Nov 22 2008 /dev/vg01/group
crw-rw-rw- 1 root root 64 0x040000 Apr 18 15:34 /dev/vg03/group

/dev/vg07/group:
total 0

/dev/vg09/group:
total 0
(bcheckrc)#



(bcheckrc)#vgscan
Error getting path name of volume group with group file minor number 0x40000.
Minor number of /dev/vg03/group is not unique. /dev/vg01/group has the same minor number.
vgscan: The physical volume "/dev/dsk/c0t6d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t6d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c12t8d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c12t10d0" is already recorded in the "/etc/lvmtab" file.
Couldn't stat physical volume "/dev/dsk/c1t2d0":
Invalid argument

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/c0t6d0
/dev/dsk/c2t6d0

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/c12t8d0
/dev/dsk/c12t10d0

(bcheckrc)#

EricTRA 04-19-2012 12:33 AM

Hello,

Please post your question in only one forum. It's hard to keep up with the conversation if you post it in multiple forums which is a violation of the LQ Rules to which you agreed when you signed up. You (and we) will only loose track. Stick to this thread please. I've reported the other one for closure.

Kind regards,

Eric


All times are GMT -5. The time now is 09:36 PM.