On 11/26/2016 11:53 AM, Paul Groves wrote:
I said to myself "I know! I could just use yast partitoner to shrink the logical volume for home by 20GiB then expand / by 20 to make it 40GiB" but NO! Yast cannot alter the size of BtrFS (root) or XFS (home) filesystems even though they are the default configuration! argh! I thought it was too simple (always a catch)!
See http://blog.endpoint.com/2015/01/shrink-xfs-partition-almost-possible.html One reason I continue to use ReiserFS is that I can shrink the file system.
Does anyone know a way around this before my server refuses to boot again due to 99% full / ? Help would be much appreciated.
I use LVM. I advocate using LVM. What I should say more often is that I am a bit minimalist about this. I don't simply do root/home split, I split what's under /home/anton: Documents, Downloads, Media and that into movies and music, Photographs. Yes, I use ext4 as well. Many of my subdirectories I can predict the file/size ratio pretty well and don't have a provisioning problem. Worst case, I can shrink-to-fit ext4 as well. It used to be that yes you needed as much swap as you had RAM, but those days are past. I run a 8G memory system with "only" 5G swap and I've never seen swap more than 2G occupied. The other thing is that while I use LVM I don't use all of the disk. I have 1T of LVM space but don't use nearly that, despite a huge amount devoted to movies, photographs and music. Unlike some people here I don't do data collection and I do do archiving. # pvscan -v PV /dev/sda3 VG vgmain lvm2 [924.06 GiB / 520.06 GiB free] Given that, I could, if it ever became critical, set up an additional swap area under LVM. You current swap is in LV, you say. Try scavenging 20G of that to add to your rootFS. That still leaves you 4G of swap. How much swap do you need? You can monitor it with 'swapon -s' or in real-time with 'htop' in a root vtty. Linux is pretty smart about memory. I use KDE4 with two Firefox windows each with about 430 to 60 tabs, Thunderbird with 14 IMAP and throw open my photo-editor, Darktable, and 'swapon -s' still says I'm not using swap. If needed, you can flush swap by using 'swapoff' the bring it back with 'swapon' after you've shrunk that partition. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org