[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 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'


Reply to: