Message-Id: <2AD26456-4CD9-4D61-99FC-039530DA1E35@redhat.com> From: Jonathan Brassow Content-Type: multipart/alternative; boundary=Apple-Mail-18-477807454 Mime-Version: 1.0 (Apple Message framework v924) Date: Wed, 2 Jul 2008 09:16:48 -0500 References: <003701c8db50$c8fcb390$5af61ab0$@schneider@f-it.biz> Subject: [linux-lvm] Fwd: [Linux-cluster] inconsistend volume group after pvmove Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: LVM general discussion and development Cc: andreas.schneider@f-it.biz --Apple-Mail-18-477807454 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Spotted this message on linux-cluster... It seems to me that the LVM label on /dev/sdh still needs to be wiped =20= (pvremove /dev/sdh)... [Although, I'm not sure the PV has been =20 removed from the VG yet... unless by chance it was failing when they =20 did the 'vgreduce'... and that wouldn't explain why there were =20 problems /before/ the vgreduce.] I'm not sure how it got to the point =20= of having inconsistent metadata after running the pvmove. Also note =20 that this is done using CLVM. Anyone have ideas? brassow Begin forwarded message: > From: "Andreas Schneider" > Date: July 1, 2008 3:02:18 AM CDT > To: > Subject: [Linux-cluster] inconsistend volume group after pvmove > Reply-To: linux clustering > > Hello, > This is our setup: We have 3 Linux servers (2.6.18 Centos 5), =20 > clustered, with a clvmd running one =93big=94 volume group (15 SCSI =20= > disks a 69,9 GB). > After we got an hardware I/O error on one disk out gfs filesystem =20 > began to loop. > So we stopped all services and we determined the corrupted disk (/=20 > dev/sdh) and my intention was to do the following: > - pvmove /dev/sdh > - vgreduce my_volumegroup /dev/sdh > - do an intensive hardware check on the volume > > > But: that=92s what happened during pvmove =96v /dev/sdh: > =85=85. > /dev/sdh: Moved: 78,6% > /dev/sdh: Moved: 79,1% > /dev/sdh: Moved: 79,7% > /dev/sdh: Moved: 80,0% > Updating volume group metadata > Creating volume group backup "/etc/lvm/backup/myvol_vg" (seqno =20 > 46). > Error locking on node server1: device-mapper: reload ioctl failed: =20= > Das Argument ist ung=FCltig > Unable to reactivate logical volume "pvmove0" > ABORTING: Segment progression failed. > Removing temporary pvmove LV > Writing out final volume group after pvmove > Creating volume group backup "/etc/lvm/backup/myvol_vg" (seqno =20 > 48). > [root@hpserver1 ~]# pvscan > PV /dev/cciss/c0d0p2 VG VolGroup00 lvm2 [33,81 GB / 0 free] > PV /dev/sda VG fit_vg lvm2 [68,36 GB / 0 free] > PV /dev/sdb VG fit_vg lvm2 [68,36 GB / 0 free] > PV /dev/sdc VG fit_vg lvm2 [68,36 GB / 0 free] > PV /dev/sdd VG fit_vg lvm2 [68,36 GB / 0 free] > PV /dev/sde VG fit_vg lvm2 [66,75 GB / 46,75 GB =20 > free] > PV /dev/sdf VG fit_vg lvm2 [68,36 GB / 0 free] > PV /dev/sdg VG fit_vg lvm2 [68,36 GB / 0 free] > PV /dev/sdh VG fit_vg lvm2 [68,36 GB / 58,36 GB =20 > free] > PV /dev/sdj VG fit_vg lvm2 [68,36 GB / 54,99 GB =20 > free] > PV /dev/sdi VG fit_vg lvm2 [68,36 GB / 15,09 GB =20 > free] > PV /dev/sdk1 VG fit_vg lvm2 [68,36 GB / 55,09 GB =20 > free] > Total: 12 [784,20 GB] / in use: 12 [784,20 GB] / in no VG: 0 [0 ] > > That sounded bad, and I didn=92t have any idea what to do, but read, =20= > that pvmove can start at the point it was, so I started pvmove =20 > againg and now pvmove could move all data. > pvscan and vgscan -vvv showed me, that all data were moved from the /=20= > dev/sdh volume to the other volumes. > > To be sure I restarted my cluster nodes, but they encountered =20 > problems mounting the gfs filesystems. > I got this error: > > [root@server1 ~]# /etc/init.d/clvmd stop > Deactivating VG myvol_vg: Volume group "myvol_vg" inconsistent > WARNING: Inconsistent metadata found for VG myvol_vg - updating to =20= > use version 148 > 0 logical volume(s) in volume group "myvol_vg" now active > [ OK ] > Stopping clvm: [ OK ] > [root@server1 ~]# /etc/init.d/clvmd start > Starting clvmd: [ OK ] > Activating VGs: 2 logical volume(s) in volume group "VolGroup00" =20 > now active > Volume group "myvol_vg" inconsistent > WARNING: Inconsistent metadata found for VG myvol_vg - updating to =20= > use version 151 > Error locking on node server1: Volume group for uuid not found: =20 > tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBtuFZZe8QKoX8sVA0XRTNoDQVWVftk8cSa > Error locking on node server1: Volume group for uuid not found: =20 > tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBtqDfFtrJTFTGuju8nNjwtCdPGnzP3hh8k > Error locking on node server1: Volume group for uuid not found: =20 > tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBtc22hBY40phdVvVdFBFX28PvfF7JrlIYz > Error locking on node server1: Volume group for uuid not found: =20 > tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBtWfJ1EqXJ309gO3Gx0ZvpNekrmHFo9u2V > Error locking on node server1: Volume group for uuid not found: =20 > tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBtCP6czghnQFEjNdv9DF6bsUmnK3eJ5vKp > Error locking on node server1: Volume group for uuid not found: =20 > tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBt0KNlnblpwOfcnqIjk4GJ662dxOsL70GF > 0 logical volume(s) in volume group "myvol_vg" now active > [ OK ] > > As I take a look at it, these 6 volumes are exactly the LVs which =20 > should be found and where all datas are stored. > > The next step was in the beginning step by step and in the end =20 > stupid try and error. > This was one of the first actions: > > [root@hpserver1 ~]# vgreduce --removemissing myvol_vg > Logging initialised at Tue Jul 1 10:00:52 2008 > Set umask to 0077 > Finding volume group "myvol_vg" > Wiping cache of LVM-capable devices > WARNING: Inconsistent metadata found for VG myvol_vg - updating to =20= > use version 229 > Volume group "myvol_vg" is already consistent > > We tried to deactivate the volume via vgchange =96n y myvol_vg, we =20 > tried to =93removemissing=94 and sadly after a few concurrent tries =20= > (dmsetup info =96c, dmsetup mknodes and vgchange =96n y myvol_vg) we = can =20 > access our LVs, but we still get this message and we don=92t know why: > > Volume group "myvol_vg" inconsistent > WARNING: Inconsistent metadata found for VG myvol_vg - updating to =20= > use version 228 > > I=92m a little bit worried about our data, > > Regards > Andreas > > -- > Linux-cluster mailing list > Linux-cluster@redhat.com > https://www.redhat.com/mailman/listinfo/linux-cluster --Apple-Mail-18-477807454 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable
Spotted this message on = linux-cluster...

It seems to me that the LVM = label on /dev/sdh still needs to be wiped (pvremove /dev/sdh)... =  [Although, I'm not sure the PV has been removed from the VG yet... = unless by chance it was failing when they did the 'vgreduce'... =  and that wouldn't explain why there were problems /before/ the = vgreduce.]  I'm not sure how it got to the point of having = inconsistent metadata after running the pvmove.  Also note that = this is done using CLVM.

Anyone have = ideas?

 brassow

Begin = forwarded message:

From: = "Andreas Schneider" <andreas.schneider@f-it.biz>=
Date: July 1, 2008 3:02:18 AM = CDT
Subject: [Linux-cluster] inconsistend volume = group after pvmove
Reply-To: linux = clustering <linux-cluster@redhat.com>

=
Hello,
This is our setup: We have 3 Linux servers (2.6.18 Centos = 5), clustered, with a clvmd running one =93big=94 volume group (15 SCSI = disks a 69,9 GB).
After we = got an hardware I/O error on one disk out gfs filesystem began to = loop.
So we = stopped all services and we determined the corrupted disk (/dev/sdh) and = my intention was to do the following:
- pvmove /dev/sdh
- vgreduce my_volumegroup = /dev/sdh
- do an intensive hardware check on the = volume
 
 
But: that=92s what happened during pvmove =96v = /dev/sdh:
=85=85.
/dev/sdh: Moved: 78,6%
  /dev/sdh: Moved: = 79,1%
  = /dev/sdh: Moved: 79,7%
  /dev/sdh: Moved: 80,0%
    Updating volume = group metadata
    Creating volume group backup = "/etc/lvm/backup/myvol_vg" (seqno 46).
  Error locking on node server1: = device-mapper: reload ioctl failed: Das Argument ist = ung=FCltig
  = Unable to reactivate logical volume = "pvmove0"
  = ABORTING: Segment progression failed.
    Removing temporary = pvmove LV
    Writing out final volume group after = pvmove
    Creating volume group backup = "/etc/lvm/backup/myvol_vg" (seqno 48).
