[linux-lvm] Removing a very old physical drive - revisited
Nicholas Robinson
npr at bottlehall.co.uk
Thu Oct 29 04:01:29 UTC 2009
The pvmove worked, I've moved the boot to the new disc, so my old disc
is now effectively redundant. The problem is that, as I suspected, I
can't pvmove off my usb drive!
I spotted these messages in /var/log/messages
Oct 29 03:44:06 oak kernel: device-mapper: table: device 8:2 too small
for target
Oct 29 03:44:06 oak kernel: device-mapper: table: 253:0: linear:
dm-linear: Device lookup failed
Oct 29 03:44:06 oak kernel: device-mapper: ioctl: error adding target to
table
Oct 29 03:46:15 oak kernel: device-mapper: table: device 8:2 too small
for target
Oct 29 03:46:15 oak kernel: device-mapper: table: 253:0: linear:
dm-linear: Device lookup failed
Oct 29 03:46:15 oak kernel: device-mapper: ioctl: error adding target to
table
They seem to occur whenever I do a pvmove involving my new disc - the
partition used in the volume group.
I have successfully removed and re-created the swap volume, just to see
if this might help. I hasn't!
# dmsetup table
VolGroup00-lv_swap: 0 1966080 linear 8:2 593887616
VolGroup00-LogVol00: 0 56229888 linear 8:35 384
VolGroup00-LogVol00: 56229888 593887232 linear 8:2 384
Nick
On Wed, 2009-10-28 at 23:21 +0000, Nicholas Robinson wrote:
> i haven't had any replies from dm-devel mailing list so I tried pvmove
> onto my external usb drive - i.e.
>
> pvmove /dev/sdb2 /dev/sdc3
>
> It is working so far! So, the device-mapper error must refer
> to /dev/sda2 rather than the source disc as I'd assumed. I'm not sure
> where this will leave me. My guess is that trying to pvmove from the usb
> drive to the new disc will give the same error.
>
> I don't really want the usb drive hanging off the front of my server,
> but it will be nice to get rid of the old disc. Maybe I'll just have to
> buy a new disc.
>
> Nick
>
> On Wed, 2009-10-28 at 09:07 -0700, malahal at us.ibm.com wrote:
> > Nicholas Robinson [npr at bottlehall.co.uk] wrote:
> > > Hi Malahal
> > >
> > > Thanks for your reply. I don't really want to use the new/temporary disc
> > > long-term, it seems that pvmove needs space to create a mirror-lv whilst
> > > it is working and it seemed possible that the original problem was that
> > > this extra space wasn't there.
> >
> > As far as I know, you don't need extra space. The temporary mirror is
> > created to copy the data. I believe, it creates a corelog mirror and
> > should NOT need extra space. Let us hope someone responds from the
> > dm-devel list!
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm at redhat.com
> > https://www.redhat.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
More information about the linux-lvm
mailing list