From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <00cd01c25f0c$2990ffd0$1c01a8c0@internal.tripnet.int> From: "Robin Edgar - Tripany" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00CA_01C25F1C.B2A3D6C0" Subject: [linux-lvm] Help! unable to mount lv's - can't see why! 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: Date: Wed Sep 18 06:37:42 2002 List-Id: To: linux-lvm@sistina.com This is a multi-part message in MIME format. ------=_NextPart_000_00CA_01C25F1C.B2A3D6C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I had 4 (ide) disks in an array (and 1 vg) of which one (hde) broke. As = I was not too sure of the stability of the system, I decided to do a dd = of the disk byte by byte to another identical disk. After this was done = (with loads of sector unreadable errors) I replaced the old disk with = the new disk, rebooted the system and by all standards all seems well = (see below): Unfortunately, only the /dev/tripserv_vol/docu will mount well! /dev/tripserv_vol/pages gives the following error: # mount /dev/tripserv_vol/pages /c mount: you must specify the filesystem type # mount /dev/tripserv_vol/pages /c -t ext3 mount: wrong fs type, bad option, bad superblock on = /dev/tripserv_vol/pages, or too many mounted file systems Anyone have any ideas why it won't mount?! Cheers, Robin Edgar #pvscan: pvscan -- reading all physical volumes (this may take a while...) pvscan -- ACTIVE PV "/dev/hdg1" of VG "tripserv_vol" [38.16 GB / 7.93 = GB free] pvscan -- ACTIVE PV "/dev/hdh1" of VG "tripserv_vol" [38.16 GB / 8.01 = GB free] pvscan -- ACTIVE PV "/dev/hde1" of VG "tripserv_vol" [55.91 GB / 0 = free] pvscan -- ACTIVE PV "/dev/hdf1" of VG "tripserv_vol" [55.91 GB / 3.37 = GB free] pvscan -- total: 4 [188.16 GB] / in use: 4 [188.16 GB] / in no VG: 0 [0] (identical output to before changing the disks around) #pvdisplay /dev/hde1 --- Physical volume --- PV Name /dev/hde1 VG Name tripserv_vol PV Size 55.92 GB [117266625 secs] / NOT usable 4.18 MB = [LVM: 179 KB] PV# 1 PV Status available Allocatable yes (but full) Cur LV 20 PE Size (KByte) 4096 Total PE 14313 Free PE 0 Allocated PE 14313 PV UUID KCIKwa-3lvx-k7bj-27ks-hGlI-oZRo-5q7CjM (also identical) #vgck -v vgck -- locking logical volume manager vgck -- finding all volume group(s) vgck -- checking volume group name "tripserv_vol" vgck -- checking existence of volume group "tripserv_vol" vgck -- reading volume group data for "tripserv_vol" from lvmtab vgck -- checking volume group consistency of "tripserv_vol" in lvmtab vgck -- VGDA of "tripserv_vol" in lvmtab is consistent vgck -- reading volume group data for "tripserv_vol" from physical = volume(s) vgck -- checking volume group consistency of "tripserv_vol" on physical = volumes vgck -- VGDA of "tripserv_vol" on physical volumes is consistent vgck -- unlocking logical volume manager # vgdisplay --- Volume group --- VG Name tripserv_vol VG Access read/write VG Status available/resizable VG # 0 MAX LV 255 Cur LV 22 Open LV 1 MAX LV Size 255.99 GB Max PV 255 Cur PV 4 Act PV 4 VG Size 188.13 GB PE Size 4 MB Total PE 48162 Alloc PE / Size 43220 / 168.83 GB Free PE / Size 4942 / 19.30 GB VG UUID KDiCWx-ae2w-oDnx-Hl5O-Amhd-fIM3-y51bIX # vgscan -v vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d" vgscan -- creating empty "/etc/lvmtab" and "/etc/lvmtab.d" vgscan -- reading all physical volumes (this may take a while...) vgscan -- scanning for all active volume group(s) first vgscan -- found active volume group "tripserv_vol" vgscan -- reading data of volume group "tripserv_vol" from physical = volume(s) vgscan -- inserting "tripserv_vol" into lvmtab vgscan -- backing up volume group "tripserv_vol" vgscan -- checking volume group name "tripserv_vol" vgscan -- checking volume group consistency of "tripserv_vol" vgscan -- checking existence of "/etc/lvmtab.d" vgscan -- storing volume group data of "tripserv_vol" in = "/etc/lvmtab.d/tripserv_vol.tmp" vgscan -- storing physical volume data of "tripserv_vol" in = "/etc/lvmtab.d/tripserv_vol.tmp" vgscan -- storing logical volume data of volume group "tripserv_vol" in = "/etc/lvmtab.d/tripserv_vol.tmp" vgscan -- renaming "/etc/lvmtab.d/tripserv_vol.tmp" to = "/etc/lvmtab.d/tripserv_vol" vgscan -- removing special files and directory for volume group = "tripserv_vol" vgscan -- creating directory and group character special file for = "tripserv_vol" vgscan -- creating block device special files for tripserv_vol vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume = group #lvscan lvscan -- ACTIVE Original "/dev/tripserv_vol/docu" [512 MB] striped[4] lvscan -- ACTIVE Original "/dev/tripserv_vol/install" [10 GB] = striped[4] lvscan -- ACTIVE Original "/dev/tripserv_vol/pages" [20 GB] striped[4] lvscan -- ACTIVE "/dev/tripserv_vol/gfx" [10 GB] striped[4] lvscan -- ACTIVE "/dev/tripserv_vol/sfx" [10 GB] striped[4] lvscan -- ACTIVE "/dev/tripserv_vol/people" [20 GB] = striped[4] lvscan -- ACTIVE Original "/dev/tripserv_vol/dim" [2 GB] striped[4] lvscan -- ACTIVE "/dev/tripserv_vol/mp3" [20 GB] striped[4] lvscan -- ACTIVE "/dev/tripserv_vol/applications" [2 GB] = striped[4] lvscan -- ACTIVE Original "/dev/tripserv_vol/code" [512 MB] striped[4] lvscan -- ACTIVE "/dev/tripserv_vol/dumpdir" [10 GB] = striped[4] lvscan -- ACTIVE Original "/dev/tripserv_vol/homes" [10 GB] striped[4] lvscan -- ACTIVE Original "/dev/tripserv_vol/info" [5 GB] striped[4] lvscan -- ACTIVE "/dev/tripserv_vol/log" [252 MB] striped[3] lvscan -- ACTIVE "/dev/tripserv_vol/store" [608 MB] = striped[4] lvscan -- ACTIVE Snapshot "/dev/tripserv_vol/docusnap" [492.19 MB] of = /dev/tripserv_vol/docu lvscan -- ACTIVE Snapshot "/dev/tripserv_vol/installsnap" [9.84 GB] of = /dev/tripserv_vol/install lvscan -- ACTIVE Snapshot "/dev/tripserv_vol/dimsnap" [1.97 GB] of = /dev/tripserv_vol/dim lvscan -- ACTIVE Snapshot "/dev/tripserv_vol/codesnap" [504 MB] of = /dev/tripserv_vol/code lvscan -- ACTIVE Snapshot "/dev/tripserv_vol/pagessnap" [19.69 GB] of = /dev/tripserv_vol/pages lvscan -- ACTIVE Snapshot "/dev/tripserv_vol/infosnap" [4.92 GB] of = /dev/tripserv_vol/info lvscan -- ACTIVE Snapshot "/dev/tripserv_vol/homessnap" [9.84 GB] of = /dev/tripserv_vol/homes lvscan -- 22 logical volumes with 168.08 GB total in 1 volume group lvscan -- 22 active logical volumes # lvdisplay /dev/tripserv_vol/docu --- Logical volume --- LV Name /dev/tripserv_vol/docu VG Name tripserv_vol LV Write Access read/write LV snapshot status source of /dev/tripserv_vol/docusnap [active] LV Status available LV # 1 # open 1 LV Size 512 MB Current LE 128 Allocated LE 128 Stripes 4 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:0 # lvdisplay /dev/tripserv_vol/people --- Logical volume --- LV Name /dev/tripserv_vol/people VG Name tripserv_vol LV Write Access read/write LV Status available LV # 6 # open 0 LV Size 20 GB Current LE 5120 Allocated LE 5120 Stripes 4 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:5 # lvdisplay /dev/tripserv_vol/pages --- Logical volume --- LV Name /dev/tripserv_vol/pages VG Name tripserv_vol LV Write Access read/write LV snapshot status source of /dev/tripserv_vol/pagessnap [active] LV Status available LV # 3 # open 0 LV Size 20 GB Current LE 5120 Allocated LE 5120 Stripes 4 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:2 tripserv:/# lvdisplay /dev/tripserv_vol/pagessnap --- Logical volume --- LV Name /dev/tripserv_vol/pagessnap VG Name tripserv_vol LV Write Access read only LV snapshot status active destination for /dev/tripserv_vol/pages LV Status available LV # 20 # open 0 LV Size 20 GB Current LE 5120 Allocated LE 5120 snapshot chunk size 64 KB Allocated to snapshot 0.00% [0/19.69 GB] Allocated to COW-table 320 MB Stripes 4 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:19 # lvdisplay /dev/tripserv_vol/docusnap --- Logical volume --- LV Name /dev/tripserv_vol/docusnap VG Name tripserv_vol LV Write Access read only LV snapshot status active destination for /dev/tripserv_vol/docu LV Status available LV # 16 # open 0 LV Size 512 MB Current LE 128 Allocated LE 128 snapshot chunk size 64 KB Allocated to snapshot 0.05% [256 KB/492.19 MB] Allocated to COW-table 7.81 MB Stripes 4 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:15 So it all looks good! ------=_NextPart_000_00CA_01C25F1C.B2A3D6C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I had 4 (ide) disks in an array (and 1 = vg) of which=20 one (hde) broke. As I was not too sure of the stability of the system, I = decided=20 to do a dd of the disk byte by byte to another identical disk. After = this was=20 done (with loads of sector unreadable errors) I replaced the old = disk with=20 the new disk, rebooted the system and by all standards all seems well = (see=20 below):
Unfortunately, only the = /dev/tripserv_vol/docu=20 will mount well!
/dev/tripserv_vol/pages gives the = following=20 error:
 
# mount /dev/tripserv_vol/pages = /c
mount: you=20 must specify the filesystem type
# mount /dev/tripserv_vol/pages /c -t=20 ext3
mount: wrong fs type, bad option, bad superblock on=20 /dev/tripserv_vol/pages,
       or too = many=20 mounted file systems
Anyone have any ideas why it won't=20 mount?!
 
Cheers,
Robin Edgar
 
#pvscan:
pvscan -- reading all physical volumes = (this may=20 take a while...)
pvscan -- ACTIVE   PV "/dev/hdg1" of VG=20 "tripserv_vol" [38.16 GB / 7.93 GB free]
pvscan -- ACTIVE   = PV=20 "/dev/hdh1" of VG "tripserv_vol" [38.16 GB / 8.01 GB free]
pvscan --=20 ACTIVE   PV "/dev/hde1" of VG "tripserv_vol" [55.91 GB / 0=20 free]
pvscan -- ACTIVE   PV "/dev/hdf1" of VG = "tripserv_vol" [55.91=20 GB / 3.37 GB free]
pvscan -- total: 4 [188.16 GB] / in use: 4 [188.16 = GB] /=20 in no VG: 0 [0]
(identical output to before changing = the disks=20 around)
 
#pvdisplay /dev/hde1
--- Physical = volume=20 ---
PV=20 Name           &nb= sp;  =20 /dev/hde1
VG=20 Name           &nb= sp;  =20 tripserv_vol
PV=20 Size           &nb= sp;  =20 55.92 GB [117266625 secs] / NOT usable 4.18 MB [LVM: 179=20 KB]
PV#          &nb= sp;       =20 1
PV=20 Status           &= nbsp;=20 available
Allocatable        &= nbsp; =20 yes (but full)
Cur=20 LV            = ;   =20 20
PE Size (KByte)       4096
Total=20 PE            = ; =20 14313
Free=20 PE            = ;  =20 0
Allocated PE         =20 14313
PV=20 UUID           &nb= sp;  =20 KCIKwa-3lvx-k7bj-27ks-hGlI-oZRo-5q7CjM
(also identical)
 
#vgck -v
vgck -- locking logical = volume=20 manager
vgck -- finding all volume group(s)
vgck -- checking = volume group=20 name "tripserv_vol"
vgck -- checking existence of volume group=20 "tripserv_vol"
vgck -- reading volume group data for "tripserv_vol" = from=20 lvmtab
vgck -- checking volume group consistency  of = "tripserv_vol" in=20 lvmtab
vgck -- VGDA of "tripserv_vol" in lvmtab is consistent
vgck = --=20 reading volume group data for "tripserv_vol" from physical = volume(s)
vgck --=20 checking volume group consistency  of "tripserv_vol" on physical=20 volumes
vgck -- VGDA of "tripserv_vol" on physical volumes is=20 consistent
vgck -- unlocking logical volume manager
# vgdisplay
--- Volume group = ---
VG=20 Name           &nb= sp;  =20 tripserv_vol
VG=20 Access           &= nbsp;=20 read/write
VG=20 Status           &= nbsp;=20 available/resizable
VG=20 #            =      =20 0
MAX=20 LV            = ;   =20 255
Cur=20 LV            = ;   =20 22
Open=20 LV            = ;  =20 1
MAX LV = Size          =20 255.99 GB
Max=20 PV            = ;   =20 255
Cur=20 PV            = ;   =20 4
Act=20 PV            = ;   =20 4
VG=20 Size           &nb= sp;  =20 188.13 GB
PE=20 Size           &nb= sp;  =20 4 MB
Total=20 PE            = ; =20 48162
Alloc PE / Size       43220 / = 168.83=20 GB
Free  PE / Size       4942 / = 19.30=20 GB
VG=20 UUID           &nb= sp;  =20 KDiCWx-ae2w-oDnx-Hl5O-Amhd-fIM3-y51bIX
# vgscan -v
vgscan -- removing = "/etc/lvmtab" and=20 "/etc/lvmtab.d"
vgscan -- creating empty "/etc/lvmtab" and=20 "/etc/lvmtab.d"
vgscan -- reading all physical volumes (this may take = a=20 while...)
vgscan -- scanning for all active volume group(s) = first
vgscan=20 -- found active volume group "tripserv_vol"
vgscan -- reading data of = volume=20 group "tripserv_vol" from physical volume(s)
vgscan -- inserting=20 "tripserv_vol" into lvmtab
vgscan -- backing up volume group=20 "tripserv_vol"
vgscan -- checking volume group name = "tripserv_vol"
vgscan=20 -- checking volume group consistency of "tripserv_vol"
vgscan -- = checking=20 existence of "/etc/lvmtab.d"
vgscan -- storing volume group data of=20 "tripserv_vol" in "/etc/lvmtab.d/tripserv_vol.tmp"
vgscan -- storing = physical=20 volume data of "tripserv_vol" in = "/etc/lvmtab.d/tripserv_vol.tmp"
vgscan --=20 storing logical volume data of volume group "tripserv_vol" in=20 "/etc/lvmtab.d/tripserv_vol.tmp"
vgscan -- renaming=20 "/etc/lvmtab.d/tripserv_vol.tmp" to = "/etc/lvmtab.d/tripserv_vol"
vgscan --=20 removing special files and directory for volume group = "tripserv_vol"
vgscan=20 -- creating directory and group character special file for=20 "tripserv_vol"
vgscan -- creating block device special files for=20 tripserv_vol
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully = created
vgscan -- WARNING: This program does not do a VGDA backup of = your=20 volume group
#lvscan
lvscan -- ACTIVE   Original=20 "/dev/tripserv_vol/docu" [512 MB] striped[4]
lvscan -- = ACTIVE  =20 Original "/dev/tripserv_vol/install" [10 GB] striped[4]
lvscan --=20 ACTIVE   Original "/dev/tripserv_vol/pages" [20 GB]=20 striped[4]
lvscan --=20 ACTIVE            = "/dev/tripserv_vol/gfx" [10 GB] striped[4]
lvscan --=20 ACTIVE            = "/dev/tripserv_vol/sfx" [10 GB] striped[4]
lvscan --=20 ACTIVE            = "/dev/tripserv_vol/people" [20 GB] striped[4]
lvscan -- = ACTIVE  =20 Original "/dev/tripserv_vol/dim" [2 GB] striped[4]
lvscan --=20 ACTIVE            = "/dev/tripserv_vol/mp3" [20 GB] striped[4]
lvscan --=20 ACTIVE            = "/dev/tripserv_vol/applications" [2 GB] striped[4]
lvscan --=20 ACTIVE   Original "/dev/tripserv_vol/code" [512 MB]=20 striped[4]
lvscan --=20 ACTIVE            = "/dev/tripserv_vol/dumpdir" [10 GB] striped[4]
lvscan -- = ACTIVE  =20 Original "/dev/tripserv_vol/homes" [10 GB] striped[4]
lvscan --=20 ACTIVE   Original "/dev/tripserv_vol/info" [5 GB] = striped[4]
lvscan=20 -- = ACTIVE            = "/dev/tripserv_vol/log" [252 MB] striped[3]
lvscan --=20 ACTIVE            = "/dev/tripserv_vol/store" [608 MB] striped[4]
lvscan -- = ACTIVE  =20 Snapshot "/dev/tripserv_vol/docusnap" [492.19 MB] of=20 /dev/tripserv_vol/docu
lvscan -- ACTIVE   Snapshot=20 "/dev/tripserv_vol/installsnap" [9.84 GB] of = /dev/tripserv_vol/install
lvscan=20 -- ACTIVE   Snapshot "/dev/tripserv_vol/dimsnap" [1.97 GB] of=20 /dev/tripserv_vol/dim
lvscan -- ACTIVE   Snapshot=20 "/dev/tripserv_vol/codesnap" [504 MB] of = /dev/tripserv_vol/code
lvscan --=20 ACTIVE   Snapshot "/dev/tripserv_vol/pagessnap" [19.69 GB] of=20 /dev/tripserv_vol/pages
lvscan -- ACTIVE   Snapshot=20 "/dev/tripserv_vol/infosnap" [4.92 GB] of = /dev/tripserv_vol/info
lvscan --=20 ACTIVE   Snapshot "/dev/tripserv_vol/homessnap" [9.84 GB] of=20 /dev/tripserv_vol/homes
lvscan -- 22 logical volumes with 168.08 GB = total in=20 1 volume group
lvscan -- 22 active logical volumes
# lvdisplay = /dev/tripserv_vol/docu
--- Logical=20 volume ---
LV=20 Name           &nb= sp;   =20 /dev/tripserv_vol/docu
VG=20 Name           &nb= sp;   =20 tripserv_vol
LV Write = Access       =20 read/write
LV snapshot status     source=20 of
           &= nbsp;          =20 /dev/tripserv_vol/docusnap [active]
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 1
#=20 open           &nb= sp;    =20 1
LV=20 Size           &nb= sp;   =20 512 MB
Current=20 LE            = ;=20 128
Allocated = LE          =20 128
Stripes          = ;     =20 4
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:0
# lvdisplay = /dev/tripserv_vol/people
--- Logical=20 volume ---
LV=20 Name           &nb= sp;   =20 /dev/tripserv_vol/people
VG=20 Name           &nb= sp;   =20 tripserv_vol
LV Write = Access       =20 read/write
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 6
#=20 open           &nb= sp;    =20 0
LV=20 Size           &nb= sp;   =20 20 GB
Current=20 LE            = ;=20 5120
Allocated = LE          =20 5120
Stripes         &nbs= p;     =20 4
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:5
 
# lvdisplay = /dev/tripserv_vol/pages
--- Logical=20 volume ---
LV=20 Name           &nb= sp;   =20 /dev/tripserv_vol/pages
VG=20 Name           &nb= sp;   =20 tripserv_vol
LV Write = Access       =20 read/write
LV snapshot status     source=20 of
           &= nbsp;          =20 /dev/tripserv_vol/pagessnap [active]
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 3
#=20 open           &nb= sp;    =20 0
LV=20 Size           &nb= sp;   =20 20 GB
Current=20 LE            = ;=20 5120
Allocated = LE          =20 5120
Stripes         &nbs= p;     =20 4
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:2
tripserv:/# lvdisplay=20 /dev/tripserv_vol/pagessnap
--- Logical volume ---
LV=20 Name           &nb= sp;   =20 /dev/tripserv_vol/pagessnap
VG=20 Name           &nb= sp;   =20 tripserv_vol
LV Write = Access        read=20 only
LV snapshot status     active destination = for=20 /dev/tripserv_vol/pages
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 20
#=20 open           &nb= sp;    =20 0
LV=20 Size           &nb= sp;   =20 20 GB
Current=20 LE            = ;=20 5120
Allocated = LE          =20 5120
snapshot chunk size    64 KB
Allocated to=20 snapshot  0.00% [0/19.69 GB]
Allocated to COW-table 320=20 MB
Stripes          =      =20 4
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:19
# lvdisplay = /dev/tripserv_vol/docusnap
---=20 Logical volume ---
LV=20 Name           &nb= sp;   =20 /dev/tripserv_vol/docusnap
VG=20 Name           &nb= sp;   =20 tripserv_vol
LV Write = Access        read=20 only
LV snapshot status     active destination = for=20 /dev/tripserv_vol/docu
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 16
#=20 open           &nb= sp;    =20 0
LV=20 Size           &nb= sp;   =20 512 MB
Current=20 LE            = ;=20 128
Allocated = LE          =20 128
snapshot chunk size    64 KB
Allocated to=20 snapshot  0.05% [256 KB/492.19 MB]
Allocated to COW-table 7.81=20 MB
Stripes          =      =20 4
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:15
So it all looks good!
 
------=_NextPart_000_00CA_01C25F1C.B2A3D6C0--