Message-ID: <01ef01c24ac6$86fc58e0$162ea8c0@pike> From: "Davide Di Luzio" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01EC_01C24AD7.4A4057B0" Subject: [linux-lvm] pvmove failed 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: Fri Aug 23 12:00:02 2002 List-Id: To: linux-lvm@sistina.com This is a multi-part message in MIME format. ------=_NextPart_000_01EC_01C24AD7.4A4057B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, we've a server (web, ftp, cgi applications) with this hardware: Motherborad SuperMIcro P4DP6 Onboard ATI Technologies Inc Rage XL (rev 27) (prog-if 00 [VGA]) ATI Technologies Inc Rage XL dual P4 Xeon 2.2 Ghz 4 Gbyte RAM one controller: American Megatrends Inc. MegaRAID (rev 02) American Megatrends Inc. MegaRAID 475 Express 500 RAID Controller bios = ver. 5.2 one controller: SCSI storage controller: Adaptec AHA-3960D / AIC-7899A = U160/m (rev 01) Adaptec AHA-3960D U160/m onboard controller:=20 SCSI storage controller: Adaptec AIC-7899P U160/m (rev 01) Intel Ethernet Pro 100 We've LVM utility software vers. 1.0.5 installed on 2.4.18-10 Readhat = Kernel (ver. 7.3, official kernel patched with LVM 1.0.5).=20 The Volume group hosting is so configured: --- Volume group --- VG Name hosting VG Access read/write VG Status available/resizable VG # 2 MAX LV 255 Cur LV 3 Open LV 3 MAX LV Size 255.99 GB Max PV 255 Cur PV 3 Act PV 3 VG Size 34.24 GB PE Size 4 MB Total PE 17510 Alloc PE / Size 8744 / 34.16 GB Free PE / Size 0 / 0 GB VG UUID zsW0nX-g4jP-z1uw-dAEk-TZDP-dxVC-j1Llec --- Logical volume --- LV Name /dev/home/lv VG Name home LV Write Access read/write LV Status available LV # 1 # open 1 LV Size 12 GB Current LE 3072 Allocated LE 3072 Stripes 2 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:5 --- Logical volume --- LV Name /dev/hosting/lv VG Name hosting LV Write Access read/write LV Status available LV # 1 # open 1 LV Size 7.16 GB Current LE 1832 Allocated LE 1832 Stripes 2 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:8 --- Logical volume --- LV Name /dev/hosting/lv0 VG Name hosting LV Write Access read/write LV Status available LV # 2 # open 1 LV Size 7 GB Current LE 1792 Allocated LE 1792 Stripes 2 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:9 --- Logical volume --- LV Name /dev/hosting/lv1 VG Name hosting LV Write Access read/write LV Status available LV # 3 # open 1 LV Size 20 GB Current LE 5120 Allocated LE 5120 Stripes 2 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:10 --- Physical volumes --- PV Name (#) /dev/sdv1 (1) PV Status available / allocatable Total PE / Free PE 4372 / 0 PV Name (#) /dev/sdw1 (2) PV Status available / allocatable Total PE / Free PE 4372 / 0 The device /dev/sdw1 is an logical array (raid 1) on ami megaraid = controller: this device is in degraded mode, so we have add two scsi = disk with raid software (/dev/md12, one device on onboard controller and the second on the external AIC 7899); i wolud move the striped = device /dev/sdw1 to new /dev/md12. I've add this device (/dev/md12) to volume group hosting with = "vgextend" utility. Note that /dev/sdv1 and /dev/sdw1 are logical striping of volume group = hosting In single mode, i've umounted all the logical volume and i've make: /sbin/pvmove -iv /dev/sdw1 /dev/md12 The process skipped some PE (I/o errors) but after moved 91 PE from = /dev/sdw1 the pvmove command=20 freezed; after a shutdown of a server i see on the vg hosting that = /dev/md12 has 91 PE allocated and i've mounted on the file system apparently about no errors I see also that the PE is on lv logical volume, so i make: /sbin/pvmove -iv -n lv1 /dev/sdw1 /dev/md12 (I've tested several type of pvmove comand, but i can't specify a ranges = of PE with a logical volume striped). About moved 90 PE the pvmove freezed; reboot the server and /dev/md/12 = ha allocated another 90 PE. So go on, and after: /sbin/pvmove -iv -n lv0 /dev/sdw1 /dev/md12 i've moved 89 PE and = freezed again: is this another bug of pvmove utility? Now, the vgdisplay -v hosting is this: --- Volume group --- VG Name hosting VG Access read/write VG Status available/resizable VG # 2 MAX LV 255 Cur LV 3 Open LV 3 MAX LV Size 255.99 GB Max PV 255 Cur PV 3 Act PV 3 VG Size 34.24 GB PE Size 4 MB Total PE 17510 Alloc PE / Size 8744 / 34.16 GB Free PE / Size 8766 / 34.24 GB VG UUID zsW0nX-g4jP-z1uw-dAEk-TZDP-dxVC-j1Llec --- Logical volume --- LV Name /dev/home/lv VG Name home LV Write Access read/write LV Status available LV # 1 # open 1 LV Size 12 GB Current LE 3072 Allocated LE 3072 Stripes 2 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:5 --- Logical volume --- LV Name /dev/hosting/lv VG Name hosting LV Write Access read/write LV Status available LV # 1 # open 1 LV Size 7.16 GB Current LE 1832 Allocated LE 1832 Stripes 2 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:8 --- Logical volume --- LV Name /dev/hosting/lv0 VG Name hosting LV Write Access read/write LV Status available LV # 2 # open 1 LV Size 7 GB Current LE 1792 Allocated LE 1792 Stripes 2 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:9 --- Logical volume --- LV Name /dev/hosting/lv1 VG Name hosting LV Write Access read/write LV Status available LV # 3 # open 1 LV Size 20 GB Current LE 5120 Allocated LE 5120 Stripes 2 Stripe size (KByte) 4 Allocation next free Read ahead sectors 120 Block device 58:10 --- Physical volumes --- PV Name (#) /dev/md12 (3) PV Status available / allocatable Total PE / Free PE 8766 / 8499 PV Name (#) /dev/sdv1 (1) PV Status available / allocatable Total PE / Free PE 4372 / 0 PV Name (#) /dev/sdw1 (2) PV Status available / allocatable Total PE / Free PE 4372 / 267 /sbin/pvdisplay -v /dev/md12 In this mail is attached the pvdispay output of /dev/md12. Now the server is up and apparently the data is integrity but i=20 would safely move all the logical volume=20 on /dev/md12 or into another device; how can i do this ? Thanks.=20 Best Regards. Davide Di Luzio System Administrator ----------------- ALICOM Group Tel: +39-085-4406901 Fax: +39-085-4406927 ------=_NextPart_000_01EC_01C24AD7.4A4057B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
we've a server (web, ftp, cgi = applications) with=20 this hardware:
 
