Soldato
- Joined
- 18 May 2010
- Posts
- 22,937
- Location
- London
Think I may have made a mistake and was wondering if it's possible to rescue the situation.
I wanted to reduce /home and increase / (root)
/home was mounted on lv_home (443GiB) and / was mounted on lv_root (50GiB).
I wanted to reduce home by 350GB and give this space to /
I only got as far as trying to reduce home and now cant mount the home directory this is what I did:
sudo umount -v /home
e2fsck -ff /dev/mapper/lv_home
sudo e2fsck -ff /dev/mapper/lv_home
sudo resize2fs /dev/mapper/lv_home 350G
df -h
sudo lvreduce -L -350G /dev/mapper/lv_home
sudo mount /dev/mapper/lv_home /home
I get a message:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/lv_home,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
I followed the instructions from the first guide I found which I now see are different to another guide. lv_home is showing up as about 100G but with the error above.
---
My question is, how do I rescue this situation? Can I just format using fdisk the /dev/mapper/lv_home volume and then mount /home?
Or am I looking at having to rebuild the server?
---
Looking at the dmesg log it shows this:
EXT4-fs (dm-2): bad geometry: block count 91750400 exceeds size of device (24543232 blocks)
I wanted to reduce /home and increase / (root)
/home was mounted on lv_home (443GiB) and / was mounted on lv_root (50GiB).
I wanted to reduce home by 350GB and give this space to /
I only got as far as trying to reduce home and now cant mount the home directory this is what I did:
sudo umount -v /home
e2fsck -ff /dev/mapper/lv_home
sudo e2fsck -ff /dev/mapper/lv_home
sudo resize2fs /dev/mapper/lv_home 350G
df -h
sudo lvreduce -L -350G /dev/mapper/lv_home
sudo mount /dev/mapper/lv_home /home
I get a message:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/lv_home,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
I followed the instructions from the first guide I found which I now see are different to another guide. lv_home is showing up as about 100G but with the error above.
---
My question is, how do I rescue this situation? Can I just format using fdisk the /dev/mapper/lv_home volume and then mount /home?
Or am I looking at having to rebuild the server?
---
Looking at the dmesg log it shows this:
EXT4-fs (dm-2): bad geometry: block count 91750400 exceeds size of device (24543232 blocks)
Last edited: