On Sun, Jul 03, 2022 at 11:31:40AM +0200, Miroslav Skoric wrote: > Hi all, > > Yesterday I attempted to upgrade Compaq Presario CQ56 laptop to buster. I > followed instructions in 'Chapter 4. Upgrades from Debian 9 (stretch)', so > all went well with a minimal upgrade (apt-get upgrade). When it finished, I > went to the main part of the upgrade (apt full-upgrade). It ran well until > some 40-45% and then started complaining about lack of disk space. > > (apt -o APT::Get::Trivial-Only=true full-upgrade did not say I shall get > into any trouble.) > > So, at one point the full upgrade just exited. I tried to uninstall some old > stuff but it was not possible. df -h showed that / and /usr were almost 100% > used. > > Shutdown & reboot seemed going normally, although including few [FAILED] > warnings mostly with firewall failed to start and like. Majority went [OK] > until the point where it was about to perform fsck on mounted volumes where > it looks as an endless process occasionally repeating this line: > > [nnn.nnnnnn] perf: interrupt took too long (nnnn > nnnn), lowering > kernel.perf_event_max_sample_rate to nnnnn > > where 'n' are numbers. > > Ctrl-Alt-F2 brings tty2 from where I can log in, then sudo etc. df -h shows > that filesystem /dev/mapper/localhost-root (mounted on /) is 99% used, and > /dev/mapper/localhost-usr (mounted on /usr) is 100% used. >
Apt tends to store files in /var - it's possible that /var is also full. If you repeat an apt-get update - do you have errors about needing to rerun a configure step? In thi situation, I might be tempted to save off any data in /home and any options in /etc/ to configure mail and things like that and do a reinstall with Debian 11 as a quick fix but that's a destructive option. apt-get clean may clear out some downloaded packages and provide some space. > As it is (an encrypted) LVM, where /dev/mapper/localhost-home (mounted on > /home) is only 21% used, I suppose that it shall be possible to resize > partitions i.e. logical volumes so that some space of /home to be assigned > to / and /usr > When you installed, did you manually specify sizes for filesystems or did you say "install in one encrypted LVM"? If you did that then, effectively, /home and so on are auto-sized and LVM is keeping track of free space. Deleting unwanted files is the only way to reclaim space and then, perhaps resize. There's a reason that I install into one filesystem if I can - manual sizing and partitioning rarely works unless you have a specific use. On one machine here I have a 7TB /srv partition deliberately because it's full of data that I want to serve out via a webserver - in any other machine, I'd probably have said use the whole 8TB filesystem and auto partition. > It seems that resize2fs, lvextend, and some related commands are available > in tty2, but I am unsure about the proper order & syntax of those commands. > Also, what about the ongoing fsck process in tty1? Any suggestion? > Good luck with it all - with every good wish, as ever, Andy Cater > Misko >