Motherborad SuperMIcro = P4DP6
 
Onboard ATI Technologies Inc Rage XL = (rev 27)=20 (prog-if 00 [VGA])
 ATI Technologies Inc Rage = XL
dual P4 Xeon 2.2 Ghz
4 Gbyte RAM
 
one controller: American Megatrends = Inc. MegaRAID=20 (rev 02)
American Megatrends Inc. MegaRAID 475 Express 500 RAID = Controller=20 bios ver. 5.2
one controller: SCSI storage = controller: Adaptec=20 AHA-3960D / AIC-7899A U160/m (rev 01)
 Adaptec AHA-3960D=20 U160/m
onboard controller:
SCSI storage controller: Adaptec = AIC-7899P U160/m=20 (rev 01)
Intel Ethernet Pro 100
 
We've LVM utility software vers. 1.0.5 = installed on=20 2.4.18-10 Readhat Kernel (ver. 7.3, official kernel patched with LVM 1.0.5).
 
The Volume group hosting is so=20 configured:
 
--- Volume group ---
VG=20 Name           &nb= sp;  =20 hosting
VG=20 Access           &= nbsp;=20 read/write
VG=20 Status           &= nbsp;=20 available/resizable
VG=20 #            =      =20 2
MAX=20 LV            = ;   =20 255
Cur=20 LV            = ;   =20 3
Open=20 LV            = ;  =20 3
MAX LV = Size          =20 255.99 GB
Max=20 PV            = ;   =20 255
Cur=20 PV            = ;   =20 3
Act=20 PV            = ;   =20 3
VG=20 Size           &nb= sp;   34.24=20 GB
PE=20 Size           &nb= sp;  =20 4 MB
Total=20 PE            = ; =20 17510
Alloc PE / Size       8744 / = 34.16=20 GB
Free  PE / Size       0 = / 0=20 GB
VG=20 UUID           &nb= sp;  =20 zsW0nX-g4jP-z1uw-dAEk-TZDP-dxVC-j1Llec
--- Logical volume ---
LV=20 Name           &nb= sp;   =20 /dev/home/lv
VG=20 Name           &nb= sp;   =20 home
LV Write Access       =20 read/write
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 1
#=20 open           &nb= sp;    =20 1
LV=20 Size           &nb= sp;   =20 12 GB
Current=20 LE            = ;=20 3072
Allocated = LE          =20 3072
Stripes         &nbs= p;     =20 2
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:5
 
