You are not logged in.

#1 2014-04-22 18:08:29

raavas
Member
Registered: 2011-10-21
Posts: 88

[solved] Space ran out while updating (-Syu), now what?

I had a mirror sync issue and a few days of holiday whilst away from the computer. Now I tried to do a full update, and ran out of hard drive space. Can the partition be enlarged "live" and not lose everything in the process?

The system still works ok because pacman is still working on it an I have not restarted. I'm currently frantically backing up data in case of a total loss, but if that can be avoided it'd be great.

Last edited by raavas (2014-04-22 18:43:48)

Offline

#2 2014-04-22 18:10:38

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [solved] Space ran out while updating (-Syu), now what?

just remove some old packages from /var and that should give you enough space to atleast complete the update.

pacman -Scc

Then definitely take a backup and increase the space in the relevant partitions.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2014-04-22 18:25:59

raavas
Member
Registered: 2011-10-21
Posts: 88

Re: [solved] Space ran out while updating (-Syu), now what?

I tried pacman -Sc, but it says there is a lock on. Can I remove the lock safely during the update?

Offline

#4 2014-04-22 18:31:54

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [solved] Space ran out while updating (-Syu), now what?

as long as you are not running another instance of pacman doing anything else, it should be ok. So kill any instance of pacman or let them complete, then remove the db lock if needed and try cleaning the cache again.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2014-04-22 18:36:22

raavas
Member
Registered: 2011-10-21
Posts: 88

Re: [solved] Space ran out while updating (-Syu), now what?

Ok, thanks. Pacman is currently running, and waiting for the space to be freed

Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
140422 20:43:22 [ERROR] mysqld: Error writing file '/var/lib/mysql/aria_log_control' (Errcode: 28)
140422 20:43:22 [ERROR] mysqld: Got error 'Can't create file' when trying to use aria control file '/var/lib/mysql/aria_log_control'
140422 20:43:22 [ERROR] Plugin 'Aria' init function returned error.
140422 20:43:22 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
140422 20:43:22 [Warning] mysqld: Disk is full writing './mysql-bin.~rec~' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
140422 20:43:22 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs
140422 20:53:22 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs
140422 21:03:22 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs
140422 21:13:22 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs
140422 21:23:22 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs
140422 21:33:22 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs

In the meantime I'll just keep removing old packages manually.

Offline

#6 2014-04-22 18:39:39

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [solved] Space ran out while updating (-Syu), now what?

if your pacman is stuck because the disk is full -- as is the case in the log you provided, why don't you simply kill pacman, clean the cache and then try to update again ?

Or you could manually remove the packages from /var. Up to you.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2014-04-22 18:43:30

raavas
Member
Registered: 2011-10-21
Posts: 88

Re: [solved] Space ran out while updating (-Syu), now what?

It seems to be ok now, I'll try to restart in a bit. Thanks for the advice, most appreciated! Next task will be to adjust the partition size if the restart goes well.

I did not dare to kill pacman, there has been too many horror stories about such things...

Offline

Board footer

Powered by FluxBB