Neil Bothwick wrote:
On Tue, 22 Nov 2011 23:50:08 -0600, Dale wrote:
Another LVM question. If I want to remove a drive and tell pvmove to
move the data off it, can the drive have files being written to it
while this is done? I'm wanting to use my old spare drive to move some
things around but right now LVM has it. I think it is OK but just want
to make sure. If it is not OK, do I have to unmount the LV first?
Once you start pvmove running, LVM will not allocate any more space on
the drive, so any files written to the LV will go on another drive.
If you mean you want to write to it separately from LVM, of course you
can, as long as you are using a different partition.
I think we have a problem:
root@fireball / # pvmove -v /dev/sdb1
Finding volume group "data"
Archiving volume group "data" metadata (seqno 4).
Creating logical volume pvmove0
Moving 59604 extents of logical volume data/data1
Insufficient free space: 59604 extents needed, but only 118 available
Unable to allocate mirror extents for pvmove0.
Failed to convert pvmove LV to mirrored
root@fireball / # pvdisplay
--- Physical volume ---
PV Name /dev/sdb1
VG Name data
PV Size 232.83 GiB / not usable 2.55 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 59604
Free PE 0
Allocated PE 59604
PV UUID Nxvrjn-BuaK-RGsF-F32S-0EaI-W4xe-H6Lnjl
--- Physical volume ---
PV Name /dev/sdc1
VG Name data
PV Size 698.64 GiB / not usable 4.84 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 178850
Free PE 118
Allocated PE 178732
PV UUID NF6I4G-L1L5-0VDE-HyUc-ESH3-CfV3-eUo676
root@fireball / # df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 19534436 7249460 12284976 38% /
/dev/root 19534436 7249460 12284976 38% /
rc-svcdir 1024 120 904 12% /lib64/rc/init.d
udev 10240 360 9880 4% /dev
shm 8232972 0 8232972 0% /dev/shm
/dev/sda1 186663 28128 148898 16% /boot
/dev/sda8 9614116 4366692 4759052 48% /var
/dev/sda6 11535344 5332948 5616428 49% /usr/portage
/dev/sda7 48828008 11273180 37554828 24% /home
/dev/mapper/data-data1
960906608 275263224 636841120 31% /data
tmpfs 8232972 0 8232972 0% /var/tmp/portage
/dev/sda9 59434744 31373872 25041732 56% /mnt/temp
root@fireball / #
So, I got space left on sdc but it won't move the data off sdb. Did
this run off into the ditch? :/
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or how
you interpreted my words!