--- Logical volume ---
LV=20 Name           &nb= sp;   =20 /dev/hosting/lv
VG=20 Name           &nb= sp;   =20 hosting
LV Write Access       =20 read/write
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 1
#=20 open           &nb= sp;    =20 1
LV=20 Size           &nb= sp;   =20 7.16 GB
Current=20 LE            = ;=20 1832
Allocated = LE          =20 1832
Stripes         &nbs= p;     =20 2
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:8
 
--- Logical volume ---
LV=20 Name           &nb= sp;   =20 /dev/hosting/lv0
VG=20 Name           &nb= sp;   =20 hosting
LV Write Access       =20 read/write
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 2
#=20 open           &nb= sp;    =20 1
LV=20 Size           &nb= sp;   =20 7 GB
Current=20 LE            = ;=20 1792
Allocated = LE          =20 1792
Stripes         &nbs= p;     =20 2
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:9
--- Logical volume ---
LV=20 Name           &nb= sp;   =20 /dev/hosting/lv1
VG=20 Name           &nb= sp;   =20 hosting
LV Write Access       =20 read/write
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 3
#=20 open           &nb= sp;    =20 1
LV=20 Size           &nb= sp;   =20 20 GB
Current=20 LE            = ;=20 5120
Allocated = LE          =20 5120
Stripes         &nbs= p;     =20 2
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:10
 
