PS: Attached you can find a sample script to reproduce the problem.
Usage: ./sample.sh /dev/vdx. Be careful.

Running this script I noticed several warnings in /var/log/messages:
They said

        lvcreate: sending ioctl 1261 to a partition!

I am very sure there were no other lvcreate running except for the
script.

PPS: I am using kvm to clone bootable hard disks. If I run the
sample.sh on a _real_ PC, then the problem is gone, as it seems.
The messages about ioctl 1261 are gone, too.

The kvm command line looks like this:

kvm -m 2048 -smp 2 \
        -drive file=/export/storage/master.img,if=virtio,boot=on \
        -drive file=/dev/sdX,if=virtio \
        -net nic -net tap \
        -vnc :1 \
        -usbdevice tablet

Kernel is 3.4.1


Regards

Harri

Attachment: sample.sh
Description: Bourne shell script

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to