"Device is busy" message when trying to resize filesystem on encrypted LVM
Hi there,
I tried to extend my /home-partition on my CentOS 7.0.1406 installation today, following this guide: http://www.thomas-krenn.com/de/wiki/...C3%B6%C3%9Fern (which is in German) Everything went perfectly until the step where I resize the underlying filesystem (which is ext4) with the command: Code:
resize2fs -p /dev/dm-1 The error I get is: Code:
"Invalid magic number in the superblock when trying to open /dev/dm-1. Cannot find a valid filesystem superblock." When I check my logical volumes with "lvdisplay", it displays: Code:
lvdisplay Code:
resize2fs -p /dev/cl/00 Code:
"Device or resource is busy when trying to open /dev/cl/00. Cannot find a valid filesystem superblock." The system is CentOS 7.0.1406, freshly installed, with the following partition layout (two HDDs -> 500GB on /dev/sda and 20GB SSD on /dev/sdb): /dev/sda1 -> Windows boot partition /dev/sda2 -> Windows partition /dev/sda3 -> Linux SWAP partition /dev/sda4 -> extended partition containing: /dev/sda5 -> ext4 partition for CentOS 6.5 (my old system, still running in triple boot here) /dev/sda6 -> the first partition I added to the LVM /dev/sda7 -> the second partition I added to the LVM /dev/sda8 -> ext4 encrypted LVM volume containing the /home-partition of CentOS 7 /dev/sdb1 -> CentOS 7's root-partition (not part of the LVM, not encrypted) Why do I get the errors? Because my /home is mounted when I try resizing? But I thought ext4 can do online resize? Or is it because it's encrypted? Thanks in advance! ;) rokyo |
I also tried booting into CentOS (but not logging into the Gnome session), then switching to a new shell by hitting "ctrl-alt-f2", logging in as root, unmounting the /dev/dm-1 partition with
Code:
umount /dev/dm-1 Code:
resize2fs -p /dev/dm-1 |
All times are GMT -5. The time now is 08:09 PM. |