Bug#605957: lvm2: Every even attempt "pvmove" fails

Andrew Shirrayev andrews239 at gmail.com
Sun Dec 5 14:41:04 UTC 2010


At first time i move 300Gb mail storage to new disk, and lost all data. :-(
Transfer complite at 300Gb/sec speed...

Kernel logs:

omega:~# ls -l /dev/mapper/ | grep move
omega:~# dmesg | tail -2
[11762.790363] drbd5: peer( Secondary -> Primary )
[11764.552933] drbd2: peer( Secondary -> Primary )
omega:~# pvmove -n tmptmp1  /dev/sda2 /dev/sdb1
  /dev/sda2: Moved: 48.0%
  /dev/sda2: Moved: 83.6%
  /dev/sda2: Moved: 100.0%
omega:~# ls -l /dev/mapper/ | grep move
brw-rw---- 1 root disk 254, 17 2010-12-05 17:28 mir1a-pvmove0
omega:~# dmesg | tail -2
[11762.790363] drbd5: peer( Secondary -> Primary )
[11764.552933] drbd2: peer( Secondary -> Primary )
omega:~# pvmove -n tmptmp1  /dev/sdb1 /dev/sda2
  device-mapper: create ioctl failed: Device or resource busy
  device-mapper: reload ioctl failed: Invalid argument
  WARNING: dev_open(/dev/sdb1) called while suspended
  WARNING: dev_open(/dev/sda2) called while suspended
  WARNING: dev_open(/dev/sdb1) called while suspended
  WARNING: dev_open(/dev/sda2) called while suspended
  WARNING: dev_open(/dev/sdb1) called while suspended
  WARNING: dev_open(/dev/sda2) called while suspended
  /dev/sdb1: Moved: 100.0%
  device-mapper: create ioctl failed: Device or resource busy
  Unable to reactivate logical volume "pvmove0"
omega:~# ls -l /dev/mapper/ | grep move
omega:~# dmesg | tail -4
[11762.790363] drbd5: peer( Secondary -> Primary )
[11764.552933] drbd2: peer( Secondary -> Primary )
[35829.622520] device-mapper: table: 254:16: linear: dm-linear: Device
lookup failed
[35829.622520] device-mapper: ioctl: error adding target to table


2010/12/5 Bastian Blank <waldi at debian.org>

> severity 605957 important
> thanks
>
> On Sun, Dec 05, 2010 at 05:11:19AM +0300, Andrew Shirayev wrote:
> > Justification: causes serious data loss
>
> The log does not show any indication that there is actually some data
> lost.
>
> > ======   Short description
>
> I miss a description.
>
> > omega:~# pvmove -n tmptmp1 /dev/sdb1 /dev/sda2
> >   device-mapper: create ioctl failed: Device or resource busy
> >   device-mapper: reload ioctl failed: Invalid argument
>
> The kernel log will shows the reason. No need to speculate here.
>
> Bastian
>
> --
> History tends to exaggerate.
>                -- Col. Green, "The Savage Curtain", stardate 5906.4
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20101205/60cc8a20/attachment.htm>


More information about the pkg-lvm-maintainers mailing list