1752579 Members
4520 Online
108788 Solutions
New Discussion юеВ

can't mount vg01

 
SOLVED
Go to solution

can't mount vg01

I have all the configuration in place and it has been working until now.

As you can see below i can see the raw device but information on it has dissapered?!?

# strings /etc/lvmtab
/dev/vg01
/dev/dsk/c40t0d0

# pvdisplay /dev/dsk/c40t0d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c40t0d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg01".
pvdisplay: Cannot display physical volume "/dev/dsk/c40t0d0".

# diskinfo /dev/rdsk/c40t0d0
SCSI describe of /dev/rdsk/c40t0d0:
vendor: HITACHI
product id: OPEN-E
type: direct access
size: 14226480 Kbytes
bytes per sector: 512
12 REPLIES 12
Kent Ostby
Honored Contributor

Re: can't mount vg01

Its possible that the LVM header data has been corrupted.

Use vgcfgrestore to fix:

vgcfgrestore -n /dev/vg01 /dev/rdsk/c40t0d0
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
RAC_1
Honored Contributor

Re: can't mount vg01

The diskinfo is OK, then someone moght have done pvcreate on the disk. Is the disk claimed in ioscan output?

Deactivate the group. Do vgcfgrestore -n vg01 -l. This will list vg information from default configuration file -/etc/lvmconf/vg01.conf.

Post what it lists.

Anil
There is no substitute to HARDWORK

Re: can't mount vg01

root@tm003[/] # vgcfgrestore -n /dev/vg01 /dev/rdsk/c40t0d0
Volume Group configuration has been restored to /dev/rdsk/c40t0d0
root@tm003[/] # mount -a
mount: /dev/vg04/bmptmp is already mounted on /bmp
mount: /dev/vg03/lvol14 is already mounted on /extfs
mount: /dev/vg05/lvol1 is already mounted on /data/oradata/ESMADEV
mount: /dev/vg03/lvol13 is already mounted on /d04
mount: /dev/vg03/lvol12 is already mounted on /d03
mount: /dev/vg03/lvol11 is already mounted on /d02
mount: /dev/vg02/lvol10 is already mounted on /d01
mount: /dev/vg00/lvol8 is already mounted on /var
mount: /dev/vg00/lvol7 is already mounted on /usr
mount: /dev/vg00/lvol6 is already mounted on /tmp
mount: /dev/vg00/lvol5 is already mounted on /opt
mount: /dev/vg05/lvol3 is already mounted on /opt/esma
vxfs mount: Cannot open /dev/vg01/lvol9: No such device or address
mount: /dev/vg00/lvol4 is already mounted on /home
mount: /dev/vg00/lvol1 is already mounted on /stand

Re: can't mount vg01

vgcfgrestore -n vg01 -l
Volume Group Configuration information in "/etc/lvmconf/vg01.conf"
VG Name /dev/vg01
---- Physical volumes : 1 ----
/dev/rdsk/c40t0d0 (Non-bootable)

Re: can't mount vg01

disk 131 1/8/0/0.3.11.0.0.0.0 sdisk CLAIMED DEVICE HITACHI OPEN-E
/dev/dsk/c40t0d0 /dev/rdsk/c40t0d0
G. Vrijhoeven
Honored Contributor

Re: can't mount vg01

Hi,

Do you have a lvol9 and rlvol in /dev/vg01?
Or is the mount point missing?

Gideon
Robert-Jan Goossens
Honored Contributor
Solution

Re: can't mount vg01

Hi Jannik,

I'm afraid someone toasted your vg01.

# ll /dev/vg01/

# vgdisplay -v vg01

and look if you still have some logical volums, if not recreat them and restore the data from backup.

Hope this helps,
Robert-Jan
RAC_1
Honored Contributor

Re: can't mount vg01

After vgcfgrestore do vgchange -a y vg01. check you have any lvols? Check /dev/vg01.

Then try mounting. mount /dev/vg01/lvolxx /mount_point

Post results.

Anil
There is no substitute to HARDWORK

Re: can't mount vg01

i have the /dev/vg01... files:
ll
total 0
cr--r--r-- 1 root sys 64 0x010000 Dec 12 2002 group
br--r----- 1 root sys 64 0x010001 Dec 12 2002 lvol9
cr--r----- 1 root sys 64 0x010001 Dec 12 2002 rlvol9

This is the status:

root@[/] # vgchange -a n /dev/vg01
Volume group "/dev/vg01" has been successfully changed.
root@[/] # vgcfgrestore -n /dev/vg01 /dev/rdsk/c40t0d0
Volume Group configuration has been restored to /dev/rdsk/c40t0d0
root@[/] # vgchange -a y /dev/vg01
Activated volume group
Volume group "/dev/vg01" has been successfully changed.
root@[/] # mount -a
mount: /dev/vg04/bmptmp is already mounted on /bmp
mount: /dev/vg03/lvol14 is already mounted on /extfs
mount: /dev/vg05/lvol1 is already mounted on /data/oradata/ESMADEV
mount: /dev/vg03/lvol13 is already mounted on /d04
mount: /dev/vg03/lvol12 is already mounted on /d03
mount: /dev/vg03/lvol11 is already mounted on /d02
mount: /dev/vg02/lvol10 is already mounted on /d01
mount: /dev/vg00/lvol8 is already mounted on /var
mount: /dev/vg00/lvol7 is already mounted on /usr
mount: /dev/vg00/lvol6 is already mounted on /tmp
mount: /dev/vg00/lvol5 is already mounted on /opt
mount: /dev/vg05/lvol3 is already mounted on /opt/esma
vxfs mount: /dev/vg01/lvol9 is corrupted. needs checking
mount: /dev/vg00/lvol4 is already mounted on /home
mount: /dev/vg00/lvol1 is already mounted on /stand
root@[/] # fsck /dev/vg01/lvol9
vxfs fsck: OLT extent 0 has bad checksum
read of primary OLT failed
vxfs fsck: OLT extent 1 has bad checksum
read of OLT copy failed
vxfs fsck: no valid OLT, cannot continue
file system check failure, aborting ...