[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No space left on device (28) but device is NOT full!



On Wed, Nov 6, 2013 at 4:43 PM, Neal Murphy <neal.p.murphy@alum.wpi.edu> wrote:
> On Wednesday, November 06, 2013 07:44:18 AM Wawrzek Niewodniczanski wrote:
>>
>> This is a bit off main topic, but definitely 'on' for this list. Lets
>> imagine a scenario there is nothing to delete on the troublesome
>> partition, but there is another disk. What would be the best tool to
>> move data to another partition having the same size, but higher number
>> of inodes?
>
> Assuming the problem is /var/log is part of the root filesystem and is crammed
> with millions of files. Assume other drive is /dev/sdb. The general process is
> as follows.
>
> 1. Reboot to single-user
> 2. Add partition #1 to /dev/sdb
> 3. 'mkreiserfs /dev/sdb1'  # to avoid the whole issue of inodes
> 4. 'mount /dev/sdb1 /mnt'
> 5. 'cd /var/log; find . -depth | cpio -pdv /mnt'
> 6. 'if [ $? -eq 0 ]; then cd ..; mv log log-; rm -rf log-; fi&'
> 7. 'mkdir log; chmod 755 log
> 8. 'echo "/dev/sdb1 /var/log reiserfs defaults,notail 0 1" >> /etc/fstab'
> 9. 'wait'
> 10. 'umount /mnt; init 6'

Recommending the use of reiserfs is wrong. The Debian installer's
development version's kernel no longer supports reiserfs (see [1]) so
it's safe to assume that reiserfs support'll be dropped from Debian at
some point. You'd have to ask the Debian kernel maintainers whether
it'll be dropped in Debian 8 or 9.

[1] From the "linux (3.10.1-1)" changelog:

  * udeb: Remove obsolete and unsupported drivers and filesystems
    - Remove ppa from scsi-modules
    - Remove floppy-modules, irda-modules, parport-modules, plip-modules,
      qnx4-modules, reiserfs-modules, ufs-modules

 -- Ben Hutchings <ben@decadent.org.uk>  Tue, 16 Jul 2013 02:06:53 +0100


Reply to: