I did all the fsck, resize2fs, lvresize, pvresive, parted, etc. stuff and was very careful about what I was doing, but clearly wasn't careful enough. I did backup lv_root to another drive with fsarchiver before I buggered things up, but I can't restore it because, well... I don't know! At this point I'd really just like to wipe the drive I messed up except for /boot and start over but I don't know how to do that when the system seems to think the drive is mounted when it ISN'T.
Here's some info:
- device is /dev/sdb with sdb1 as /boot and sdb2 a lvm2 volume group containing lv_root and lv_swap -- it was a default Fedora 11 installation that used up the whole drive
- i did nothing to /boot and it seems to be fine, grub loads, choosing Fedora 11 shows the logo but quickly becomes a black screen, choosing Fedora 15 Live USB that I originally added from Fedora 11 works just fine (currently trying to fix things from Fedora 15)
- i deleted and recreated lv_swap and it still shows up in /dev/vg_box
- i shrunk lv_root and the filesystem is within the right size of the lv, which is within the right size of the pv, which is within the right size of the partition, which i made sure i used the right sectors, but lv_root does not show up in /dev/vg_box
- lvscan says both lv_swap and lv_root are active but lvdisplay says lv_root is "NOT available"
- system thinks /dev/sdb2 is mounted even though it ISN'T and can't seem to do ANYTHING to it because of this
lvchange -ay /dev/vg_box gives:
Code:
device-mapper: resume ioctl failed: Invalid argument
Unable to resume vg_box-lv_root (253:2)
lvchange -an /dev/vg_box gives:
Code:
LV vg_box/lv_swap in use: not deactivating
umount /dev/vg_box/lv_swap gives:
Code:
umount: /dev/vg_box/lv_swap: not mounted
...I should have been writing stuff down as I was going. I can't think of what other errors I came across that might have helped more.
Also I'm extremely tired right now so I apologize if I'm not explaining things well enough.