After creating an lvm
dd if=/dev/zero of=1.img bs=1M count=16384 dd if=/dev/zero of=2.img bs=1M count=16384 losetup /dev/loop1 1.img losetup /dev/loop2 2.img pvcreate /dev/loop1 pvcreate /dev/loop2 vgcreate LVM1 /dev/loop1 /dev/loop2 vgchange -an LVM1
I allocate 10G volume and format it
lvcreate -L10240 -n lv_34179984_0 LVM1 mkfs.xfs /dev/LVM1/lv_34179984_0 mount -t xfs /dev/LVM1/lv_34179984_0 /home/test/image
When I try to copy a 8G file to /home/test/image it blocks after 215M copied, iostat gives me
avg-cpu: %user %nice %system %iowait %steal %idle
0.00 0.00 0.00 29.82 0.00 70.18
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
sda1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
sda2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
sda3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 100.20
How to solve this?
cpprocess in? (is it waiting on a read, or a write?) – voretaq7♦ Sep 14 '11 at 17:53