Hi!
I’ve just upgraded to 15.3 and after a lot of upgrading failures due to root partition getting full, the upgrade finally was succesful. But, the following reboot got be to the menu of chosing suse version, and the following boot just got me to the console
Entering emergency mode. Exit the shell to continue.
Type "journalctl"...want to save "/run/initramfs/rdsosreport.txt...
Press Enter for maintenance
(or press Control-D to continue):
So, rebooting with knoppix and mounting the partitions, shows me the root is once again full. Seems like the upgrade is fine - os-release
NAME="openSUSE Leap"
VERSION="15.3"
...
I’m pretty sure I’ve tried everything there is to try, including
https://en.opensuse.org/SDB:BTRFS
My last idea was to decrease my home partition and then increase the root, but to my utter dismay I got painfully aware of the fact that my home is xfs, which can not be decreased. So, now I’m totally out of ideas, until I saw this thread
https://forums.opensuse.org/showthread.php/549443-Root-Partition-Full-and-out-of-ideas
Is this the only solution that will work? If I understand the solution correctly
*1. boot with knoppix
2. mount the root partition
***3. mount a USB stick with a btrfs partitioned file system
4. spread its data to include the new space
5. check the progress of 4.
6. reboot
**Hopefully I can do some cleaning when I can boot properly into the os?
But how do I then get rid of the USB, later on?
I do not get the quite huge diff between df and du, though.
knoppix@Microknoppix:~$ sudo btrfs subvolume list /mnt/mlroot
ID 257 gen 17693 top level 5 path @
ID 258 gen 358825923 top level 257 path @/.snapshots
ID 259 gen 358826178 top level 258 path @/.snapshots/1/snapshot
ID 260 gen 358820892 top level 257 path @/opt
ID 261 gen 358823391 top level 257 path @/srv
ID 262 gen 358825939 top level 257 path @/tmp
ID 263 gen 358821445 top level 257 path @/usr/local
ID 264 gen 358825890 top level 257 path @/var/crash
ID 265 gen 358825890 top level 257 path @/var/lib/libvirt/images
ID 266 gen 358825890 top level 257 path @/var/lib/mailman
ID 267 gen 358825890 top level 257 path @/var/lib/mariadb
ID 268 gen 358825890 top level 257 path @/var/lib/mysql
ID 269 gen 358825890 top level 257 path @/var/lib/named
ID 270 gen 358825890 top level 257 path @/var/lib/pgsql
ID 271 gen 358825939 top level 257 path @/var/log
ID 272 gen 358825890 top level 257 path @/var/opt
ID 273 gen 358825935 top level 257 path @/var/spool
ID 274 gen 358825939 top level 257 path @/var/tmp
ID 477 gen 358825892 top level 257 path @/var/lib/machines
ID 701 gen 358182513 top level 258 path @/.snapshots/327/snapshot
ID 1812 gen 358427103 top level 258 path @/.snapshots/368/snapshot
ID 2213 gen 358821988 top level 258 path @/.snapshots/702/snapshot
ID 2214 gen 358822003 top level 258 path @/.snapshots/703/snapshot
ID 2215 gen 358823162 top level 258 path @/.snapshots/704/snapshot
ID 2216 gen 358823992 top level 258 path @/.snapshots/705/snapshot
ID 2217 gen 358824152 top level 258 path @/.snapshots/706/snapshot
ID 2218 gen 358824215 top level 258 path @/.snapshots/707/snapshot
ID 2219 gen 358825703 top level 258 path @/.snapshots/708/snapshot
ID 2220 gen 358825707 top level 258 path @/.snapshots/709/snapshot
ID 2221 gen 358825849 top level 258 path @/.snapshots/710/snapshot
ID 2223 gen 358825911 top level 258 path @/.snapshots/712/snapshot
ID 2224 gen 358825914 top level 258 path @/.snapshots/713/snapshot
ID 2225 gen 358825919 top level 258 path @/.snapshots/714/snapshot
ID 2226 gen 358825922 top level 258 path @/.snapshots/715/snapshot
knoppix@Microknoppix:/mnt$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 vfat FAT16 C692-5146
├─sda2 vfat FAT16 C698-154F
├─sda3 btrfs 3108ecde-f6d6-4762-b060-31702758b087
└─sda4 crypto_LUKS 1 a9152bd7-7626-4815-827f-b5800bf04220
└─sda4_crypt LVM2_member LVM2 001 vm2hbF-69ii-TGky-EXiD-Y30T-6o5S-LnQYra
├─system-home xfs 17bd013b-f79c-4c1f-940d-7e8ad440b3a2
├─system-root btrfs 5a9113c5-293c-4c62-b02a-4d7922d1cbc2
└─system-swap swap 1 ab896a01-ebfe-494c-b20b-ecba8d64fe55
sdb
└─sdb1 vfat FAT32 KNOPPIX_9 3A95-D1A2 3.2G 57% /mnt-system
cloop0 0 100% /KNOPPIX
cloop1 0 100% /KNOPPIX1
zram0 [SWAP]
knoppix@Microknoppix:~$ sudo du -sm /mnt/mlroot/
13087 /mnt/mlroot/
knoppix@Microknoppix:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 8136832 56 8136776 1% /
/dev/sdb1 7969792 4562104 3407688 58% /mnt-system
tmpfs 13021184 175512 12845672 2% /ramdisk
/dev/cloop 1914264 1914264 0 100% /KNOPPIX
/dev/cloop1 10092658 10092658 0 100% /KNOPPIX1
unionfs 13021184 175512 12845672 2% /UNIONFS
tmpfs 20480 3728 16752 19% /run
tmpfs 10240 4 10236 1% /UNIONFS/var/lock
tmpfs 102400 84 102316 1% /UNIONFS/var/log
tmpfs 2097152 16828 2080324 1% /tmp
cgroup 12 0 12 0% /sys/fs/cgroup
udev 8136844 0 8136844 0% /dev
tmpfs 2097152 212868 1884284 11% /dev/shm
/dev/mapper/system-home 104806400 102820224 1986176 99% /mnt/mlhome
/dev/mapper/system-root 41943040 41740040 27096 100% /mnt/mlroot
knoppix@Microknoppix:~$ btrfs filesystem df /mnt/mlroot
Data, single: total=37.37GiB, used=37.35GiB
System, DUP: total=32.00MiB, used=16.00KiB
Metadata, DUP: total=1.28GiB, used=1.18GiB
GlobalReserve, single: total=106.44MiB, used=0.00B
knoppix@Microknoppix:~$ btrfs filesystem show
Label: none uuid: 3108ecde-f6d6-4762-b060-31702758b087
Total devices 1 FS bytes used 313.49MiB
devid 1 size 408.00MiB used 408.00MiB path /dev/sda3
Label: none uuid: 5a9113c5-293c-4c62-b02a-4d7922d1cbc2
Total devices 1 FS bytes used 38.52GiB
devid 1 size 40.00GiB used 40.00GiB path /dev/mapper/system-root
knoppix@Microknoppix:~$ sudo btrfs fi balance start /mnt/mlroot -dusage=5
Done, had to relocate 0 out of 56 chunks
knoppix@Microknoppix:/mnt$ sudo btrfs check /dev/mapper/system-root
Opening filesystem to check...
Checking filesystem on /dev/mapper/system-root
UUID: 5a9113c5-293c-4c62-b02a-4d7922d1cbc2
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 41366249472 bytes used, no error found
total csum bytes: 39117096
total tree bytes: 1263943680
total fs tree bytes: 1152221184
total extent tree bytes: 60784640
btree space waste bytes: 209058387
file data blocks allocated: 233632456704
referenced 54615527424
knoppix@Microknoppix:/mnt$ sudo btrfs filesystem usage -T /mnt/mlroot/
Overall:
Device size: 40.00GiB
Device allocated: 40.00GiB
Device unallocated: 1.00MiB
Device missing: 0.00B
Used: 39.70GiB
Free (estimated): 32.84MiB (min: 32.84MiB)
Free (statfs, df): 32.84MiB
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 106.44MiB (used: 0.00B)
Multiple profiles: no
Data Metadata System
Id Path single DUP DUP Unallocated
-- ----------------------- -------- -------- -------- -----------
1 /dev/mapper/system-root 37.37GiB 2.56GiB 64.00MiB 1.00MiB
-- ----------------------- -------- -------- -------- -----------
Total 37.37GiB 1.28GiB 32.00MiB 1.00MiB
Used 37.34GiB 1.18GiB 16.00KiB
Cheers
Peter