--- Physical volumes ---
PV Name = (#)          =20 /dev/sdv1 (1)
PV=20 Status           &= nbsp;=20 available / allocatable
Total PE / Free PE    4372 / = 0
 
PV Name = (#)          =20 /dev/sdw1 (2)
PV=20 Status           &= nbsp;=20 available / allocatable
Total PE / Free PE    4372 /=20 0
The device /dev/sdw1 is an logical = array (raid 1)=20 on ami megaraid controller: this device is  in degraded  = mode,=20 so we have add two scsi disk with = raid software=20 (/dev/md12, one device on onboard controller
and the second on the external AIC = 7899); i wolud=20 move the striped device /dev/sdw1 to
new /dev/md12.
    I've add this device = (/dev/md12)=20 to volume group hosting with "vgextend" utility.
Note that /dev/sdv1 and /dev/sdw1 are = logical=20 striping of volume group hosting
 
In single mode, i've umounted all the = logical=20 volume and i've make:
 
/sbin/pvmove -iv /dev/sdw1 = /dev/md12
 
The process skipped some PE (I/o = errors) but after=20 moved 91 PE from /dev/sdw1 the pvmove command
freezed; after a shutdown of a server i = see on the=20 vg hosting that /dev/md12 has 91 PE allocated and i've
mounted on the file system apparently = about no=20 errors
    I see also that the = PE is on lv=20 logical volume, so i make:
 
/sbin/pvmove -iv -n lv1 /dev/sdw1=20 /dev/md12
 
(I've tested several type of pvmove = comand, but i=20 can't specify a ranges of PE with a logical volume = striped).
 
About moved 90 PE the pvmove freezed; = reboot the=20 server and /dev/md/12 ha allocated another  90 PE.
 
So go on, and after:
 
/sbin/pvmove -iv -n lv0 /dev/sdw1 = /dev/md12 i've=20 moved 89  PE and freezed again:
is this another bug of pvmove = utility?
 
Now, the vgdisplay -v hosting is = this:
 
 
--- Volume = group ---
VG=20 Name           &nb= sp;  =20 hosting
VG=20 Access           &= nbsp;=20 read/write
VG=20 Status           &= nbsp;=20 available/resizable
VG=20 #            =      =20 2
MAX=20 LV            = ;   =20 255
Cur=20 LV            = ;   =20 3
Open=20 LV            = ;  =20 3
MAX LV = Size          =20 255.99 GB
Max=20 PV            = ;   =20 255
Cur=20 PV            = ;   =20 3
Act=20 PV            = ;   =20 3
VG=20 Size           &nb= sp;   34.24=20 GB
PE=20 Size           &nb= sp;  =20 4 MB
Total=20 PE            = ; =20 17510
Alloc PE / Size       8744 / = 34.16=20 GB
Free  PE / Size       8766 / = 34.24=20 GB
VG=20 UUID           &nb= sp;  =20 zsW0nX-g4jP-z1uw-dAEk-TZDP-dxVC-j1Llec
--- Logical volume ---
LV=20 Name           &nb= sp;   =20 /dev/home/lv
VG=20 Name           &nb= sp;   =20 home
LV Write Access       =20 read/write
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 1
#=20 open           &nb= sp;    =20 1
LV=20 Size           &nb= sp;   =20 12 GB
Current=20 LE            = ;=20 3072
Allocated = LE          =20 3072
Stripes         &nbs= p;     =20 2
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:5
 
--- Logical volume ---
LV=20 Name           &nb= sp;   =20 /dev/hosting/lv
VG=20 Name           &nb= sp;   =20 hosting
LV Write Access       =20 read/write
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 1
#=20 open           &nb= sp;    =20 1
LV=20 Size           &nb= sp;   =20 7.16 GB
Current=20 LE            = ;=20 1832
Allocated = LE          =20 1832
Stripes         &nbs= p;     =20 2
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:8
 
--- Logical volume ---
LV=20 Name           &nb= sp;   =20 /dev/hosting/lv0
VG=20 Name           &nb= sp;   =20 hosting
LV Write Access       =20 read/write
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 2
#=20 open           &nb= sp;    =20 1
LV=20 Size           &nb= sp;   =20 7 GB
Current=20 LE            = ;=20 1792
Allocated = LE          =20 1792
Stripes         &nbs= p;     =20 2
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:9
--- Logical volume ---
LV=20 Name           &nb= sp;   =20 /dev/hosting/lv1
VG=20 Name           &nb= sp;   =20 hosting
LV Write Access       =20 read/write
LV=20 Status           &= nbsp; =20 available
LV=20 #            =       =20 3
#=20 open           &nb= sp;    =20 1
LV=20 Size           &nb= sp;   =20 20 GB
Current=20 LE            = ;=20 5120
Allocated = LE          =20 5120
Stripes         &nbs= p;     =20 2
Stripe size (KByte)   =20 4
Allocation         &nbs= p;  =20 next free
Read ahead sectors     120
Block=20 device          =20 58:10
 

--- Physical volumes ---
PV Name=20 (#)           = /dev/md12=20 (3)
PV=20 Status           &= nbsp;=20 available / allocatable
Total PE / Free PE    8766 /=20 8499
 
PV Name = (#)          =20 /dev/sdv1 (1)
PV=20 Status           &= nbsp;=20 available / allocatable
Total PE / Free PE    4372 / = 0
 
PV Name = (#)          =20 /dev/sdw1 (2)
PV=20 Status           &= nbsp;=20 available / allocatable
Total PE / Free PE    4372 /=20 267
/sbin/pvdisplay -v /dev/md12
 
In this mail is attached the pvdispay output of /dev/md12.

Now the server is up and apparently the data is integrity but i =
would safely move all the logical volume
on /dev/md12 or into = another=20 device; how can i do this ?
Thanks.

Best Regards.
Davide Di Luzio
System Administrator
-----------------
ALICOM Group     Tel:=20 +39-085-4406901     Fax: +39-085-4406927
 
 
 
 
------=_NextPart_000_01EC_01C24AD7.4A4057B0--