From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Berger" Date: Tue, 16 Oct 2001 18:19:38 +0200 Message-ID: <000201c1565e$5affe980$6c88e289@tweety> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0003_01C1566F.1E8A4020" Subject: [linux-lvm] Remount a LVM Vol after a system crash Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: To: linux-lvm@sistina.com This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C1566F.1E8A4020 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, A few days ago my system crashes and i=92ve used LVM v 0.8 with one = volume group(server), two physical volumes(hda6, hdb6) and one logical volume(dev/server/ftp) Now i=92ve installed Suse 7.2 with LVM v 0.9 Beta7, but i can=92t mount = the logical volume. The error message is: # mount /dev/server/ftp /mnt mount: wrong fs type, bad option, bad superblock on /dev/server/ftp, or too many mounted file systems =20 I get the following outputs from my system: =20 # vgscan vgscan -- reading all physical volumes (this may take a while...) vgscan -- found active volume group "server" vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group =20 # pvscan pvscan -- reading all physical volumes (this may take a while...) pvscan -- ACTIVE PV "/dev/hda6" of VG "server" [37.78 GB / 0 free] pvscan -- ACTIVE PV "/dev/hdb5" of VG "server" [41.92 GB / 0 free] pvscan -- total: 2 [79.71 GB] / in use: 2 [79.71 GB] / in no VG: 0 [0] =20 # pvdisplay /dev/hda6 --- Physical volume --- PV Name /dev/hda6 VG Name server PV Size 37.78 GB / NOT usable 3.75 MB [LVM: 267 KB] PV# 1 PV Status available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 9671 Free PE 0 Allocated PE 9671 PV UUID /dev/h-da6 =20 # pvdisplay /dev/hdb5 --- Physical volume --- PV Name /dev/hdb5 VG Name server PV Size 41.93 GB / NOT usable 3.45 MB [LVM: 271 KB] PV# 2 PV Status available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 10732 Free PE 0 Allocated PE 10732 PV UUID /dev/h-db5 =20 # vgchange -ay vgchange -- volume group "server" already active =20 # lvchange -ay /dev/server/ftp lvchange -- logical volume "/dev/server/ftp" is already active lvchange -- availability of logical volume "/dev/server/ftp" doesn't have to be changed lvchange -- logical volume "/dev/server/ftp" didn't have to be changed =20 =20 I=92ve tried to follow the instructions of the mailing list article, = i=92ve found at http://www.geocrawler.com/archives/3/3500/2001/4/0/5655568/ But it doesn=92t work, After vgchange =96ay I get an error message, too, like =20 vgcfgrestore -- ERROR: different structure size stored in "/etc/lvmconf/export.conf" than expected in file vg_cfgrestore.c [line=20 > 120] > vgcfgrestore -- ERROR "vg_cfgrestore(): read" restoring volume group "export" =20 I hope you can help me, Thanks=20 Christoph=20 ------=_NextPart_000_0003_01C1566F.1E8A4020 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello,

A few days ago my = system crashes and i’ve used LVM v 0.8 with one volume group(server), two = physical volumes(hda6, hdb6) and one logical = volume(dev/server/ftp)

Now i’ve = installed Suse 7.2 with LVM v 0.9 Beta7, but i can’t mount the logical = volume.

The error message = is:

# mount = /dev/server/ftp /mnt

mount: wrong fs type, = bad option, bad superblock on /dev/server/ftp,

=A0=A0=A0=A0=A0=A0 or too many mounted = file systems

 

I get the following = outputs from my system:

 

# = vgscan

vgscan -- reading all physical volumes (this may take a while...)

vgscan -- found active = volume group "server"

vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully = created

vgscan -- WARNING: = This program does not do a VGDA backup of your volume = group

 

# = pvscan

pvscan -- reading all physical volumes (this may take a while...)

pvscan -- ACTIVE=A0=A0 PV "/dev/hda6" of VG "server" [37.78 GB / 0 free]

pvscan -- ACTIVE=A0=A0 PV "/dev/hdb5" of VG "server" [41.92 GB / 0 free]

pvscan -- total: 2 = [79.71 GB] / in use: 2 [79.71 GB] / in no VG: 0 [0]

 

# pvdisplay = /dev/hda6

--- Physical volume = ---

PV Name=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = /dev/hda6

VG Name=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = server

PV Size=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 37.78 GB / NOT usable 3.75 MB [LVM: 267 KB]

PV#=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 1

PV Status=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = available

Allocatable=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 yes = (but full)

Cur LV=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 1

PE Size (KByte)=A0=A0=A0=A0=A0=A0 = 4096

Total PE=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 9671

Free PE=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0

Allocated PE=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 9671

PV UUID=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = /dev/h-da6

 

# pvdisplay = /dev/hdb5

--- Physical volume = ---

PV Name=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = /dev/hdb5

VG Name=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = server

PV Size=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 41.93 GB / NOT usable 3.45 MB [LVM: 271 KB]

PV#=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 2

PV Status=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = available

Allocatable=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0yes (but = full)

Cur LV=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 1

PE Size (KByte)=A0=A0=A0=A0=A0=A0 = 4096

Total PE=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 10732

Free PE=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0

Allocated PE=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 10732

PV UUID=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = /dev/h-db5

 

# vgchange = -ay

vgchange -- volume = group "server" already active

 

# lvchange -ay /dev/server/ftp

lvchange -- logical = volume "/dev/server/ftp" is already = active

lvchange -- = availability of logical volume "/dev/server/ftp" doesn't have to be = changed

lvchange -- logical = volume "/dev/server/ftp" didn't have to be = changed

 

 

I’ve tried to = follow the instructions of the mailing list article, i’ve found at http= ://www.geocrawler.com/archives/3/3500/2001/4/0/5655568/

But it doesn’t = work, After vgchange –ay I get an error message, too, = like

=A0
=
vgcfgrestore -- ERROR: different structure size stored in =
"/etc/lvmconf/export.conf"
<=
font
size=3D2 face=3DCourier>than expected in file vg_cfgrestore.c [line =
> 120]
> =
vgcfgrestore -- ERROR "vg_cfgrestore(): read" restoring volume =
group "export"

 

I hope you can help = me,

Thanks =

Christoph =

------=_NextPart_000_0003_01C1566F.1E8A4020--