On 26/11/16 17:12, Andrei Borzenkov wrote:
26.11.2016 19:53, Paul Groves пишет:
Hi,
I have a server on opensuse 42.1 and my root partition keeps getting full. The first time I just deleted everything in /tmp /var/log and also all the snapper snapshots which cleared it up (11% use), but this time I am still 55% full!
Please show "btrfs fi usage /"
My set up is 2 128GB ssds in a raid mirror
there is a logical volume group here vg0
then there is a 24GiB lv for swap, 20GiB lv for / and 67.77GiB for /home
I notice the recommended / partition on 42.1 is 40gb not 20 like previous opensuse versions, but this was an upgrade from 13.1 through 13.2 then 42.1 so was always the same.
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)!
That's correct - it is not possible to reduce size of XFS. Do you really need 24GiB for swap? Do you have 24GiB of RAM and hibernate often?
Does anyone know a way around this before my server refuses to boot again due to 99% full / ? Help would be much appreciated.
Thank you
Paul
Here is the output, I have cleared all the snapper files since so have more space at the moment. server5:/# btrfs fi usage / Overall: Device size: 20.00GiB Device allocated: 18.16GiB Device unallocated: 1.84GiB Device missing: 0.00B Used: 7.54GiB Free (estimated): 10.91GiB (min: 9.99GiB) Data ratio: 1.00 Metadata ratio: 2.00 Global reserve: 112.00MiB (used: 0.00B) Data,single: Size:16.03GiB, Used:6.96GiB /dev/mapper/vg0-root 16.03GiB Metadata,DUP: Size:1.03GiB, Used:293.69MiB /dev/mapper/vg0-root 2.06GiB System,DUP: Size:32.00MiB, Used:16.00KiB /dev/mapper/vg0-root 64.00MiB Unallocated: /dev/mapper/vg0-root 1.84GiB the home partition is xfs. Could I somehow get rid of the home partition (merge it back into root). This is not needed because the data is in /srv Yes I do have a use for the 24gb swap (I have 24gb RAM). I am planning to set it up so that when my UPS is activated in a power cut the server should hibernate. (I have not looked into this yes but I have an APC back-ups CS-650 with a usb lead so should be easy once I know how). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org