<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4919.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>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...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Robin</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>./tune2fs -l /dev/tripserv_vol/docu<BR>tune2fs 1.28 
(31-Aug-2002)<BR>Filesystem volume name:   <none><BR>Last 
mounted on:          <not 
available><BR>Filesystem 
UUID:          
7746644b-c83d-447f-9562-18dff7634d94<BR>Filesystem magic number:  
0xEF53<BR>Filesystem revision #:    1 (dynamic)<BR>Filesystem 
features:      has_journal filetype needs_recovery 
sparse_super<BR>Filesystem 
state:         clean<BR>Errors 
behavior:          
Continue<BR>Filesystem OS type:       
Linux<BR>Inode 
count:              
131072<BR>Block 
count:              
524288<BR>Reserved block count:     26214<BR>Free 
blocks:              
318873<BR>Free 
inodes:              
129020<BR>First 
block:              
1<BR>Block 
size:               
1024<BR>Fragment 
size:            
1024<BR>Blocks per group:         
8192<BR>Fragments per group:      8192<BR>Inodes per 
group:         2048<BR>Inode blocks per 
group:   256<BR>Last mount 
time:          Wed Sep 18 17:13:48 
2002<BR>Last write time:          
Wed Sep 18 17:13:48 2002<BR>Mount 
count:              
33<BR>Maximum mount count:      25<BR>Last 
checked:             
Sun Mar  3 20:45:33 2002<BR>Check 
interval:           15552000 
(6 months)<BR>Next check after:         
Fri Aug 30 21:45:33 2002<BR>Reserved blocks uid:      0 
(user root)<BR>Reserved blocks gid:      0 (group 
root)<BR>First 
inode:              
11<BR>Inode 
size:               
128<BR>Journal 
UUID:             
<none><BR>Journal 
inode:            
8<BR>Journal device:           
0x0000<BR>First orphan inode:       
0<BR></FONT></DIV>
<DIV><FONT face=Arial size=2># ./tune2fs -l /dev/tripserv_vol/pages<BR>tune2fs 
1.28 (31-Aug-2002)<BR>./tune2fs: Bad magic number in super-block while trying to 
open /dev/tripserv_vol/pages<BR>Couldn't find valid filesystem 
superblock.<BR>You have new mail in /var/spool/mail/root<BR></FONT></DIV>
<DIV><FONT face=Arial size=2># mke2fs -n /dev/tripserv_vol/pages<BR>mke2fs 1.27 
(8-Mar-2002)<BR>Filesystem label=<BR>OS type: Linux<BR>Block size=4096 
(log=2)<BR>Fragment size=4096 (log=2)<BR>2621440 inodes, 5242880 
blocks<BR>262144 blocks (5.00%) reserved for the super user<BR>First data 
block=0<BR>160 block groups<BR>32768 blocks per group, 32768 fragments per 
group<BR>16384 inodes per group<BR>Superblock backups stored on 
blocks:<BR>        32768, 98304, 163840, 
229376, 294912, 819200, 884736, 1605632, 
2654208,<BR>        4096000<BR></DIV></FONT>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=red@tripany.com href="mailto:red@tripany.com">Robin Edgar - 
  Tripany</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=linux-lvm@sistina.com 
  href="mailto:linux-lvm@sistina.com">linux-lvm@sistina.com</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, September 18, 2002 2:07 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [linux-lvm] Help! unable to 
  mount lv's - can't see why!</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>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):</FONT></DIV>
  <DIV><FONT face=Arial size=2>Unfortunately, only the 
  /dev/tripserv_vol/docu will mount well!</FONT></DIV>
  <DIV><FONT face=Arial size=2>/dev/tripserv_vol/pages gives the following 
  error:</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2># mount /dev/tripserv_vol/pages /c<BR>mount: you 
  must specify the filesystem type<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2># mount /dev/tripserv_vol/pages /c -t 
  ext3<BR>mount: wrong fs type, bad option, bad superblock on 
  /dev/tripserv_vol/pages,<BR>       or too many 
  mounted file systems<BR></DIV></FONT>
  <DIV><FONT face=Arial size=2>Anyone have any ideas why it won't 
  mount?!</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
  <DIV><FONT face=Arial size=2>Robin Edgar</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>#pvscan:</FONT></DIV>
  <DIV><FONT face=Arial size=2>pvscan -- reading all physical volumes (this may 
  take a while...)<BR>pvscan -- ACTIVE   PV "/dev/hdg1" of VG 
  "tripserv_vol" [38.16 GB / 7.93 GB free]<BR>pvscan -- ACTIVE   PV 
  "/dev/hdh1" of VG "tripserv_vol" [38.16 GB / 8.01 GB free]<BR>pvscan -- 
  ACTIVE   PV "/dev/hde1" of VG "tripserv_vol" [55.91 GB / 0 
  free]<BR>pvscan -- ACTIVE   PV "/dev/hdf1" of VG "tripserv_vol" 
  [55.91 GB / 3.37 GB free]<BR>pvscan -- total: 4 [188.16 GB] / in use: 4 
  [188.16 GB] / in no VG: 0 [0]<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>(identical output to before changing the disks 
  around)</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>#pvdisplay /dev/hde1<BR>--- Physical volume 
  ---<BR>PV 
  Name               
  /dev/hde1<BR>VG 
  Name               
  tripserv_vol<BR>PV 
  Size               
  55.92 GB [117266625 secs] / NOT usable 4.18 MB [LVM: 179 
  KB]<BR>PV#                   
  1<BR>PV 
  Status             
  available<BR>Allocatable           
  yes (but full)<BR>Cur 
  LV                
  20<BR>PE Size (KByte)       4096<BR>Total 
  PE              
  14313<BR>Free 
  PE               
  0<BR>Allocated PE          
  14313<BR>PV 
  UUID               
  KCIKwa-3lvx-k7bj-27ks-hGlI-oZRo-5q7CjM<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>(also identical)</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>#vgck -v<BR>vgck -- locking logical volume 
  manager<BR>vgck -- finding all volume group(s)<BR>vgck -- checking volume 
  group name "tripserv_vol"<BR>vgck -- checking existence of volume group 
  "tripserv_vol"<BR>vgck -- reading volume group data for "tripserv_vol" from 
  lvmtab<BR>vgck -- checking volume group consistency  of "tripserv_vol" in 
  lvmtab<BR>vgck -- VGDA of "tripserv_vol" in lvmtab is consistent<BR>vgck -- 
  reading volume group data for "tripserv_vol" from physical volume(s)<BR>vgck 
  -- checking volume group consistency  of "tripserv_vol" on physical 
  volumes<BR>vgck -- VGDA of "tripserv_vol" on physical volumes is 
  consistent<BR>vgck -- unlocking logical volume manager<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2># vgdisplay<BR>--- Volume group ---<BR>VG 
  Name               
  tripserv_vol<BR>VG 
  Access             
  read/write<BR>VG 
  Status             
  available/resizable<BR>VG 
  #                  
  0<BR>MAX 
  LV                
  255<BR>Cur 
  LV                
  22<BR>Open 
  LV               
  1<BR>MAX LV Size           
  255.99 GB<BR>Max 
  PV                
  255<BR>Cur 
  PV                
  4<BR>Act 
  PV                
  4<BR>VG 
  Size               
  188.13 GB<BR>PE 
  Size               
  4 MB<BR>Total 
  PE              
  48162<BR>Alloc PE / Size       43220 / 168.83 
  GB<BR>Free  PE / Size       4942 / 19.30 
  GB<BR>VG 
  UUID               
  KDiCWx-ae2w-oDnx-Hl5O-Amhd-fIM3-y51bIX<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2># vgscan -v<BR>vgscan -- removing "/etc/lvmtab" 
  and "/etc/lvmtab.d"<BR>vgscan -- creating empty "/etc/lvmtab" and 
  "/etc/lvmtab.d"<BR>vgscan -- reading all physical volumes (this may take a 
  while...)<BR>vgscan -- scanning for all active volume group(s) first<BR>vgscan 
  -- found active volume group "tripserv_vol"<BR>vgscan -- reading data of 
  volume group "tripserv_vol" from physical volume(s)<BR>vgscan -- inserting 
  "tripserv_vol" into lvmtab<BR>vgscan -- backing up volume group 
  "tripserv_vol"<BR>vgscan -- checking volume group name 
  "tripserv_vol"<BR>vgscan -- checking volume group consistency of 
  "tripserv_vol"<BR>vgscan -- checking existence of "/etc/lvmtab.d"<BR>vgscan -- 
  storing volume group data of "tripserv_vol" in 
  "/etc/lvmtab.d/tripserv_vol.tmp"<BR>vgscan -- storing physical volume data of 
  "tripserv_vol" in "/etc/lvmtab.d/tripserv_vol.tmp"<BR>vgscan -- storing 
  logical volume data of volume group "tripserv_vol" in 
  "/etc/lvmtab.d/tripserv_vol.tmp"<BR>vgscan -- renaming 
  "/etc/lvmtab.d/tripserv_vol.tmp" to "/etc/lvmtab.d/tripserv_vol"<BR>vgscan -- 
  removing special files and directory for volume group "tripserv_vol"<BR>vgscan 
  -- creating directory and group character special file for 
  "tripserv_vol"<BR>vgscan -- creating block device special files for 
  tripserv_vol<BR>vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully 
  created<BR>vgscan -- WARNING: This program does not do a VGDA backup of your 
  volume group<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>#lvscan</DIV></FONT>
  <DIV><FONT face=Arial size=2>lvscan -- ACTIVE   Original 
  "/dev/tripserv_vol/docu" [512 MB] striped[4]<BR>lvscan -- ACTIVE   
  Original "/dev/tripserv_vol/install" [10 GB] striped[4]<BR>lvscan -- 
  ACTIVE   Original "/dev/tripserv_vol/pages" [20 GB] 
  striped[4]<BR>lvscan -- 
  ACTIVE            
  "/dev/tripserv_vol/gfx" [10 GB] striped[4]<BR>lvscan -- 
  ACTIVE            
  "/dev/tripserv_vol/sfx" [10 GB] striped[4]<BR>lvscan -- 
  ACTIVE            
  "/dev/tripserv_vol/people" [20 GB] striped[4]<BR>lvscan -- ACTIVE   
  Original "/dev/tripserv_vol/dim" [2 GB] striped[4]<BR>lvscan -- 
  ACTIVE            
  "/dev/tripserv_vol/mp3" [20 GB] striped[4]<BR>lvscan -- 
  ACTIVE            
  "/dev/tripserv_vol/applications" [2 GB] striped[4]<BR>lvscan -- 
  ACTIVE   Original "/dev/tripserv_vol/code" [512 MB] 
  striped[4]<BR>lvscan -- 
  ACTIVE            
  "/dev/tripserv_vol/dumpdir" [10 GB] striped[4]<BR>lvscan -- ACTIVE   
  Original "/dev/tripserv_vol/homes" [10 GB] striped[4]<BR>lvscan -- 
  ACTIVE   Original "/dev/tripserv_vol/info" [5 GB] 
  striped[4]<BR>lvscan -- 
  ACTIVE            
  "/dev/tripserv_vol/log" [252 MB] striped[3]<BR>lvscan -- 
  ACTIVE            
  "/dev/tripserv_vol/store" [608 MB] striped[4]<BR>lvscan -- ACTIVE   
  Snapshot "/dev/tripserv_vol/docusnap" [492.19 MB] of 
  /dev/tripserv_vol/docu<BR>lvscan -- ACTIVE   Snapshot 
  "/dev/tripserv_vol/installsnap" [9.84 GB] of 
  /dev/tripserv_vol/install<BR>lvscan -- ACTIVE   Snapshot 
  "/dev/tripserv_vol/dimsnap" [1.97 GB] of /dev/tripserv_vol/dim<BR>lvscan -- 
  ACTIVE   Snapshot "/dev/tripserv_vol/codesnap" [504 MB] of 
  /dev/tripserv_vol/code<BR>lvscan -- ACTIVE   Snapshot 
  "/dev/tripserv_vol/pagessnap" [19.69 GB] of /dev/tripserv_vol/pages<BR>lvscan 
  -- ACTIVE   Snapshot "/dev/tripserv_vol/infosnap" [4.92 GB] of 
  /dev/tripserv_vol/info<BR>lvscan -- ACTIVE   Snapshot 
  "/dev/tripserv_vol/homessnap" [9.84 GB] of /dev/tripserv_vol/homes<BR>lvscan 
  -- 22 logical volumes with 168.08 GB total in 1 volume group<BR>lvscan -- 22 
  active logical volumes<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2># lvdisplay /dev/tripserv_vol/docu<BR>--- Logical 
  volume ---<BR>LV 
  Name                
  /dev/tripserv_vol/docu<BR>VG 
  Name                
  tripserv_vol<BR>LV Write Access        
  read/write<BR>LV snapshot status     source 
  of<BR>                       
  /dev/tripserv_vol/docusnap [active]<BR>LV 
  Status              
  available<BR>LV 
  #                   
  1<BR># 
  open                 
  1<BR>LV 
  Size                
  512 MB<BR>Current 
  LE             
  128<BR>Allocated 
  LE           
  128<BR>Stripes                
  4<BR>Stripe size (KByte)    
  4<BR>Allocation             
  next free<BR>Read ahead sectors     120<BR>Block 
  device           
  58:0<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2># lvdisplay /dev/tripserv_vol/people<BR>--- 
  Logical volume ---<BR>LV 
  Name                
  /dev/tripserv_vol/people<BR>VG 
  Name                
  tripserv_vol<BR>LV Write Access        
  read/write<BR>LV 
  Status              
  available<BR>LV 
  #                   
  6<BR># 
  open                 
  0<BR>LV 
  Size                
  20 GB<BR>Current 
  LE             
  5120<BR>Allocated 
  LE           
  5120<BR>Stripes                
  4<BR>Stripe size (KByte)    
  4<BR>Allocation             
  next free<BR>Read ahead sectors     120<BR>Block 
  device           
  58:5</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2># lvdisplay /dev/tripserv_vol/pages<BR>--- 
  Logical volume ---<BR>LV 
  Name                
  /dev/tripserv_vol/pages<BR>VG 
  Name                
  tripserv_vol<BR>LV Write Access        
  read/write<BR>LV snapshot status     source 
  of<BR>                       
  /dev/tripserv_vol/pagessnap [active]<BR>LV 
  Status              
  available<BR>LV 
  #                   
  3<BR># 
  open                 
  0<BR>LV 
  Size                
  20 GB<BR>Current 
  LE             
  5120<BR>Allocated 
  LE           
  5120<BR>Stripes                
  4<BR>Stripe size (KByte)    
  4<BR>Allocation             
  next free<BR>Read ahead sectors     120<BR>Block 
  device           
  58:2<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>tripserv:/# lvdisplay 
  /dev/tripserv_vol/pagessnap<BR>--- Logical volume ---<BR>LV 
  Name                
  /dev/tripserv_vol/pagessnap<BR>VG 
  Name                
  tripserv_vol<BR>LV Write Access        read 
  only<BR>LV snapshot status     active destination for 
  /dev/tripserv_vol/pages<BR>LV 
  Status              
  available<BR>LV 
  #                   
  20<BR># 
  open                 
  0<BR>LV 
  Size                
  20 GB<BR>Current 
  LE             
  5120<BR>Allocated 
  LE           
  5120<BR>snapshot chunk size    64 KB<BR>Allocated to 
  snapshot  0.00% [0/19.69 GB]<BR>Allocated to COW-table 320 
  MB<BR>Stripes                
  4<BR>Stripe size (KByte)    
  4<BR>Allocation             
  next free<BR>Read ahead sectors     120<BR>Block 
  device           
  58:19<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2># lvdisplay /dev/tripserv_vol/docusnap<BR>--- 
  Logical volume ---<BR>LV 
  Name                
  /dev/tripserv_vol/docusnap<BR>VG 
  Name                
  tripserv_vol<BR>LV Write Access        read 
  only<BR>LV snapshot status     active destination for 
  /dev/tripserv_vol/docu<BR>LV 
  Status              
  available<BR>LV 
  #                   
  16<BR># 
  open                 
  0<BR>LV 
  Size                
  512 MB<BR>Current 
  LE             
  128<BR>Allocated 
  LE           128<BR>snapshot 
  chunk size    64 KB<BR>Allocated to snapshot  0.05% [256 
  KB/492.19 MB]<BR>Allocated to COW-table 7.81 
  MB<BR>Stripes                
  4<BR>Stripe size (KByte)    
  4<BR>Allocation             
  next free<BR>Read ahead sectors     120<BR>Block 
  device           
  58:15<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>So it all looks good!</FONT></DIV>
  <DIV><FONT face=Arial size=2> </DIV></BLOCKQUOTE></FONT></BODY></HTML>