> On 28 Aug 2024, at 18:28, R. Clayton <facto...@rclayton.org> wrote:
> 
> 'm guessing the implication is I can shift 100g or so from fedora-home to
> fedora-root instead of using bind mounts.

Yes that is what I would do.

You need to shrink /home and then you grow /.
I know you can grow an EXT4 LVM partition on-line, not sure about shrinking 
on-line.

Does anyone else know how to do the shrinking?

This is the script I use to grow a EXT4/LVM partition.

$ more grow-volume.sh
#!/bin/bash
NAME=${1:?volume name}
SIZE=${2:?volume size}

while read GROUP
do
    GROUP=${GROUP#*\"}
    GROUP=${GROUP%\"*}
    DEVICE=/dev/${GROUP}/${NAME}
    if [ -e $DEVICE ]
    then
        break
    fi
done < <(vgscan)

if [[ ! -e $DEVICE ]]
then
    echo "Error: Volume not found $DEVICE"
    exit 1
fi

echo -n "Grow ${DEVICE} size ${SIZE}GiB? "
read X
case "$X" in
yes)
    lvresize -L+${SIZE}G --resizefs ${GROUP}/${NAME}
    ;;
*)
    echo ignored
    ;;
esac



Barry

-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to