[root@hpserver1 ~]# = pvscan
  PV = /dev/cciss/c0d0p2   VG VolGroup00   lvm2 [33,81 GB / = 0    free]
  PV = /dev/sda           = VG fit_vg       lvm2 [68,36 GB / = 0    free]
  PV = /dev/sdb           = VG fit_vg       lvm2 [68,36 GB / = 0    free]
  PV = /dev/sdc           = VG fit_vg       lvm2 [68,36 GB / = 0    free]
  PV = /dev/sdd           = VG fit_vg       lvm2 [68,36 GB / = 0    free]
  PV = /dev/sde           = VG fit_vg       lvm2 [66,75 GB / 46,75 GB = free]
  PV = /dev/sdf           = VG fit_vg       lvm2 [68,36 GB / = 0    free]
  PV = /dev/sdg           = VG fit_vg       lvm2 [68,36 GB / = 0    free]
  PV = /dev/sdh           = VG fit_vg       lvm2 [68,36 GB / 58,36 GB = free]
  PV = /dev/sdj           = VG fit_vg       lvm2 [68,36 GB / 54,99 GB = free]
  PV = /dev/sdi           = VG fit_vg       lvm2 [68,36 GB / 15,09 GB = free]
  PV = /dev/sdk1           VG = fit_vg       lvm2 [68,36 GB / 55,09 GB = free]
  = Total: 12 [784,20 GB] / in use: 12 [784,20 GB] / in no VG: 0 = [0   ]
 
That sounded bad, and I didn=92t have any idea what to = do, but read, that pvmove can start at the point it was, so I started = pvmove againg and now pvmove could move all = data.
pvscan = and vgscan -vvv showed me, that all data were moved from the /dev/sdh = volume to the other volumes.
 
To be sure I restarted my cluster = nodes, but they encountered problems mounting the gfs = filesystems.
I got = this error:
 
[root@server1 ~]# /etc/init.d/clvmd = stop
Deactivating VG = myvol_vg:   Volume group "myvol_vg" = inconsistent
  = WARNING: Inconsistent metadata found for VG myvol_vg - updating to use = version 148
  0 = logical volume(s) in volume group "myvol_vg" now = active
          = ;            &= nbsp;           &nb= sp;            = ;            = [  OK  ]
Stopping = clvm:           &nb= sp;            = ;            &= nbsp;        [  OK  = ]
[root@server1 = ~]# /etc/init.d/clvmd start
Starting = clvmd:           &n= bsp;           &nbs= p;            =         [  OK  = ]
Activating = VGs:   2 logical volume(s) in volume group "VolGroup00" now = active
  = Volume group "myvol_vg" inconsistent
  WARNING: Inconsistent metadata = found for VG myvol_vg - updating to use version = 151
  Error = locking on node server1: Volume group for uuid not found: = tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBtuFZZe8QKoX8sVA0XRTNoDQVWVftk8cSa
  Error locking on node = server1: Volume group for uuid not found: = tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBtqDfFtrJTFTGuju8nNjwtCdPGnzP3hh8k
  Error locking on node = server1: Volume group for uuid not found: = tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBtc22hBY40phdVvVdFBFX28PvfF7JrlIYz
  Error locking on node = server1: Volume group for uuid not found: = tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBtWfJ1EqXJ309gO3Gx0ZvpNekrmHFo9u2V
  Error locking on node = server1: Volume group for uuid not found: = tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBtCP6czghnQFEjNdv9DF6bsUmnK3eJ5vKp
  Error locking on node = server1: Volume group for uuid not found: = tGRfaK5aW00pFRXcLtrdHAw5a4GNDVBt0KNlnblpwOfcnqIjk4GJ662dxOsL70GF
  0 logical volume(s) = in volume group "myvol_vg" now active
          = ;            &= nbsp;           &nb= sp;            = ;            [  OK  = ]
 
As I take a look at it, these 6 volumes are exactly the = LVs which should be found and where all datas are = stored.
 
The next step was in the beginning step by step and in = the end stupid try and error.
This was one of the first = actions:
 
[root@hpserver1 ~]# vgreduce --removemissing = myvol_vg
    Logging initialised at Tue Jul  1 = 10:00:52 2008
    Set umask to = 0077
    Finding volume group = "myvol_vg"
    Wiping cache of LVM-capable = devices
  = WARNING: Inconsistent metadata found for VG myvol_vg - updating to use = version 229
  = Volume group "myvol_vg" is already = consistent
 
We tried to deactivate the volume via vgchange =96n y = myvol_vg, we tried to =93removemissing=94 and sadly after a few = concurrent tries (dmsetup info =96c, dmsetup mknodes and vgchange =96n y = myvol_vg) we can access our LVs, but we still get this message and we = don=92t know why:
 
  Volume group "myvol_vg" = inconsistent
  = WARNING: Inconsistent metadata found for VG myvol_vg - updating to use = version 228
 
I=92m a little bit worried about our = data,
 
Regards
Andreas
 
--
Linux-cluster = mailing list