* [linux-lvm] pvmove ioctl errors
@ 2007-01-06 16:10 Ross Vandegrift
2007-01-09 9:29 ` Steven Schlansker
0 siblings, 1 reply; 2+ messages in thread
From: Ross Vandegrift @ 2007-01-06 16:10 UTC (permalink / raw)
To: linux-lvm
Hi everyone,
Judging by the archives, a few others have seen this issue, but I'm
getting errors when I try to pvmove off a PV to remove it from my VG:
root@turalyon:~# pvmove -v /dev/hda2
Wiping cache of LVM-capable devices
Finding volume group "vg0"
Archiving volume group "vg0" metadata (seqno 16).
Creating logical volume pvmove0
Moving 33769 extents of logical volume vg0/home
Found volume group "vg0"
Creating vg0-home
Loading vg0-home table
Resuming vg0-home (253:0)
Updating volume group metadata
Creating volume group backup "/etc/lvm/backup/vg0" (seqno 17).
Found volume group "vg0"
Found volume group "vg0"
Suspending vg0-home (253:0)
Found volume group "vg0"
Creating vg0-pvmove0
Loading vg0-pvmove0 table
device-mapper: reload ioctl failed: Invalid argument
ABORTING: Temporary mirror activation failed. Run pvmove --abort.
Found volume group "vg0"
Loading vg0-pvmove0 table
device-mapper: reload ioctl failed: Invalid argument
Loading vg0-home table
device-mapper: reload ioctl failed: Invalid argument
root@turalyon:~#
I noticed one post that indicated pvmove requires snapshot support,
which I don't normally use. Before running this pvmove, I modprobed
all of the dm-* modules just to make sure.
The box in question is running Ubuntu Edgy Eft on i386. I've been
able to recover just fine from this by rebooting, running pvmove
--abort, and then rebooting again.
Obviously this prevents me from removing the volume though. Thanks in
advance for any help!
--
Ross Vandegrift
ross@kallisti.us
"The good Christian should beware of mathematicians, and all those who
make empty prophecies. The danger already exists that the mathematicians
have made a covenant with the devil to darken the spirit and to confine
man in the bonds of Hell."
--St. Augustine, De Genesi ad Litteram, Book II, xviii, 37
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] pvmove ioctl errors
2007-01-06 16:10 [linux-lvm] pvmove ioctl errors Ross Vandegrift
@ 2007-01-09 9:29 ` Steven Schlansker
0 siblings, 0 replies; 2+ messages in thread
From: Steven Schlansker @ 2007-01-09 9:29 UTC (permalink / raw)
To: LVM general discussion and development
Indeed I had the same error. Nothing I tried worked until I upgraded
the device mapper tools/libraries and the lvm stuff (not sure which one
fixed it, but doing both did)
Then it worked like a charm.
Ross Vandegrift wrote:
> Hi everyone,
>
> Judging by the archives, a few others have seen this issue, but I'm
> getting errors when I try to pvmove off a PV to remove it from my VG:
>
> root@turalyon:~# pvmove -v /dev/hda2
> Wiping cache of LVM-capable devices
> Finding volume group "vg0"
> Archiving volume group "vg0" metadata (seqno 16).
> Creating logical volume pvmove0
> Moving 33769 extents of logical volume vg0/home
> Found volume group "vg0"
> Creating vg0-home
> Loading vg0-home table
> Resuming vg0-home (253:0)
> Updating volume group metadata
> Creating volume group backup "/etc/lvm/backup/vg0" (seqno 17).
> Found volume group "vg0"
> Found volume group "vg0"
> Suspending vg0-home (253:0)
> Found volume group "vg0"
> Creating vg0-pvmove0
> Loading vg0-pvmove0 table
> device-mapper: reload ioctl failed: Invalid argument
> ABORTING: Temporary mirror activation failed. Run pvmove --abort.
> Found volume group "vg0"
> Loading vg0-pvmove0 table
> device-mapper: reload ioctl failed: Invalid argument
> Loading vg0-home table
> device-mapper: reload ioctl failed: Invalid argument
> root@turalyon:~#
>
>
> I noticed one post that indicated pvmove requires snapshot support,
> which I don't normally use. Before running this pvmove, I modprobed
> all of the dm-* modules just to make sure.
>
> The box in question is running Ubuntu Edgy Eft on i386. I've been
> able to recover just fine from this by rebooting, running pvmove
> --abort, and then rebooting again.
>
> Obviously this prevents me from removing the volume though. Thanks in
> advance for any help!
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-09 9:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-06 16:10 [linux-lvm] pvmove ioctl errors Ross Vandegrift
2007-01-09 9:29 ` Steven Schlansker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).