Hot answers tagged

3

Unfortunately, the problem is most likely the first command you listed: lvresize -L-20G /dev/mapper/volgroup0-lv_home Without the -r option, this command will just shrink the logical volume, and assume that the filesystem inside it is already shrunk appropriately. You don't mention which filesystem type you are using, but many filesystems allow shrinking ...


2

I'm not sure if it's possible to handle this corner case with parted in a script (short of re-creating the partition table from scratch). Unfortunately, parted is an interactive program first and scriptable second. You can use sgdisk --move-second-header instead, then continue with parted afterwards (or script everything with sgdisk if you prefer, but then I ...


2

Create a partition on sdb (optional you can use the entire disk) with fdisk or parted. Create physical volume on the partition: pvcreate /dev/sdb1. Add the new PV to you existing VG: vgextend server-vg /dev/sdb1. If you are doing this to resize your root LV, you can do that by lvresize --resizefs -L+800G server-vg/root. (-L+800G means to grow it by 800 GiB, ...


1

Update Jan 17, 2022: the issue was fixed in this pull request: https://github.com/storaged-project/udisks/pull/949 I was affected by the same issue and narrowed it down to the same root cause as you, but found your question only after the fact. Additionally, I was able to correlate the issue with udisks2 >= 2.7.6. So if you require MMP, you might want to ...


1

This is a long-standing Debian bug (albeit a cosmetic one). Check out this bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544651 If it bothers you, patch it like so: --- /usr/share/initramfs-tools/scripts/local-top/lvm2 2017-03-17 19:03:07.000000000 +0300 +++ /etc/initramfs-tools/scripts/local-top/lvm2 2019-08-17 17:40:29.371725145 +0300 @@ -...


1

Adding rd.md=1 and rd.md.conf=1 and rd.auto=1 parameter to the GRUB_CMDLINE_LINUX variable in /etc/default/grub, and then regenerating the grub config fixed a similar issue of mine. These parameters are zero by default (dracut.cmdline documentation does not state it explicitly but they are). Of course adding rd.md.uuid alone also works, because this ...


1

I'm using RHEL7 and needed to extend /var. I'm no expert, but any time I tried to umount /var to resize2fs it failed because unsurprisingly it was in use. After a couple of days of trial and error I got this to work for me. First, add Space to the disk in VMWare vSphere (or whatever hypervisor you're using I suppose.) Then on the RHEL7 VM as root I followed ...


Only top voted, non community-wiki answers of a minimum length are eligible