[linux-lvm] Rmove a faulty hard drive off LVM Group
Joann Deng
JDeng at homestead-inc.com
Fri Nov 17 21:29:05 UTC 2006
I am afraid it's striped. But is there a way that I can verify it.
And I was thinking about backing all the data on the faulty drive to an
external hard drive. But unfortunately, the faulty drive holds /boot and
/. I will try to copy the data to the external hard drive, but not sure
if it works or not.
Thanks
_____
From: linux-lvm-bounces at redhat.com [mailto:linux-lvm-bounces at redhat.com]
On Behalf Of mghofran at caregroup.harvard.edu
Sent: Friday, November 17, 2006 1:11 PM
To: linux-lvm at redhat.com
Subject: RE: [linux-lvm] Rmove a faulty hard drive off LVM Group
It really depends on how your logical volume is using the disks in the
volume group. If it is striped for using both disks, then your only
choice is to backup the data somewhere else, do vgreduce and then
rebuild the logical volume. But if you didn't strip your logical volume
(the default is to be truncated) then you should be able to just free
the disk from volume group.
_____
From: linux-lvm-bounces at redhat.com [mailto:linux-lvm-bounces at redhat.com]
On Behalf Of Joann Deng
Sent: Friday, November 17, 2006 3:52 PM
To: LVM general discussion and development
Subject: RE: [linux-lvm] Rmove a faulty hard drive off LVM Group
Actually, what I want to do is to shrink the volume group such that it
only contains one pv which is hdb1. Can you please tell me how to do
that?
Thanks
_____
From: linux-lvm-bounces at redhat.com [mailto:linux-lvm-bounces at redhat.com]
On Behalf Of mghofran at caregroup.harvard.edu
Sent: Friday, November 17, 2006 12:46 PM
To: linux-lvm at redhat.com
Subject: RE: [linux-lvm] Rmove a faulty hard drive off LVM Group
You are confusing the 11% free with the "Free PE". They are not the same
thing. The 11% is showing you "used / allocated" in your logical volume.
Another words "15281032 / 151527604 = 11% " however the free PE which is
160 MB, is the total unallocated space in the free bank of the volume
group. You could use that to extend the existing one (151527604) or
create a new one.
Hope that helped
_____
From: linux-lvm-bounces at redhat.com [mailto:linux-lvm-bounces at redhat.com]
On Behalf Of Joann Deng
Sent: Thursday, November 16, 2006 8:10 PM
To: linux-lvm at redhat.com
Subject: [linux-lvm] Rmove a faulty hard drive off LVM Group
Hello,
My system is a Sun Fire X 2100 with RHEL 4.0. It has two 80G ATA SCSI
disks. Right now, one of them is failing, and I need to remove it off
the LVM Group.
Here is the LVM layout:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 151527604 15281032
128549372 11% /
/dev/sda1 101086 18896 76971 20% /boot
none 1036912 0 1036912 0% /dev/shm
But when I run vgdisplay, the system only have 160MB Free PE.
# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 2
Act PV 2
VG Size 148.91 GB
PE Size 32.00 MB
Total PE 4765
Alloc PE / Size 4760 / 148.75 GB
Free PE / Size 5 / 160.00 MB
VG UUID P7GrJk-v55z-YHlz-xPYL-v0eJ-jL6V-Cdo5OO
As the usage is only 11% for VolGroup00-LogVol00 as shown by "df -k", I
don't know why I only have 160MB PE free.
I tried "pvmove /dev/sdb1", got the error message "insufficient suitable
contiguous allocatable extents for logical volume pvmove 0:2384 more
required, unable to allocate temporary LV for pvmove".
Can someone please help me out?
Thanks a lot in advance,
Joann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20061117/f5ed73c3/attachment.htm>
More information about the linux-lvm
mailing list