Re: Bind mounting hogs.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 28 Aug 2024, at 18:28, R. Clayton <factotum@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux