Help! unable to mount lv's - can't see why!
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 systemsAnyone 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:2tripserv:/# 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!
Quoted 3 lines · Robin Edgar - Tripany
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):
Robin,
lots of read errors during dd likely left you with a corrupted primary superblock of the filesystem.
Quoted 11 lines
Unfortunately, only the
/dev/tripserv_vol/docuwill mount well!/dev/tripserv_vol/pagesgives 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 systemsAnyone have any ideas why it won't mount?!
You need to figure out, if /dev/tripserv_vol/docu doesn't have *any* extents allocated on the replaced disk. Try "lvdisplay -v /dev/tripserv_vol/docu" to achive this. If it has, you'll likely find corrupted files in this one too.
For the failing mount you might want to try
"mount -r -osb=$ALTERNATE_SUPERBLOCK /dev/tripserv_vol/pages /c".
In case you've got a logical 4k block size of the filesystem, ALTERNATE_SUPERBLOCK=131072 would access the first backup copy.
See "man mount" and look for the ext2 mount option "sb=" for more information.
In case you have success with using a backup superblock this way, you need to backup all files you can access successfully first, then recreate the filesystem and restore. It is unlikely in the case of lots of read errors during dd, that a fsck will help you. You'll probably end up with piles of lost+found entries.
Regards,
Heinz -- The LVM Guy --
Quoted 209 lines
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/homeslvscan -- 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:2tripserv:/# 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
Quoted 1 line
So it all looks good!
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I've discovered that there is a problem with /all/ the superblocks except for those of the /docu lv (see below). It does lead me to another question though - only one of the HDs crashed: is it possible that LVM wrote all the superblocks on 1 HD?! If so this seems like a pretty serious bug in LVM...
Robin
./tune2fs -l /dev/tripserv_vol/docu
tune2fs 1.28 (31-Aug-2002)
Filesystem volume name: <none> Last mounted on: <not available> Filesystem UUID: 7746644b-c83d-447f-9562-18dff7634d94 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal filetype needs_recovery sparse_super Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 131072 Block count: 524288 Reserved block count: 26214 Free blocks: 318873 Free inodes: 129020 First block: 1 Block size: 1024 Fragment size: 1024 Blocks per group: 8192 Fragments per group: 8192 Inodes per group: 2048 Inode blocks per group: 256 Last mount time: Wed Sep 18 17:13:48 2002 Last write time: Wed Sep 18 17:13:48 2002 Mount count: 33 Maximum mount count: 25 Last checked: Sun Mar 3 20:45:33 2002 Check interval: 15552000 (6 months) Next check after: Fri Aug 30 21:45:33 2002 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal UUID: <none> Journal inode: 8 Journal device: 0x0000 First orphan inode: 0
# ./tune2fs -l /dev/tripserv_vol/pages tune2fs 1.28 (31-Aug-2002) ./tune2fs: Bad magic number in super-block while trying to open /dev/tripserv_vol/pages Couldn't find valid filesystem superblock. You have new mail in /var/spool/mail/root
# mke2fs -n /dev/tripserv_vol/pages
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2621440 inodes, 5242880 blocks
262144 blocks (5.00%) reserved for the super user
First data block=0
160 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000 ----- Original Message -----
From: Robin Edgar - Tripany
To: [email protected]
Sent: Wednesday, September 18, 2002 2:07 PM
Subject: [linux-lvm] Help! unable to mount lv's - can't see why!
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 systemsAnyone 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:2tripserv:/# 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!
Quoted 1 line · Robin Edgar - Tripany
I've discovered that there is a problem with /all/ the superblocks except for those of the /docu lv (see below). It does lead me to another question though - only one of the HDs crashed: is it possible that LVM wrote all the superblocks on 1 HD?! If so this seems like a pretty serious bug in LVM...
No, LVs are just block devices with a certain amount of blocks. It is up to the filesystem make tool what it lays out where.
In my other related email I mentioned "lvdisplay -v" to display the allocation of extents. Maybe all the unmountable filesystems were in LVs on the failed drive?
Regards,
Heinz -- The LVM Guy --
Quoted 294 lines
Robin
./tune2fs -l
/dev/tripserv_vol/docu
tune2fs 1.28 (31-Aug-2002)Filesystem volume name: <none> Last mounted on: <not available> Filesystem UUID: 7746644b-c83d-447f-9562-18dff7634d94 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal filetype needs_recovery sparse_super Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 131072 Block count: 524288 Reserved block count: 26214 Free blocks: 318873 Free inodes: 129020 First block: 1 Block size: 1024 Fragment size: 1024 Blocks per group: 8192 Fragments per group: 8192 Inodes per group: 2048 Inode blocks per group: 256 Last mount time: Wed Sep 18 17:13:48 2002 Last write time: Wed Sep 18 17:13:48 2002 Mount count: 33 Maximum mount count: 25 Last checked: Sun Mar 3 20:45:33 2002 Check interval: 15552000 (6 months) Next check after: Fri Aug 30 21:45:33 2002 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal UUID: <none> Journal inode: 8 Journal device: 0x0000 First orphan inode: 0# ./tune2fs -l /dev/tripserv_vol/pages tune2fs 1.28 (31-Aug-2002) ./tune2fs: Bad magic number in super-block while trying to open /dev/tripserv_vol/pages Couldn't find valid filesystem superblock. You have new mail in /var/spool/mail/root# mke2fs -n /dev/tripserv_vol/pages mke2fs 1.27 (8-Mar-2002) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 2621440 inodes, 5242880 blocks 262144 blocks (5.00%) reserved for the super user First data block=0 160 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000----- Original Message -----
From: Robin Edgar - Tripany
To: [email protected]
Sent: Wednesday, September 18, 2002 2:07 PM
Subject: [linux-lvm] Help! unable to mount lv's - can't see why!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/docuwill mount well!
/dev/tripserv_vol/pagesgives 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 systemsAnyone 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/homeslvscan -- 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:2tripserv:/# 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
Quoted 1 line
So it all looks good!
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hi Heinz,
Thanks for the help so far!
How can I find out the blocksize of my lv's? So far I've tried e2fsck on the lv's using the mke2fs -n /dev/tripserv_vol/pages, for all blocksizes (-b 1024, 2048, 4096) but none of the superblocks respond to fsck. The only thing I can think of now is letting fsck rebuild the superblock, but I have to be sure of the blocksize for it to have any chance of success. Building the lv's, I followed the following steps:
pvcreate /dev/hde
/dev/hdf
/dev/hdg
/dev/hdh
vgcreate tripserv_vol /dev/hde /dev/hdf /dev/hdg /dev/hdh
lvcreate -i3 -I4 -L100M -nvolumename tripserv_vol
mke2fs -j -Lfslabel /dev/tripserv_vol/volumename
Cheers,
Robin
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 3:18 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!
Quoted 4 lines · Robin Edgar - Tripany
Quoted 3 lines
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):
Quoted 14 lines
Robin,
lots of read errors during dd likely left you with a corrupted primary superblock of the filesystem.
Quoted 8 lines
Unfortunately, only the
/dev/tripserv_vol/docuwill mount well!/dev/tripserv_vol/pagesgives 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,
Quoted 5 lines
Quoted 3 lines
or too many mounted file systems
Anyone have any ideas why it won't mount?!
You need to figure out, if
/dev/tripserv_vol/docudoesn't have *any*
extents
Quoted 5 lines
allocated on the replaced disk. Try "lvdisplay -v
/dev/tripserv_vol/docu" to achive this. If it has, you'll likely find corrupted files in this one too.
Quoted 8 lines
For the failing mount you might want to try
"mount -r -osb=$ALTERNATE_SUPERBLOCK
/dev/tripserv_vol/pages/c".In case you've got a logical 4k block size of the filesystem, ALTERNATE_SUPERBLOCK=131072 would access the first backup copy.
See "man mount" and look for the ext2 mount option "sb=" for more
information.
Quoted 2 lines
In case you have success with using a backup superblock this way, you need
to
Quoted 1 line
backup all files you can access successfully first, then recreate the
filesystem
Quoted 1 line
and restore. It is unlikely in the case of lots of read errors during dd,
that
Quoted 1 line
a fsck will help you. You'll probably end up with piles of lost+found
entries.
Quoted 12 lines
Regards,
Heinz -- The LVM Guy --Quoted 7 lines
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]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdh1" of VG "tripserv_vol" [38.16 GB / 8.01
GB free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hde1" of VG "tripserv_vol" [55.91 GB / 0
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdf1" of VG "tripserv_vol" [55.91 GB / 3.37
GB free]
Quoted 9 lines
Quoted 9 lines
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]
Quoted 12 lines
Quoted 12 lines
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)
Quoted 9 lines
Quoted 9 lines
#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)
Quoted 1 line
Quoted 1 line
vgck -- checking volume group consistency of "
tripserv_vol" on physical
volumes
Quoted 23 lines
Quoted 23 lines
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
Quoted 7 lines
Quoted 7 lines
# 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)
Quoted 6 lines
Quoted 6 lines
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"
Quoted 1 line
Quoted 1 line
vgscan -- storing physical volume data of "
tripserv_vol" in
"/etc/lvmtab.d/tripserv_vol.tmp"
Quoted 1 line
Quoted 1 line
vgscan -- storing logical volume data of volume group "
tripserv_vol" in
"/etc/lvmtab.d/tripserv_vol.tmp"
Quoted 1 line
Quoted 1 line
vgscan -- renaming "
/etc/lvmtab.d/tripserv_vol.tmp" to
"/etc/lvmtab.d/tripserv_vol"
Quoted 1 line
Quoted 1 line
vgscan -- removing special files and directory for volume group
"tripserv_vol"
Quoted 1 line
Quoted 1 line
vgscan -- creating directory and group character special file for
"tripserv_vol"
Quoted 3 lines
Quoted 3 lines
vgscan -- creating block device special files for
tripserv_volvgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume
group
Quoted 4 lines
Quoted 4 lines
#lvscan
lvscan -- ACTIVE Original "/dev/tripserv_vol/docu" [512 MB] striped[4]
lvscan -- ACTIVE Original "/dev/tripserv_vol/install" [10 GB]
striped[4]
Quoted 4 lines
Quoted 4 lines
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]
Quoted 3 lines
Quoted 3 lines
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]
Quoted 2 lines
Quoted 2 lines
lvscan -- ACTIVE Original "
/dev/tripserv_vol/code" [512 MB] striped[4]
lvscan -- ACTIVE "/dev/tripserv_vol/dumpdir" [10 GB]
striped[4]
Quoted 4 lines
Quoted 4 lines
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]
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/docusnap" [492.19 MB] of
/dev/tripserv_vol/docu
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/installsnap" [9.84 GB] of
/dev/tripserv_vol/install
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/dimsnap" [1.97 GB] of
/dev/tripserv_vol/dim
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/codesnap" [504 MB] of
/dev/tripserv_vol/code
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/pagessnap" [19.69 GB] of
/dev/tripserv_vol/pages
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/infosnap" [4.92 GB] of
/dev/tripserv_vol/info
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/homessnap" [9.84 GB] of
/dev/tripserv_vol/homes
Quoted 100 lines
Quoted 100 lines
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:2tripserv:/# 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
Quoted 6 lines
Quoted 1 line
So it all looks good!
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Doing the lvdisplay -v shows that pv /dev/hde1 had bits of all of the lv's on it (including the docu lv, which I *can* mount).
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 3:59 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!
Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
I've discovered that there is a problem with /all/ the superblocks
except for those of the /docu lv (see below). It does lead me to another question though - only one of the HDs crashed: is it possible that LVM wrote all the superblocks on 1 HD?! If so this seems like a pretty serious bug in LVM...
Quoted 5 lines
No, LVs are just block devices with a certain amount of blocks. It is up to the filesystem make tool what it lays out where.
In my other related email I mentioned "lvdisplay -v" to display the
allocation
Quoted 1 line
of extents. Maybe all the unmountable filesystems were in LVs on the
failed
Quoted 16 lines
drive?
Regards,
Heinz -- The LVM Guy --Quoted 11 lines
Robin
./tune2fs -l
/dev/tripserv_vol/docu
tune2fs 1.28 (31-Aug-2002)Filesystem volume name: <none> Last mounted on: <not available> Filesystem UUID: 7746644b-c83d-447f-9562-18dff7634d94 Filesystem magic number: 0xEF53Filesystem revision #: 1 (dynamic)
Filesystem features:has_journalfiletypeneeds_recovery
sparse_super
Quoted 31 lines
Quoted 31 lines
Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 131072 Block count: 524288 Reserved block count: 26214 Free blocks: 318873 Free inodes: 129020 First block: 1 Block size: 1024 Fragment size: 1024 Blocks per group: 8192 Fragments per group: 8192 Inodes per group: 2048 Inode blocks per group: 256 Last mount time: Wed Sep 18 17:13:48 2002 Last write time: Wed Sep 18 17:13:48 2002 Mount count: 33 Maximum mount count: 25 Last checked: Sun Mar 3 20:45:33 2002 Check interval: 15552000 (6 months) Next check after: Fri Aug 30 21:45:33 2002 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal UUID: <none> Journal inode: 8 Journal device: 0x0000 First orphan inode: 0
Quoted 3 lines
Quoted 3 lines
# ./tune2fs -l /dev/tripserv_vol/pages tune2fs 1.28 (31-Aug-2002) ./tune2fs: Bad magic number in super-block while trying to open
/dev/tripserv_vol/pages
Quoted 17 lines
Quoted 17 lines
Couldn't find valid filesystem superblock. You have new mail in
/var/spool/mail/root# mke2fs -n /dev/tripserv_vol/pages mke2fs 1.27 (8-Mar-2002) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 2621440 inodes, 5242880 blocks 262144 blocks (5.00%) reserved for the super user First data block=0 160 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632,
2654208,
Quoted 9 lines
Quoted 9 lines
4096000----- Original Message -----
From: Robin Edgar - Tripany
To: [email protected]
Sent: Wednesday, September 18, 2002 2:07 PM
Subject: [linux-lvm] Help! unable to mount lv's - can't see why!
Quoted 3 lines
Quoted 3 lines
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):
Quoted 8 lines
Quoted 8 lines
Unfortunately, only the
/dev/tripserv_vol/docuwill mount well!/dev/tripserv_vol/pagesgives 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,
Quoted 10 lines
Quoted 10 lines
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]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdh1" of VG "tripserv_vol" [38.16 GB /
8.01 GB free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hde1" of VG "tripserv_vol" [55.91 GB / 0
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdf1" of VG "tripserv_vol" [55.91 GB /
3.37 GB free]
Quoted 1 line
Quoted 1 line
pvscan -- total: 4 [188.16 GB] / in use: 4 [188.16 GB] / in no VG: 0
[0]
Quoted 8 lines
Quoted 8 lines
(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]
Quoted 12 lines
Quoted 12 lines
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)
Quoted 9 lines
Quoted 9 lines
#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)
Quoted 1 line
Quoted 1 line
vgck -- checking volume group consistency of "
tripserv_vol" on
physical volumes
Quoted 23 lines
Quoted 23 lines
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
Quoted 7 lines
Quoted 7 lines
# 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)
Quoted 6 lines
Quoted 6 lines
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"
Quoted 1 line
Quoted 1 line
vgscan -- storing physical volume data of "
tripserv_vol" in
"/etc/lvmtab.d/tripserv_vol.tmp"
Quoted 1 line
Quoted 1 line
vgscan -- storing logical volume data of volume group "
tripserv_vol"
in "/etc/lvmtab.d/tripserv_vol.tmp"
Quoted 1 line
Quoted 1 line
vgscan -- renaming "
/etc/lvmtab.d/tripserv_vol.tmp" to
"/etc/lvmtab.d/tripserv_vol"
Quoted 1 line
Quoted 1 line
vgscan -- removing special files and directory for volume group
"tripserv_vol"
Quoted 1 line
Quoted 1 line
vgscan -- creating directory and group character special file for
"tripserv_vol"
Quoted 3 lines
Quoted 3 lines
vgscan -- creating block device special files for
tripserv_volvgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your
volume group
Quoted 3 lines
Quoted 3 lines
#lvscan
lvscan -- ACTIVE Original "/dev/tripserv_vol/docu" [512 MB]
striped[4]
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Original "
/dev/tripserv_vol/install" [10 GB]
striped[4]
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Original "
/dev/tripserv_vol/pages" [20 GB]
striped[4]
Quoted 3 lines
Quoted 3 lines
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]
Quoted 3 lines
Quoted 3 lines
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]
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Original "
/dev/tripserv_vol/code" [512 MB]
striped[4]
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE "
/dev/tripserv_vol/dumpdir" [10 GB]
striped[4]
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Original "
/dev/tripserv_vol/homes" [10 GB]
striped[4]
Quoted 2 lines
Quoted 2 lines
lvscan -- ACTIVE Original "
/dev/tripserv_vol/info" [5 GB] striped[4]
lvscan -- ACTIVE "/dev/tripserv_vol/log" [252 MB]
striped[3]
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE "
/dev/tripserv_vol/store" [608 MB]
striped[4]
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/docusnap" [492.19 MB]
of /dev/tripserv_vol/docu
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/installsnap" [9.84 GB]
of /dev/tripserv_vol/install
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/dimsnap" [1.97 GB] of
/dev/tripserv_vol/dim
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/codesnap" [504 MB] of
/dev/tripserv_vol/code
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/pagessnap" [19.69 GB]
of /dev/tripserv_vol/pages
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/infosnap" [4.92 GB] of
/dev/tripserv_vol/info
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/homessnap" [9.84 GB] of
/dev/tripserv_vol/homes
Quoted 100 lines
Quoted 100 lines
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:2tripserv:/# 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
Quoted 6 lines
Quoted 1 line
So it all looks good!
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 2 lines · Robin Edgar - Tripany
Doing the lvdisplay -v shows that pv
/dev/hde1had bits of all of the lv's on it (including the docu lv, which I *can* mount).
Then it is most likely, that all filesystems will have errors.
Regards,
Heinz -- The LVM Guy --
Quoted 13 lines
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 3:59 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
I've discovered that there is a problem with /all/ the superblocks
except for those of the /docu lv (see below). It does lead me to another question though - only one of the HDs crashed: is it possible that LVM wrote all the superblocks on 1 HD?! If so this seems like a pretty serious bug in
<SNIP>
Quoted 9 lines
Quoted 6 lines
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 6 lines · Robin Edgar - Tripany
Hi Heinz,
Thanks for the help so far!
How can I find out the blocksize of my lv's? So far I've tried e2fsck on the lv's using the mke2fs -n
/dev/tripserv_vol/pages, for all blocksizes (-b
Oops.
What you wanted to run is "e2fsck -osb=N ..." to repair the existing filesystem *not* mke2fs, which will create a new one!
As mentioned in my other email: if your logical filesystem blocksize was 4k, your first superblock backup would have been on block 131072.
Regards,
Heinz -- The LVM Guy --
Quoted 349 lines
1024, 2048, 4096) but none of the superblocks respond to fsck. The only thing I can think of now is letting fsck rebuild the superblock, but I have to be sure of the blocksize for it to have any chance of success. Building the lv's, I followed the following steps:
pvcreate
/dev/hde
/dev/hdf
/dev/hdg
/dev/hdhvgcreate
tripserv_vol/dev/hde/dev/hdf/dev/hdg/dev/hdhlvcreate -i3 -I4 -L100M -nvolumename
tripserv_volmke2fs -j -Lfslabel
/dev/tripserv_vol/volumenameCheers,
Robin----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 3:18 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 4 lines · Robin Edgar - Tripany
Quoted 3 lines
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):
Quoted 14 lines
Robin,
lots of read errors during dd likely left you with a corrupted primary superblock of the filesystem.
Quoted 8 lines
Unfortunately, only the
/dev/tripserv_vol/docuwill mount well!/dev/tripserv_vol/pagesgives 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,Quoted 5 lines
Quoted 3 lines
or too many mounted file systems
Anyone have any ideas why it won't mount?!
You need to figure out, if
/dev/tripserv_vol/docudoesn't have *any*extents
Quoted 5 lines
allocated on the replaced disk. Try "lvdisplay -v
/dev/tripserv_vol/docu" to achive this. If it has, you'll likely find corrupted files in this one too.Quoted 8 lines
For the failing mount you might want to try
"mount -r -osb=$ALTERNATE_SUPERBLOCK
/dev/tripserv_vol/pages/c".In case you've got a logical 4k block size of the filesystem, ALTERNATE_SUPERBLOCK=131072 would access the first backup copy.
See "man mount" and look for the ext2 mount option "sb=" for more
information.
Quoted 2 lines
In case you have success with using a backup superblock this way, you need
to
Quoted 1 line
backup all files you can access successfully first, then recreate the
filesystem
Quoted 1 line
and restore. It is unlikely in the case of lots of read errors during dd,
that
Quoted 1 line
a fsck will help you. You'll probably end up with piles of lost+found
entries.
Quoted 12 lines
Regards,
Heinz -- The LVM Guy --Quoted 7 lines
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.93GB free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdh1" of VG "tripserv_vol" [38.16 GB / 8.01GB free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hde1" of VG "tripserv_vol" [55.91 GB / 0free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdf1" of VG "tripserv_vol" [55.91 GB / 3.37GB free]
Quoted 9 lines
Quoted 9 lines
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]
Quoted 12 lines
Quoted 12 lines
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)
Quoted 9 lines
Quoted 9 lines
#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 physicalvolume(s)
Quoted 1 line
Quoted 1 line
vgck -- checking volume group consistency of "
tripserv_vol" on physicalvolumes
Quoted 23 lines
Quoted 23 lines
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-y51bIXQuoted 7 lines
Quoted 7 lines
# 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 physicalvolume(s)
Quoted 6 lines
Quoted 6 lines
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"Quoted 1 line
Quoted 1 line
vgscan -- storing physical volume data of "
tripserv_vol" in"
/etc/lvmtab.d/tripserv_vol.tmp"Quoted 1 line
Quoted 1 line
vgscan -- storing logical volume data of volume group "
tripserv_vol" in"
/etc/lvmtab.d/tripserv_vol.tmp"Quoted 1 line
Quoted 1 line
vgscan -- renaming "
/etc/lvmtab.d/tripserv_vol.tmp" to"
/etc/lvmtab.d/tripserv_vol"Quoted 1 line
Quoted 1 line
vgscan -- removing special files and directory for volume group
"
tripserv_vol"Quoted 1 line
Quoted 1 line
vgscan -- creating directory and group character special file for
"
tripserv_vol"Quoted 3 lines
Quoted 3 lines
vgscan -- creating block device special files for
tripserv_volvgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volumegroup
Quoted 4 lines
Quoted 4 lines
#lvscan
lvscan -- ACTIVE Original "/dev/tripserv_vol/docu" [512 MB] striped[4]
lvscan -- ACTIVE Original "/dev/tripserv_vol/install" [10 GB]striped[4]
Quoted 4 lines
Quoted 4 lines
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]
Quoted 3 lines
Quoted 3 lines
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]
Quoted 2 lines
Quoted 2 lines
lvscan -- ACTIVE Original "
/dev/tripserv_vol/code" [512 MB] striped[4]
lvscan -- ACTIVE "/dev/tripserv_vol/dumpdir" [10 GB]striped[4]
Quoted 4 lines
Quoted 4 lines
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]
Quoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/docusnap" [492.19 MB] of
/dev/tripserv_vol/docuQuoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/installsnap" [9.84 GB] of
/dev/tripserv_vol/installQuoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/dimsnap" [1.97 GB] of
/dev/tripserv_vol/dimQuoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/codesnap" [504 MB] of
/dev/tripserv_vol/codeQuoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/pagessnap" [19.69 GB] of
/dev/tripserv_vol/pagesQuoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/infosnap" [4.92 GB] of
/dev/tripserv_vol/infoQuoted 1 line
Quoted 1 line
lvscan -- ACTIVE Snapshot "
/dev/tripserv_vol/homessnap" [9.84 GB] of
/dev/tripserv_vol/homesQuoted 100 lines
Quoted 100 lines
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:2tripserv:/# 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:15Quoted 6 lines
Quoted 1 line
So it all looks good!
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-Quoted 8 lines
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200FAX 924446=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-Quoted 8 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Fair enough, but I would very much like to access the files and determine later what has errors and what doesn't - at the moment, I can only do this with the docu lv and none of the others...
You were right, I did manage to get a whole load of lost+found entries using fsck after the mount. The docu entry was on the physical extent though, and seems to be working fine.
Anyway I thought I'd upgrade LVM to 1.0.5 from 1.0.1 and refit the disks to the 'old' configuration (4 disks + 1 for backup), to do a pvmove. Now when I do a pvscan, it finds all the disks, but also the disk I did the dd to, as part of the vg. So I de-activated the vg, and tried to reduce the vg /dev/hdb1, hoiwever this is not working:
# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: can't reduce volume group "tripserv_vol" by used physical volume "/dev/hdb1"
# pvscan -v pvscan -- reading all physical volumes (this may take a while...) pvscan -- walking through all physical volumes found 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 -- inactive 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 -- ACTIVE PV "/dev/hdb1" of VG "tripserv_vol" [55.91 GB / 0 free] pvscan -- total: 5 [244.08 GB] / in use: 5 [244.08 GB] / in no VG: 0 [0]
If i vgchange -a n it will deactivate them all, but then I get:
# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: volume group "tripserv_vol" is not active
After I restore the vg to it's 'old' configuration, I want to empty /dev/hdb1 and add it to the volume group. Then doing a pvmove -i /dev/hde1 should move all the data it can find there to the rest of the vg shouldn't it?
Thank you for all your help so far,
Robin Edgar
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 19, 2002 12:04 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!
Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
Doing the lvdisplay -v shows that pv
/dev/hde1had bits of all of the
lv's
Quoted 20 lines
Quoted 1 line
on it (including the docu lv, which I *can* mount).
Then it is most likely, that all filesystems will have errors.
Regards,
Heinz -- The LVM Guy --Quoted 12 lines
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 3:59 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
I've discovered that there is a problem with /all/ the superblocks
except for those of the /docu lv (see below). It does lead me to another question though - only one of the HDs crashed: is it possible that LVM
wrote
Quoted 1 line
Quoted 1 line
all the superblocks on 1 HD?! If so this seems like a pretty serious bug
in
Quoted 10 lines
<SNIP>
Quoted 9 lines
Quoted 6 lines
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 10 lines
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 13 lines · Robin Edgar - Tripany
Fair enough, but I would very much like to access the files and determine later what has errors and what doesn't - at the moment, I can only do this with the docu lv and none of the others...
You were right, I did manage to get a whole load of lost+found entries using fsck after the mount. The docu entry was on the physical extent though, and seems to be working fine.
Anyway I thought I'd upgrade LVM to 1.0.5 from 1.0.1 and refit the disks to the 'old' configuration (4 disks + 1 for backup), to do a pvmove. Now when I do a pvscan, it finds all the disks, but also the disk I did the dd to, as part of the vg. So I de-activated the vg, and tried to reduce the vg/dev/hdb1, hoiwever this is not working:
Quoted 3 lines
# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: can't reduce volume group "tripserv_vol" by used physical volume "/dev/hdb1"
Well, LVM still has allocated extents on that PV. You can just remove empty PVs from a VG.
Quoted 14 lines
# pvscan -v pvscan -- reading all physical volumes (this may take a while...) pvscan -- walking through all physical volumes found 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 -- inactive 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 -- ACTIVE PV "/dev/hdb1" of VG "tripserv_vol" [55.91 GB / 0 free] pvscan -- total: 5 [244.08 GB] / in use: 5 [244.08 GB] / in no VG: 0 [0]
Quoted 3 lines
If i vgchange -a n it will deactivate them all, but then I get:
# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: volume group "tripserv_vol" is not active
Doesn't change the situation, because the PV still has extents allocated. A PV must be empty and the VG active in order to remove it from the VG.
Quoted 5 lines
After I restore the vg to it's 'old' configuration, I want to empty
/dev/hdb1and add it to the volume group. Then doing a pvmove -i/dev/hde1should move all the data it can find there to the rest of the vg shouldn't it?
Yes, presuming that you've got enought space to fit all extents allocated to /dev/hde1.
Quoted 2 lines
Thank you for all your help so far,
You're welcome.
Regards,
Heinz -- The LVM Guy --
Quoted 65 lines
Robin Edgar
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 19, 2002 12:04 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
Doing the lvdisplay -v shows that pv
/dev/hde1had bits of all of thelv's
Quoted 20 lines
Quoted 1 line
on it (including the docu lv, which I *can* mount).
Then it is most likely, that all filesystems will have errors.
Regards,
Heinz -- The LVM Guy --Quoted 12 lines
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 3:59 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
I've discovered that there is a problem with /all/ the superblocks
except for those of the /docu lv (see below). It does lead me to another question though - only one of the HDs crashed: is it possible that LVM
wrote
Quoted 1 line
Quoted 1 line
all the superblocks on 1 HD?! If so this seems like a pretty serious bug
in
Quoted 20 lines
<SNIP>
Quoted 9 lines
Quoted 6 lines
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.htmlQuoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***Quoted 7 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Due to the dd the 2 disks should be identical - how do i get the VG to activate the PV of choice? I can't figure out how to deactivate hdb1 and activate hde1 or how vgchange decides it wants to use hdb1 instead of hde1!
Robin
Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
Fair enough, but I would very much like to access the files and
determine
Quoted 1 line
Quoted 1 line
later what has errors and what doesn't - at the moment, I can only do
this
Quoted 3 lines
Quoted 3 lines
with the docu lv and none of the others...
You were right, I did manage to get a whole load of lost+found entries
using
Quoted 1 line
Quoted 1 line
fsck after the mount. The docu entry was on the physical extent though,
and
Quoted 2 lines
Quoted 2 lines
seems to be working fine.
Anyway I thought I'd upgrade LVM to 1.0.5 from 1.0.1 and refit the disks
to
Quoted 2 lines
Quoted 2 lines
the 'old' configuration (4 disks + 1 for backup), to do a pvmove. Now when I do a pvscan, it finds all the disks, but also the disk I did
the
Quoted 1 line
Quoted 1 line
dd to, as part of the vg. So I de-activated the vg, and tried to reduce
the
Quoted 4 lines
Quoted 4 lines
vg
/dev/hdb1, hoiwever this is not working:# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: can't reduce volume group "tripserv_vol" by used
physical
Quoted 10 lines
Quoted 1 line
volume "
/dev/hdb1"Well, LVM still has allocated extents on that PV. You can just remove empty PVs from a VG.
Quoted 5 lines
# pvscan -v pvscan -- reading all physical volumes (this may take a while...) pvscan -- walking through all physical volumes found pvscan -- ACTIVE PV "/dev/hdg1" of VG "tripserv_vol" [38.16 GB / 7.93
GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- ACTIVE PV "/dev/hdh1" of VG "tripserv_vol" [38.16 GB / 8.01
GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- inactive PV "/dev/hde1" of VG "tripserv_vol" [55.91 GB / 0
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdf1" of VG "tripserv_vol" [55.91 GB / 3.37
GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- ACTIVE PV "/dev/hdb1" of VG "tripserv_vol" [55.91 GB / 0
free]
Quoted 12 lines
Quoted 5 lines
pvscan -- total: 5 [244.08 GB] / in use: 5 [244.08 GB] / in no VG: 0 [0]
If i vgchange -a n it will deactivate them all, but then I get:
# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: volume group "tripserv_vol" is not activeDoesn't change the situation, because the PV still has extents allocated. A PV must be empty and the VG active in order to remove it from the VG.
Quoted 3 lines
After I restore the vg to it's 'old' configuration, I want to empty
/dev/hdb1and add it to the volume group. Then doing a pvmove -i
/dev/hde1
Quoted 1 line
Quoted 1 line
should move all the data it can find there to the rest of the vg
shouldn't
Quoted 6 lines
Quoted 1 line
it?
Yes, presuming that you've got enought space to fit all extents allocated to
/dev/hde1.Quoted 1 line
Quoted 18 lines
Quoted 1 line
Thank you for all your help so far,
You're welcome.
Regards,
Heinz -- The LVM Guy --Quoted 11 lines
Robin Edgar
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 19, 2002 12:04 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
Doing the lvdisplay -v shows that pv
/dev/hde1had bits of all of
the
Quoted 18 lines
Quoted 18 lines
lv's
Quoted 17 lines
Quoted 1 line
on it (including the docu lv, which I *can* mount).
Then it is most likely, that all filesystems will have errors.
Regards,
Heinz -- The LVM Guy --Quoted 9 lines
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 3:59 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 1 line
On Wed, Sep 18, 2002 at 03:56:36PM +0200, Robin Edgar - Tripany
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I've discovered that there is a problem with /all/ the
superblocks
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
except for those of the /docu lv (see below). It does lead me to
another
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
question though - only one of the HDs crashed: is it possible that
LVM
Quoted 2 lines
Quoted 2 lines
wrote
Quoted 1 line
Quoted 1 line
all the superblocks on 1 HD?! If so this seems like a pretty serious
bug
Quoted 31 lines
Quoted 31 lines
in
Quoted 27 lines
<SNIP>
Quoted 9 lines
Quoted 6 lines
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.htmlQuoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 10 lines
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 3 lines · Robin Edgar - Tripany
Due to the dd the 2 disks should be identical - how do i get the VG to activate the PV of choice? I can't figure out how to deactivate hdb1 and activate hde1 or how vgchange decides it wants to use hdb1 instead of hde1!
Zero the first block of hdb1 (dd if=/dev/zero of=/dev/hdb1 bs=1k count=1) or create a new physical volume on /dev/hdb1 (pvcreate -ff /dev/hdb1).
Regards,
Heinz -- The LVM Guy --
Quoted 167 lines
Robin
Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
Fair enough, but I would very much like to access the files and
determine
Quoted 1 line
Quoted 1 line
later what has errors and what doesn't - at the moment, I can only do
this
Quoted 3 lines
Quoted 3 lines
with the docu lv and none of the others...
You were right, I did manage to get a whole load of lost+found entries
using
Quoted 1 line
Quoted 1 line
fsck after the mount. The docu entry was on the physical extent though,
and
Quoted 2 lines
Quoted 2 lines
seems to be working fine.
Anyway I thought I'd upgrade LVM to 1.0.5 from 1.0.1 and refit the disksto
Quoted 2 lines
Quoted 2 lines
the 'old' configuration (4 disks + 1 for backup), to do a pvmove. Now when I do a pvscan, it finds all the disks, but also the disk I did
the
Quoted 1 line
Quoted 1 line
dd to, as part of the vg. So I de-activated the vg, and tried to reduce
the
Quoted 4 lines
Quoted 4 lines
vg
/dev/hdb1, hoiwever this is not working:# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: can't reduce volume group "tripserv_vol" by usedphysical
Quoted 10 lines
Quoted 1 line
volume "
/dev/hdb1"Well, LVM still has allocated extents on that PV. You can just remove empty PVs from a VG.
Quoted 5 lines
# pvscan -v pvscan -- reading all physical volumes (this may take a while...) pvscan -- walking through all physical volumes found pvscan -- ACTIVE PV "/dev/hdg1" of VG "tripserv_vol" [38.16 GB / 7.93GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- ACTIVE PV "/dev/hdh1" of VG "tripserv_vol" [38.16 GB / 8.01GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- inactive PV "/dev/hde1" of VG "tripserv_vol" [55.91 GB / 0free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdf1" of VG "tripserv_vol" [55.91 GB / 3.37GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- ACTIVE PV "/dev/hdb1" of VG "tripserv_vol" [55.91 GB / 0free]
Quoted 12 lines
Quoted 5 lines
pvscan -- total: 5 [244.08 GB] / in use: 5 [244.08 GB] / in no VG: 0 [0]
If i vgchange -a n it will deactivate them all, but then I get:
# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: volume group "tripserv_vol" is not activeDoesn't change the situation, because the PV still has extents allocated. A PV must be empty and the VG active in order to remove it from the VG.
Quoted 3 lines
After I restore the vg to it's 'old' configuration, I want to empty
/dev/hdb1and add it to the volume group. Then doing a pvmove -i
/dev/hde1Quoted 1 line
Quoted 1 line
should move all the data it can find there to the rest of the vg
shouldn't
Quoted 6 lines
Quoted 1 line
it?
Yes, presuming that you've got enought space to fit all extents allocated to
/dev/hde1.Quoted 1 line
Quoted 18 lines
Quoted 1 line
Thank you for all your help so far,
You're welcome.
Regards,
Heinz -- The LVM Guy --Quoted 11 lines
Robin Edgar
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 19, 2002 12:04 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
Doing the lvdisplay -v shows that pv
/dev/hde1had bits of all ofthe
Quoted 18 lines
Quoted 18 lines
lv's
Quoted 17 lines
Quoted 1 line
on it (including the docu lv, which I *can* mount).
Then it is most likely, that all filesystems will have errors.
Regards,
Heinz -- The LVM Guy --Quoted 9 lines
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 3:59 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 1 line
On Wed, Sep 18, 2002 at 03:56:36PM +0200, Robin Edgar - Tripany
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I've discovered that there is a problem with /all/ the
superblocks
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
except for those of the /docu lv (see below). It does lead me to
another
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
question though - only one of the HDs crashed: is it possible that
LVM
Quoted 2 lines
Quoted 2 lines
wrote
Quoted 1 line
Quoted 1 line
all the superblocks on 1 HD?! If so this seems like a pretty serious
bug
Quoted 37 lines
Quoted 31 lines
in
Quoted 20 lines
<SNIP>
Quoted 9 lines
Quoted 6 lines
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.htmlQuoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***Quoted 7 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.htmlQuoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.htmlQuoted 10 lines
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Thanks! I got hde1 back on the vg and I can access it now - I'm surprised that the dd'ed hdb1 couldn't mount the lv's!
I'm now wondering why the dd copy wouldn't work, because in principle it should have copied all the faulty blocks exactly (I did it @ 1k block size)...
Last question (hopefully :)):
does pvmove delete all the files after it has copyed all the files or is it copy a file, delete a file - I'm worried about the PC hanging during the operation..
Robin
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 19, 2002 9:07 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!
Quoted 4 lines · Robin Edgar - Tripany
Quoted 3 lines
Due to the dd the 2 disks should be identical - how do i get the VG to activate the PV of choice? I can't figure out how to deactivate hdb1 and activate hde1 or how vgchange decides it wants to use hdb1 instead of
hde1!
Quoted 2 lines
Zero the first block of hdb1 (dd if=/dev/zero of=/dev/hdb1 bs=1k count=1)
or
Quoted 12 lines
create a new physical volume on
/dev/hdb1(pvcreate -ff/dev/hdb1).Regards,
Heinz -- The LVM Guy --Quoted 7 lines
Robin
Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
Fair enough, but I would very much like to access the files and
determine
Quoted 1 line
Quoted 1 line
later what has errors and what doesn't - at the moment, I can only
do
Quoted 4 lines
Quoted 4 lines
this
Quoted 3 lines
Quoted 3 lines
with the docu lv and none of the others...
You were right, I did manage to get a whole load of lost+found
entries
Quoted 2 lines
Quoted 2 lines
using
Quoted 1 line
Quoted 1 line
fsck after the mount. The docu entry was on the physical extent
though,
Quoted 3 lines
Quoted 3 lines
and
Quoted 2 lines
Quoted 2 lines
seems to be working fine.
Anyway I thought I'd upgrade LVM to 1.0.5 from 1.0.1 and refit the
disks
Quoted 3 lines
Quoted 3 lines
to
Quoted 2 lines
Quoted 2 lines
the 'old' configuration (4 disks + 1 for backup), to do a pvmove. Now when I do a pvscan, it finds all the disks, but also the disk I
did
Quoted 2 lines
Quoted 2 lines
the
Quoted 1 line
Quoted 1 line
dd to, as part of the vg. So I de-activated the vg, and tried to
reduce
Quoted 8 lines
Quoted 8 lines
the
Quoted 4 lines
Quoted 4 lines
vg
/dev/hdb1, hoiwever this is not working:# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: can't reduce volume group "tripserv_vol" by usedphysical
Quoted 2 lines
Quoted 1 line
volume "
/dev/hdb1"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Well, LVM still has allocated extents on that PV. You can just remove empty PVs from a VG.
Quoted 5 lines
# pvscan -v pvscan -- reading all physical volumes (this may take a while...) pvscan -- walking through all physical volumes found pvscan -- ACTIVE PV "/dev/hdg1" of VG "tripserv_vol" [38.16 GB /
7.93
Quoted 3 lines
Quoted 3 lines
GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- ACTIVE PV "/dev/hdh1" of VG "tripserv_vol" [38.16 GB /
8.01
Quoted 5 lines
Quoted 5 lines
GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- inactive PV "/dev/hde1" of VG "tripserv_vol" [55.91 GB / 0free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdf1" of VG "tripserv_vol" [55.91 GB /
3.37
Quoted 5 lines
Quoted 5 lines
GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- ACTIVE PV "/dev/hdb1" of VG "tripserv_vol" [55.91 GB / 0free]
Quoted 1 line
Quoted 1 line
pvscan -- total: 5 [244.08 GB] / in use: 5 [244.08 GB] / in no VG: 0
[0]
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
If i vgchange -a n it will deactivate them all, but then I get:
# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: volume group "tripserv_vol" is not activeDoesn't change the situation, because the PV still has extents
allocated.
Quoted 1 line
Quoted 1 line
Quoted 1 line
A PV must be empty and the VG active in order to remove it from the
VG.
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
After I restore the vg to it's 'old' configuration, I want to empty
/dev/hdb1and add it to the volume group. Then doing a pvmove -i
/dev/hde1Quoted 1 line
Quoted 1 line
should move all the data it can find there to the rest of the vg
shouldn't
Quoted 3 lines
Quoted 1 line
it?
Yes, presuming that you've got enought space to fit all extents
allocated
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
to
/dev/hde1.Quoted 2 lines
Thank you for all your help so far,
You're welcome.
Regards,
Heinz -- The LVM Guy --Quoted 10 lines
Robin Edgar
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 19, 2002 12:04 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 1 line
On Wed, Sep 18, 2002 at 04:42:54PM +0200, Robin Edgar - Tripany
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Doing the lvdisplay -v shows that pv
/dev/hde1had bits of all
of
Quoted 11 lines
Quoted 11 lines
the
Quoted 10 lines
Quoted 10 lines
lv's
Quoted 9 lines
Quoted 1 line
on it (including the docu lv, which I *can* mount).
Then it is most likely, that all filesystems will have errors.
Regards,
Heinz -- The LVM Guy --Quoted 1 line
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 3:59 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see
why!
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
On Wed, Sep 18, 2002 at 03:56:36PM +0200, Robin Edgar -
Tripany
Quoted 6 lines
Quoted 6 lines
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I've discovered that there is a problem with /all/ the
superblocks
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
except for those of the /docu lv (see below). It does lead me to
another
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
question though - only one of the HDs crashed: is it possible
that
Quoted 3 lines
Quoted 3 lines
LVM
Quoted 2 lines
Quoted 2 lines
wrote
Quoted 1 line
Quoted 1 line
all the superblocks on 1 HD?! If so this seems like a pretty
serious
Quoted 7 lines
Quoted 7 lines
bug
Quoted 6 lines
Quoted 6 lines
in
Quoted 5 lines
<SNIP>
Quoted 4 lines
Quoted 4 lines
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at
http://www.sistina.com/lvm/Pages/howto.html
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at
http://www.sistina.com/lvm/Pages/howto.html
Quoted 34 lines
Quoted 34 lines
Quoted 31 lines
Quoted 15 lines
Quoted 5 lines
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***Quoted 7 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.htmlQuoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 10 lines
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 9 lines · Robin Edgar - Tripany
Thanks! I got hde1 back on the vg and I can access it now - I'm surprised that the dd'ed hdb1 couldn't mount the lv's!
I'm now wondering why the dd copy wouldn't work, because in principle it should have copied all the faulty blocks exactly (I did it @ 1k block size)...
Last question (hopefully :)):
does pvmove delete all the files after it has copyed all the files or is it copy a file, delete a file - I'm worried about the PC hanging during the operation..
It copies LV extents which are typically 4MB in size rather than files. That happens at the block device, not at the file system level.
The worst thing which can extremely seldom happen (for eg. because your machine has a power outage) is, that a metadata restore is needed.
Don't worry, that's *very* seldom :-)
Regards,
Heinz -- The LVM Guy --
Quoted 227 lines
Robin
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 19, 2002 9:07 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 4 lines · Robin Edgar - Tripany
Quoted 3 lines
Due to the dd the 2 disks should be identical - how do i get the VG to activate the PV of choice? I can't figure out how to deactivate hdb1 and activate hde1 or how vgchange decides it wants to use hdb1 instead of
hde1!
Quoted 2 lines
Zero the first block of hdb1 (dd if=/dev/zero of=/dev/hdb1 bs=1k count=1)
or
Quoted 12 lines
create a new physical volume on
/dev/hdb1(pvcreate -ff/dev/hdb1).Regards,
Heinz -- The LVM Guy --Quoted 7 lines
Robin
Quoted 2 lines · Robin Edgar - Tripany
Quoted 1 line
Fair enough, but I would very much like to access the files and
determine
Quoted 1 line
Quoted 1 line
later what has errors and what doesn't - at the moment, I can only
do
Quoted 4 lines
Quoted 4 lines
this
Quoted 3 lines
Quoted 3 lines
with the docu lv and none of the others...
You were right, I did manage to get a whole load of lost+found
entries
Quoted 2 lines
Quoted 2 lines
using
Quoted 1 line
Quoted 1 line
fsck after the mount. The docu entry was on the physical extent
though,
Quoted 3 lines
Quoted 3 lines
and
Quoted 2 lines
Quoted 2 lines
seems to be working fine.
Anyway I thought I'd upgrade LVM to 1.0.5 from 1.0.1 and refit thedisks
Quoted 3 lines
Quoted 3 lines
to
Quoted 2 lines
Quoted 2 lines
the 'old' configuration (4 disks + 1 for backup), to do a pvmove. Now when I do a pvscan, it finds all the disks, but also the disk I
did
Quoted 2 lines
Quoted 2 lines
the
Quoted 1 line
Quoted 1 line
dd to, as part of the vg. So I de-activated the vg, and tried to
reduce
Quoted 8 lines
Quoted 8 lines
the
Quoted 4 lines
Quoted 4 lines
vg
/dev/hdb1, hoiwever this is not working:# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: can't reduce volume group "tripserv_vol" by usedphysical
Quoted 2 lines
Quoted 1 line
volume "
/dev/hdb1"Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Well, LVM still has allocated extents on that PV. You can just remove empty PVs from a VG.
Quoted 5 lines
# pvscan -v pvscan -- reading all physical volumes (this may take a while...) pvscan -- walking through all physical volumes found pvscan -- ACTIVE PV "/dev/hdg1" of VG "tripserv_vol" [38.16 GB /7.93
Quoted 3 lines
Quoted 3 lines
GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- ACTIVE PV "/dev/hdh1" of VG "tripserv_vol" [38.16 GB /8.01
Quoted 5 lines
Quoted 5 lines
GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- inactive PV "/dev/hde1" of VG "tripserv_vol" [55.91 GB / 0free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdf1" of VG "tripserv_vol" [55.91 GB /3.37
Quoted 5 lines
Quoted 5 lines
GB
Quoted 2 lines
Quoted 2 lines
free]
pvscan -- ACTIVE PV "/dev/hdb1" of VG "tripserv_vol" [55.91 GB / 0free]
Quoted 1 line
Quoted 1 line
pvscan -- total: 5 [244.08 GB] / in use: 5 [244.08 GB] / in no VG: 0
[0]
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
If i vgchange -a n it will deactivate them all, but then I get:
# vgreduce tripserv_vol /dev/hdb1 vgreduce -- ERROR: volume group "tripserv_vol" is not activeDoesn't change the situation, because the PV still has extents
allocated.
Quoted 1 line
Quoted 1 line
Quoted 1 line
A PV must be empty and the VG active in order to remove it from the
VG.
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
After I restore the vg to it's 'old' configuration, I want to empty
/dev/hdb1and add it to the volume group. Then doing a pvmove -i
/dev/hde1Quoted 1 line
Quoted 1 line
should move all the data it can find there to the rest of the vg
shouldn't
Quoted 3 lines
Quoted 1 line
it?
Yes, presuming that you've got enought space to fit all extents
allocated
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
to
/dev/hde1.Quoted 2 lines
Thank you for all your help so far,
You're welcome.
Regards,
Heinz -- The LVM Guy --Quoted 10 lines
Robin Edgar
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 19, 2002 12:04 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't see why!Quoted 1 line
On Wed, Sep 18, 2002 at 04:42:54PM +0200, Robin Edgar - Tripany
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Doing the lvdisplay -v shows that pv
/dev/hde1had bits of allof
Quoted 11 lines
Quoted 11 lines
the
Quoted 10 lines
Quoted 10 lines
lv's
Quoted 9 lines
Quoted 1 line
on it (including the docu lv, which I *can* mount).
Then it is most likely, that all filesystems will have errors.
Regards,
Heinz -- The LVM Guy --Quoted 1 line
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 3:59 PM
Subject: Re: [linux-lvm] Help! unable to mount lv's - can't seewhy!
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
On Wed, Sep 18, 2002 at 03:56:36PM +0200, Robin Edgar -
Tripany
Quoted 6 lines
Quoted 6 lines
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I've discovered that there is a problem with /all/ the
superblocks
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
except for those of the /docu lv (see below). It does lead me to
another
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
question though - only one of the HDs crashed: is it possible
that
Quoted 3 lines
Quoted 3 lines
LVM
Quoted 2 lines
Quoted 2 lines
wrote
Quoted 1 line
Quoted 1 line
all the superblocks on 1 HD?! If so this seems like a pretty
serious
Quoted 7 lines
Quoted 7 lines
bug
Quoted 6 lines
Quoted 6 lines
in
Quoted 5 lines
<SNIP>
Quoted 4 lines
Quoted 4 lines
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO athttp://www.sistina.com/lvm/Pages/howto.html
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO athttp://www.sistina.com/lvm/Pages/howto.html
Quoted 40 lines
Quoted 34 lines
Quoted 21 lines
Quoted 15 lines
Quoted 5 lines
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***Quoted 7 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.htmlQuoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.htmlQuoted 10 lines
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.htmlQuoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.htmlQuoted 7 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-