It all began a couple weeks ago:
- When I try to use vi I get
"E297: Write error in swap file
$ echo "test" > test
produces-bash: echo: write error: No space left on device
- My bash history is always empty
Is not my quota as it happens with all users.
Other than that the server seems to be just fine...
I think it may be the root / swap but I don't know how to fix it.
Here is some information I think might be usefull:
$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/fileserver--00-root
224G 212G 0 100% /
none 995M 192K 995M 1% /dev
none 1000M 0 1000M 0% /dev/shm
none 1000M 14M 986M 2% /var/run
none 1000M 0 1000M 0% /var/lock
none 1000M 0 1000M 0% /lib/init/rw
/dev/sdb1 1.4T 1006G 356G 74% /cubo/d2p1
/dev/sdc1 459G 416G 39G 92% /cubo/d3p1
/dev/sda1 228M 17M 199M 8% /boot
192.168.1.7:/nfs/Backups
1.8T 1.2T 645G 65% /cubo/nfsMounts/ixBackup
Also:
$ ll /dev/mapper/
total 0
crw-rw---- 1 root root 10, 59 2013-04-11 12:54 control
brw-rw---- 1 root disk 251, 0 2013-04-11 12:54 fileserver--00-root
brw-rw---- 1 root disk 251, 1 2013-04-11 12:54 fileserver--00-swap_1
Additional information
$ sudo dmsetup status
fileserver--00-swap_1: 0 11993088 linear
fileserver--00-root: 0 475701248 linear
And:
$ sudo dmsetup info
Name: fileserver--00-swap_1
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 251, 1
Number of targets: 1
UUID: LVM-z7USJS3uIlf3VVUPeDeE0TzljgezS31fcvrwZihBYEENf5Tkgsyb9xJHo3RNVXsT
Name: fileserver--00-root
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 251, 0
Number of targets: 1
UUID: LVM-z7USJS3uIlf3VVUPeDeE0TzljgezS31fdr57i4JAzZxlK6KeTOWDTm6bzUKK87J1
My root folders size:
$ cd /
$ sudo du -sh {bin,boot,cdrom,dev,etc,home,lib,lost+found,media,mnt,opt,proc,root,sbin,selinux,srv,sys,tmp,usr,var}
7.4M bin
17M boot
4.0K cdrom
192K dev
39M etc
1.1M home
154M lib
16K lost+found
4.0K media
4.0K mnt
4.0K opt
du: cannot access `proc/21251/task/21251/fd/4': No such file or directory
du: cannot access `proc/21251/task/21251/fdinfo/4': No such file or directory
du: cannot access `proc/21251/fd/4': No such file or directory
du: cannot access `proc/21251/fdinfo/4': No such file or directory
0 proc
48K root
7.5M sbin
4.0K selinux
4.0K srv
0 sys
16K tmp
542M usr
282M var
My fstab:
$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/mapper/fileserver--00-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=1724d880-01a4-481c-87e5-08328c3c8137 /boot ext2 defaults 0 2
/dev/mapper/fileserver--00-swap_1 none swap sw 0 0
/dev/sdb1 /cubo/d2p1 ext3 defaults 0 0
/dev/sdc1 /cubo/d3p1 ext4 defaults 0 0
/dev/sdd1 /cubo/d4p1 ext4 defaults,noauto 0 0
192.168.1.7:/nfs/Backups /cubo/nfsMounts/ixBackup nfs defaults 0 0
How do I fix this?