Message-ID: <20040114151855.3502.qmail@web20727.mail.yahoo.com> From: tomasz braun MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1985663016-1074093535=:99062" Subject: [linux-lvm] cannot set vg online anymore - corrupted pv in vg Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Wed Jan 14 18:23:02 2004 List-Id: To: linux-lvm@sistina.com --0-1985663016-1074093535=:99062 Content-Type: text/plain; charset=us-ascii hi all, i try to explain the problem i have here, it looks like dataloss to me because is cannot set the volumegroup online anymore. what i had originally: 1 fibre channel diskdrive of the size 236.02 GB. i had created one both pv's and assigned it to a volume group called tivg1. i made 1 lv out of it, using the maximum possible PE's available (PE size = 16 MB). i named this lv /dev/tivg1/tilv1. now i added 3 new drives to this vg, 1*16.85 GB and 2* 8.43 GB. i created a new lv /dev/tivg1/tilv2, using again the max. number of free pe's, resulting in a lv size of 33.64 GB. both lv's have been in production with no problem. until one 8.43 GB drive (/dev/sdv1 used in /dev/tivg1/tilv2) got corrupted somehow. /dev/tivg1/tilv2 crashed but /dev/tivg1/tilv1 kept running with no problems. until i rebooted. the problem is that i now cannot reactivate tivg1 anymore and get to my data which relies on /dev/tivg1/tilv1. even though in know that this drive (/dev/sdg1) is 100% running and ok. i already re-formated the corrupted 8.43 GB drive and tried to to vgcfgrestore the old lvm-config to the drive. but i still cant get the vg online again. at this point all data on the 236.02 GB lv seemes to be lost. can anybody help with any ideas? best regards, tomasz **************************************************************************** outputs: [root@ti root]# vgcfgrestore -ll -n tivg1 -f /etc/lvmconf/tivg1.conf --- Volume group --- VG Name tivg1 VG Access read/write VG Status NOT available/resizable VG # 1 MAX LV 256 Cur LV 2 Open LV 0 MAX LV Size 1023.97 GB Max PV 256 Cur PV 4 Act PV 4 VG Size 269.64 GB PE Size 16 MB Total PE 17257 Alloc PE / Size 17257 / 269.64 GB Free PE / Size 0 / 0 VG UUID 7gfOH1-Fdxb-ths8-yTSo-2iZJ-Sh1C-mK3v3w --- Logical volume --- LV Name /dev/tivg1/tilv1 VG Name tivg1 LV Write Access read/write LV Status NOT available LV # 1 # open 0 LV Size 236 GB Current LE 15104 Allocated LE 15104 Allocation next free Read ahead sectors 10000 Block device 58:1 --- Logical volume --- LV Name /dev/tivg1/tilv2 VG Name tivg1 LV Write Access read/write LV Status NOT available LV # 2 # open 0 LV Size 33.64 GB Current LE 2153 Allocated LE 2153 Allocation next free Read ahead sectors 10000 Block device 58:2 --- Physical volume --- PV Name /dev/sdg1 VG Name tivg1 PV Size 236.02 GB [494962587 secs] / NOT usable 16.19 MB [LVM: 187 KB] PV# 1 PV Status available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 16384 Total PE 15104 Free PE 0 Allocated PE 15104 PV UUID oOS8A3-OKLq-1pY7-wktU-2n3c-GMfO-q5k9k4 --- Physical volume --- PV Name /dev/sdf1 VG Name tivg1 PV Size 16.85 GB [35342937 secs] / NOT usable 16.19 MB [LVM: 132 KB] PV# 2 PV Status available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 16384 Total PE 1077 Free PE 0 Allocated PE 1077 PV UUID UWfbF4-ZRCC-4ik2-pX91-3GDc-MrtM-C4gH5Y --- Physical volume --- PV Name /dev/sdv1 VG Name tivg1 PV Size 8.43 GB [17671437 secs] / NOT usable 16.19 MB [LVM: 130 KB] PV# 3 PV Status available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 16384 Total PE 538 Free PE 0 Allocated PE 538 PV UUID BoZxoP-nRA7-j6X3-3rPq-1Gki-yK0I-yfcvW1 --- Physical volume --- PV Name /dev/sdm1 VG Name tivg1 PV Size 8.43 GB [17671437 secs] / NOT usable 16.19 MB [LVM: 130 KB] PV# 4 PV Status available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 16384 Total PE 538 Free PE 0 Allocated PE 538 PV UUID Qb1uGf-6X1F-o3VL-WJYo-2mWX-aApu-Ogn8vq **************************************************************************** [root@ti root]# pvscan pvscan -- reading all physical volumes (this may take a while...) pvscan -- ACTIVE PV "/dev/sdd1" of VG "tivg0" [33.69 GB / 0 free] pvscan -- ACTIVE PV "/dev/sde1" of VG "tivg0" [8.41 GB / 0 free] pvscan -- inactive PV "/dev/sdf1" is in no VG [8.43 GB] pvscan -- inactive PV "/dev/sdg1" is associated to unknown VG "tivg1" (run vgscan) pvscan -- inactive PV "/dev/sdh1" is associated to unknown VG "tivg1" (run vgscan) pvscan -- inactive PV "/dev/sdn1" is associated to unknown VG "tivg1" (run vgscan) pvscan -- ACTIVE PV "/dev/sdp1" of VG "tivg0" [101.12 GB / 0 free] pvscan -- total: 7 [413.01 GB] / in use: 6 [404.58 GB] / in no VG: 1 [8.43 GB] **************************************************************************** [root@ti root]# vgscan vgscan -- reading all physical volumes (this may take a while...) vgscan -- found active volume group "tivg0" vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "tivg1" from physical volume(s) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume groups **************************************************************************** [root@ti root]# vgchange tivg1 -ay vgchange -- volume group "tivg1" does not exist **************************************************************************** --------------------------------- Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes --0-1985663016-1074093535=:99062 Content-Type: text/html; charset=us-ascii
hi all,
i try to explain the problem i have here,
it looks like dataloss to me because is cannot set the
volumegroup online anymore.

what i had originally:
1 fibre channel diskdrive of the size 236.02 GB.
i had created one both pv's and assigned it
to a volume group called tivg1.
i made 1 lv out of it, using the maximum possible
PE's available (PE size = 16 MB).  i named this lv
/dev/tivg1/tilv1.
now i added 3 new drives to this vg, 1*16.85 GB
and 2* 8.43 GB. 
i created a new lv /dev/tivg1/tilv2, using again
the max. number of free pe's, resulting in a lv size
of 33.64 GB.
both lv's have been in production with no problem.
until one 8.43 GB drive (/dev/sdv1 used in /dev/tivg1/tilv2) 
got corrupted somehow.
/dev/tivg1/tilv2 crashed but /dev/tivg1/tilv1 kept running with
no problems.
until i rebooted.
the problem is that i now cannot reactivate tivg1 anymore
and get to my data which relies on /dev/tivg1/tilv1.
even though in know that this drive (/dev/sdg1) is 100%
running and ok.
i already re-formated the corrupted 8.43 GB drive and tried to
to vgcfgrestore the old lvm-config to the drive.
but i still cant get the vg online again.
at this point all data on the 236.02 GB lv seemes to be lost.

can anybody help with any ideas?
 
 
best regards,
tomasz
****************************************************************************
outputs:

[root@ti root]# vgcfgrestore -ll -n tivg1 -f /etc/lvmconf/tivg1.conf
--- Volume group ---
VG Name               tivg1
VG Access             read/write
VG Status             NOT available/resizable
VG #                  1
MAX LV                256
Cur LV                2
Open LV               0
MAX LV Size           1023.97 GB
Max PV                256
Cur PV                4
Act PV                4
VG Size               269.64 GB
PE Size               16 MB
Total PE              17257
Alloc PE / Size       17257 / 269.64 GB
Free  PE / Size       0 / 0
VG UUID               7gfOH1-Fdxb-ths8-yTSo-2iZJ-Sh1C-mK3v3w
--- Logical volume ---
LV Name                /dev/tivg1/tilv1
VG Name                tivg1
LV Write Access        read/write
LV Status              NOT available
LV #                   1
# open                 0
LV Size                236 GB
Current LE             15104
Allocated LE           15104
Allocation             next free
Read ahead sectors     10000
Block device           58:1
--- Logical volume ---
LV Name                /dev/tivg1/tilv2
VG Name                tivg1
LV Write Access        read/write
LV Status              NOT available
LV #                   2
# open                 0
LV Size                33.64 GB
Current LE             2153
Allocated LE           2153
Allocation             next free
Read ahead sectors     10000
Block device           58:2

--- Physical volume ---
PV Name               /dev/sdg1
VG Name               tivg1
PV Size               236.02 GB [494962587 secs] / NOT usable 16.19 MB [LVM: 187 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       16384
Total PE              15104
Free PE               0
Allocated PE          15104
PV UUID               oOS8A3-OKLq-1pY7-wktU-2n3c-GMfO-q5k9k4
--- Physical volume ---
PV Name               /dev/sdf1
VG Name               tivg1
PV Size               16.85 GB [35342937 secs] / NOT usable 16.19 MB [LVM: 132 KB]
PV#                   2
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       16384
Total PE              1077
Free PE               0
Allocated PE          1077
PV UUID               UWfbF4-ZRCC-4ik2-pX91-3GDc-MrtM-C4gH5Y
--- Physical volume ---
PV Name               /dev/sdv1
VG Name               tivg1
PV Size               8.43 GB [17671437 secs] / NOT usable 16.19 MB [LVM: 130 KB]
PV#                   3
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       16384
Total PE              538
Free PE               0
Allocated PE          538
PV UUID               BoZxoP-nRA7-j6X3-3rPq-1Gki-yK0I-yfcvW1
--- Physical volume ---
PV Name               /dev/sdm1
VG Name               tivg1
PV Size               8.43 GB [17671437 secs] / NOT usable 16.19 MB [LVM: 130 KB]
PV#                   4
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       16384
Total PE              538
Free PE               0
Allocated PE          538
PV UUID               Qb1uGf-6X1F-o3VL-WJYo-2mWX-aApu-Ogn8vq
****************************************************************************
[root@ti root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE   PV "/dev/sdd1" of VG "tivg0" [33.69 GB / 0 free]
pvscan -- ACTIVE   PV "/dev/sde1" of VG "tivg0" [8.41 GB / 0 free]
pvscan -- inactive PV "/dev/sdf1" is in no VG  [8.43 GB]
pvscan -- inactive PV "/dev/sdg1"  is associated to unknown VG "tivg1" (run vgscan)
pvscan -- inactive PV "/dev/sdh1"  is associated to unknown VG "tivg1" (run vgscan)
pvscan -- inactive PV "/dev/sdn1"  is associated to unknown VG "tivg1" (run vgscan)
pvscan -- ACTIVE   PV "/dev/sdp1" of VG "tivg0" [101.12 GB / 0 free]
pvscan -- total: 7 [413.01 GB] / in use: 6 [404.58 GB] / in no VG: 1 [8.43 GB]
****************************************************************************
[root@ti root]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "tivg0"
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "tivg1" from physical volume(s)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume groups
****************************************************************************
[root@ti root]# vgchange tivg1 -ay
vgchange -- volume group "tivg1" does not exist
****************************************************************************

 

 


Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes --0-1985663016-1074093535=:99062--