Summary: | LVM2: can't pvmove | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Aben Siatris <aben> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | agk, kernel |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Aben Siatris
2004-10-16 12:05:33 UTC
device-mapper is version 1.00.17-r1 Which kernel did this last work in? tested with same output on kernel gentoo-dev-2.6.8-r3/r7/r10(latest stable) That didn't really answer the question, or is it that this has never worked? never worked on my linux box. Ok, not really sure this is a kernel issue then. Maybe the LVM maintainer can provide some insight? what can i now do? /dev/vg0/home is not available :(((((((((( homebox root # lvdisplay Logging initialised at Tue Nov 9 16:00:39 2004 Set umask to 0077 Finding all logical volumes --- Logical volume --- LV Name /dev/vg0/home VG Name vg0 LV UUID bW03Jt-g43u-lWwd-FAY7-uR2F-mxW0-FjNSTB LV Write Access read/write LV Status NOT available LV Size 2,00 GB Current LE 512 Segments 1 Allocation next free (default) Read ahead sectors 0 --- Logical volume --- LV Name /dev/vg0/downloads VG Name vg0 LV UUID 99xYvA-iWOj-2TYy-rz1q-cJM8-1ft2-aNmjXq LV Write Access read/write LV Status NOT available LV Size 8,00 GB Current LE 2048 Segments 2 Allocation next free (default) Read ahead sectors 0 --- Logical volume --- LV Name /dev/vg0/pvmove0 VG Name vg0 LV UUID wySJu2-AVNS-c1Zp-p7Nm-4WNr-YM61-HAfNuh LV Write Access read/write LV Status available # open 0 LV Size 4,66 GB Current LE 1192 Segments 2 Allocation contiguous Read ahead sectors 0 Block device 252:0 $ vgcfgrestore $ lvchange /dev/vg0/home -a y and now is all ok. data is not corrupted. but problem with pvmove is in two different computers: tested kernels: gentoo-dev-2.6.8 gentoo-dev-2.6.9 and love-sources-2.6.9 In my case pmmove trashed 1Tb of data NOT on LVM-based partitions (on the same drives). Yes, I have backups and yes, I have sha1sum's for most of data so restore is possible, yet... it's not what I want to do on my weekend. Kernel 2.6.9-r3 ... If you had kept your LVM2 tools up-to-date from upstream, you'd get a more useful error message, telling you that your kernel does not contain support for pvmove: you need a 2.6.9 kernel. now i have sys-fs/lvm2-2.00.25 to this day I have tested following kernels: linux-2.6.9-gentoo-r4 linux-2.6.9-nitro3 linux-2.6.10-rc2-mm2 linux-2.6.9-rc4-love1 and I'm still getting the same error over and over again. I am bit worried about my data, so I will perform these tests in wmvare environment last output form 2 computers (fist original, second vmware) kernel: linux-2.6.9-gentoo-r4 lvm2: sys-fs/lvm2-2.00.25 device-mapper: sys-libs/device-mapper-1.00.19-r1 ... Archiving volume group "vg0" metadata. Creating logical volume pvmove0 Getting target version for mirror dm version dm versions mirror: Required device-mapper target(s) not detected in your kernel Unlocking /var/lock/lvm/V_vg0 Closed /dev/sda12 Closed /dev/sda8 Closed /dev/sda7 Closed /dev/sda9 Closed /dev/sda10 Closed /dev/sda11 pvmove stoped, and not corrupts any PV/LV data or VG metadata. homebox root # pvmove /dev/sda12 Logging initialised at Sat Dec 4 09:44:54 2004 Set umask to 0077 Finding volume group "vg0" Archiving volume group "vg0" metadata. Creating logical volume pvmove0 Moving 512 extents of logical volume vg0/home Moving 680 extents of logical volume vg0/downloads Moving 0 extents of logical volume vg0/opt Moving 0 extents of logical volume vg0/virtual Moving 0 extents of logical volume vg0/media Found volume group "vg0" Found volume group "vg0" Updating volume group metadata Creating volume group backup "/etc/lvm/backup/vg0" Found volume group "vg0" Found volume group "vg0" Found volume group "vg0" Loading vg0-pvmove0 Found volume group "vg0" Loading vg0-home Found volume group "vg0" Loading vg0-downloads Checking progress every 15 seconds /dev/sda12: Moved: 4,6% /dev/sda12: Moved: 9,3% /dev/sda12: Moved: 13,9% /dev/sda12: Moved: 18,6% /dev/sda12: Moved: 23,2% /dev/sda12: Moved: 27,8% /dev/sda12: Moved: 32,4% /dev/sda12: Moved: 37,1% /dev/sda12: Moved: 41,7% /dev/sda12: Moved: 43,0% Updating volume group metadata Creating volume group backup "/etc/lvm/backup/vg0" Found volume group "vg0" Found volume group "vg0" Found volume group "vg0" Found volume group "vg0" Loading vg0-pvmove0 Found volume group "vg0" Loading vg0-home Found volume group "vg0" Loading vg0-downloads /dev/sda12: Moved: 47,6% /dev/sda12: Moved: 52,2% /dev/sda12: Moved: 57,0% /dev/sda12: Moved: 61,6% /dev/sda12: Moved: 66,4% /dev/sda12: Moved: 71,0% /dev/sda12: Moved: 75,8% /dev/sda12: Moved: 80,4% /dev/sda12: Moved: 85,2% /dev/sda12: Moved: 89,8% /dev/sda12: Moved: 94,4% /dev/sda12: Moved: 98,9% /dev/sda12: Moved: 100,0% Found volume group "vg0" Found volume group "vg0" Found volume group "vg0" Found volume group "vg0" Loading vg0-pvmove0 Found volume group "vg0" Loading vg0-home Found volume group "vg0" Loading vg0-downloads Found volume group "vg0" Found volume group "vg0" Removing temporary pvmove LV Writing out final volume group after pvmove Creating volume group backup "/etc/lvm/backup/vg0" All now works fine kernel: linux-2.6.9-gentoo-r6 (.config from linux-2.6.9-gentoo-r4) lvm2: sys-fs/lvm2-2.00.25 device-mapper: sys-libs/device-mapper-1.00.19-r1 |