Lost tasks_completed table - out of space?
Posted: Tue Feb 18, 2014 8:02 am
I've got some big problems in gryehole that just happened in the past week. It kept reporting out of space on device, but I can't see where I'm out of space on ANY of my devices when I do a df -h. In the process of trying to fix this, and reading all sorts of posts on the topic, I dropped the tasks_completed table, which appears to have made things much worse. I've tried re-creating it using the sql, but I cannot get mysql to allow me to run it. It is still giving me out of space errors when I try to get stats or queue. I'm very confused, and about to throw in the towel. Hoping someone can help me figure out how to get this back to working... Here's the results of running the Greyhole Troubleshooting steps:
Greyhole troubleshooting:
2. $ pastebinit /etc/samba/smb.conf
http://paste.ubuntu.com/6954709/
2. pastebinit /etc/greyhole.conf
error: Unable to read from /etc/greyhole.conf​ - (will attach the file.)
2. $ mount (Attaching result of mount command.)
3. $ fdisk -l (no result)
3. $ df -h:
3. $ greyhole --stats
Can't describe tasks with query: DESCRIBE tasks - Error: SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_64f_0.MYI' (Errcode: 28)
4. $ mysql -u root -phda -e "select * from disk_pool_partitions" hda_production
ERROR 1049 (42000): Unknown database 'hda_production'
Could not open file /var/cache/apt/archives/partial/greyhole_0.9.44-1_amd64.deb - open (28: No space left on device) [IP: 108.162.197.125 80]
5. $ mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpaste
fpaste: command not found
xargs: ls: terminated by signal 13
6. $ greyhole -q
Can't describe tasks with query: DESCRIBE tasks - Error: SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_64f_0.MYI' (Errcode: 28)
6. $ tail /var/log/greyhole.log
tail: cannot open `/var/log/greyhole.log' for reading: No such file or directory
$ ls /var/log/g* -lh
-rw-rw-rw- 1 root root 3.0K Feb 17 17:10 /var/log/greyhole.log
-rw-r--r-- 1 root root 79M Feb 6 06:45 /var/log/greyhole.tar.gz
(Clearly the file is there, but cannot be read)
None of the sql stuff has worked for me. I get access denied errors, and I don't know what else to do beyond this point...
Thanks for your help!
Eddie
Greyhole troubleshooting:
2. $ pastebinit /etc/samba/smb.conf
http://paste.ubuntu.com/6954709/
2. pastebinit /etc/greyhole.conf
error: Unable to read from /etc/greyhole.conf​ - (will attach the file.)
2. $ mount (Attaching result of mount command.)
3. $ fdisk -l (no result)
3. $ df -h:
Code: Select all
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 42G 27G 13G 68% /
udev 3.9G 12K 3.9G 1% /dev
tmpfs 1.6G 22M 1.6G 2% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 80K 3.9G 1% /run/shm
/dev/sdb1 932G 623G 309G 67% /var/hda/drives/internal_1
/dev/sdd1 1.8T 1.5T 292G 84% /var/hda/drives/internal_2
/dev/sdc1 917G 587G 284G 68% /var/hda/drives/internal_3
/dev/sde1 2.7T 2.3T 325G 88% /var/hda/drives/SG3TB
/dev/sda6 1.5T 1.1T 322G 77% /var/hda/drives/BigData
/dev/sda4 327G 5.5G 305G 2% /home
/dev/sdj1 917G 549G 322G 64% /var/hda/drives/external_5
/dev/sdk1 1.8T 1.4T 322G 82% /var/hda/drives/external_4
/dev/sdl1 1.4T 984G 322G 76% /var/hda/drives/external_3
/dev/sdm1 1.8T 1.4T 321G 82% /var/hda/drives/external_2
/dev/sdn1 917G 591G 281G 68% /var/hda/drives/external_1
//127.0.0.1/Audiobooks 15T 12T 3.1T 80% /mnt/samba/Audiobooks
//127.0.0.1/Books 15T 12T 3.1T 80% /mnt/samba/Books
//127.0.0.1/Docs 1.8T 1.6T 292G 85% /mnt/samba/Docs
//127.0.0.1/Downloads 15T 12T 3.1T 80% /mnt/samba/Downloads
//127.0.0.1/Greyhole Trash 15T 12T 3.1T 80% /mnt/samba/Greyhole Trash
//127.0.0.1/Pictures 15T 12T 3.1T 80% /mnt/samba/Pictures
//127.0.0.1/Software 15T 12T 3.1T 80% /mnt/samba/Software
//127.0.0.1/TV 15T 12T 3.1T 80% /mnt/samba/TV
//127.0.0.1/TimeMachine 327G 23G 305G 7% /mnt/samba/TimeMachine
//127.0.0.1/Training 15T 12T 3.1T 80% /mnt/samba/Training
//127.0.0.1/Videos 15T 12T 3.1T 80% /mnt/samba/Videos
Can't describe tasks with query: DESCRIBE tasks - Error: SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_64f_0.MYI' (Errcode: 28)
4. $ mysql -u root -phda -e "select * from disk_pool_partitions" hda_production
ERROR 1049 (42000): Unknown database 'hda_production'
Could not open file /var/cache/apt/archives/partial/greyhole_0.9.44-1_amd64.deb - open (28: No space left on device) [IP: 108.162.197.125 80]
5. $ mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpaste
fpaste: command not found
xargs: ls: terminated by signal 13
6. $ greyhole -q
Can't describe tasks with query: DESCRIBE tasks - Error: SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_64f_0.MYI' (Errcode: 28)
6. $ tail /var/log/greyhole.log
tail: cannot open `/var/log/greyhole.log' for reading: No such file or directory
$ ls /var/log/g* -lh
-rw-rw-rw- 1 root root 3.0K Feb 17 17:10 /var/log/greyhole.log
-rw-r--r-- 1 root root 79M Feb 6 06:45 /var/log/greyhole.tar.gz
(Clearly the file is there, but cannot be read)
None of the sql stuff has worked for me. I get access denied errors, and I don't know what else to do beyond this point...
Thanks for your help!
Eddie