[Bug 1089195] Re: linux-headers will eat your inodes on LTS.

2016-02-07 Thread algal
@pabouk Hi. Thanks so much for the help!

In fact I wasn't able to use apt-get remove, because it tried to do apt-
get update first, which failed because of the inode exhaustion.

I wasn't comfortable removing anything manually because I didn't know
which files were safe to remove. All but one of  the surplus packages in
/usr/src were for a linux headers higher than my current linux version,
so for all I know the system might depend on them in some way when it
tries to upgrade itself from the current version. I erased the one,
older package, but this did not free enough inodes to allow any
operations to complete.

All of the linux headers were piling up in /usr/src. In the end I
resolved the process by doing the following:

1. attaching a much larger new volume, formating it, and mounting it on /mnt
2. cp -a /usr/src/* /mnt   # to copy all the linux headers onto the other volume
3. rm -rf /usr/src/*# to remove them from the root volume
3. unmount the new volume mounted at /mnt   
4. remount the volume at /usr/src

By this sequence of operations, I exactly preserved the structure of
files and folders on the filesystem, while changing how the inode usage
was distributed over partitions. So that relieved the inode exhaustion.

Then I was able to use apt-get update, and apt-get autoremove, etc.. to
completed the pending upgrades and remove the unused packages.

My big takeaway from this is that I was naive to think unattended-
upgrades could run for years unattended, like a router.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1089195

Title:
  linux-headers will eat your inodes on LTS.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1089195/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1089195] Re: linux-headers will eat your inodes on LTS.

2016-02-05 Thread algal
I have just encountered this issue on an Ubuntu 14.04 LTS instance. It
was setup in early 2014, and has had only a light workload serving an
API backend for a medical education system in use by many doctors.

Ironically, it seems to be _because_ I enabled unattended-upgrades that
the system now cannot update itself.

And I not sure how to repair this situation without interrupting
service, since many package management commands depend on first doing
apt-get update, which is what I cannot do. And I don't think I
understand the system well enough to be sure that if I erase something
manually it is not critical.

If anyone has advice on this, I'd appreciate, even if only pointers to
books on more esoteric aspects of Ubuntu package management.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 12.04.4 LTS
Release:12.04
Codename:   precise

$ df -h
Filesystem  Size  Used Avail Use% Mounted on
/dev/xvda1  7.9G  5.9G  1.7G  78% /
udev288M   12K  287M   1% /dev
tmpfs60M  196K   59M   1% /run
none5.0M 0  5.0M   0% /run/lock
none296M 0  296M   0% /run/shm

$ df -i
Filesystem Inodes  IUsed IFree IUse% Mounted on
/dev/xvda1 524288 518210  6078   99% /
udev73475379 730961% /dev
tmpfs   75541266 752751% /run
none75541  3 755381% /run/lock
none75541  1 755401% /run/shm

$ find /usr/src/ -type f | wc -l
345657

$ uptime
 06:18:41 up 664 days, 11:16,  2 users,  load average: 0.21, 0.20, 0.13

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1089195

Title:
  linux-headers will eat your inodes on LTS.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1089195/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1089195] Re: linux-headers will eat your inodes on LTS.

2016-02-05 Thread algal
(Correction: it's a 12.04 LTS installation, as the console output
shows.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1089195

Title:
  linux-headers will eat your inodes on LTS.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1089195/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs