HDA not working after root drive full/Greyhole not working

Revelation
Posts: 3
Joined: Fri Jul 27, 2018 8:29 am

HDA not working after root drive full/Greyhole not working

Postby Revelation » Fri Jul 27, 2018 8:49 am

I have been working to set up my Amahi server and was cleaning up partitions from my dual boot. I was attempting to remove the remaining NTFS partitions from my windows home server and free up the space for amahi. I deleted a partition that was /dev/sdc2 and after reboot the server to find that the web app would not work. I SSH into the server to find that the /dev/mapper/fedora-root was at 100%. I worked through creating a new partition and added it to the root drive to increase the available space. However, the web app will not let me log in and I have also noticed that I cannot do anything with greyhole.

https://paste.fedoraproject.org/paste/x ... UqqcP~ADg/

4.8.6-300.fc25.x86_64
samba-4.5.14-0.fc25.x86_64
amahi-greyhole-0.10.15-1.x86_64

https://paste.fedoraproject.org/paste/I ... fiL7yb12A/
https://paste.fedoraproject.org/paste/m ... GrciZKqcQ/

Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: BC19429D-B03F-4FAD-A01A-BEA09E2E2093

Device Start End Sectors Size Type
/dev/sda1 2048 5860532223 5860530176 2.7T Linux filesystem

Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 4C0479E8-7702-46DD-921C-3522CBC7C403

Device Start End Sectors Size Type
/dev/sdb1 2048 5860532223 5860530176 2.7T Linux filesystem

Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x8c90ef12

Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sdc2 206848 991246335 991039488 472.6G 83 Linux
/dev/sdc3 991246336 993343487 2097152 1G 83 Linux
/dev/sdc4 993343488 1953523711 960180224 457.9G 5 Extended
/dev/sdc5 993345536 1953523711 960178176 457.9G 8e Linux LVM

Disk /dev/mapper/fedora-root: 115 GiB, 123480309760 bytes, 241172480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/fedora-swap: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 860K 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mapper/fedora-root 115G 15G 101G 13% /
/dev/sda1 2.7T 89M 2.6T 1% /var/hda/files/drives/Backup2
/dev/sdb1 2.7T 690G 1.9T 27% /var/hda/files/drives/Backup
tmpfs 1.9G 20K 1.9G 1% /tmp
/dev/sdc3 976M 83M 827M 10% /boot
none 4.0M 0 4.0M 0% /var/spool/greyhole/mem
tmpfs 382M 0 382M 0% /run/user/1000


[root@localhost steve]# greyhole --stats
ERROR: Can't connect to database: SQLSTATE[HY000] [2002] No such file or directory

[root@localhost steve]# mysql -u root -p -e "select * from disk_pool_partitions" hda_production
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: HDA not working after root drive full/Greyhole not working

Postby bigfoot65 » Sun Jul 29, 2018 6:50 pm

Try manually moving some of the files from root to the new drive.

That will free up space and should help get things going again.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Revelation
Posts: 3
Joined: Fri Jul 27, 2018 8:29 am

Re: HDA not working after root drive full/Greyhole not working

Postby Revelation » Mon Jul 30, 2018 6:36 pm

I moved files around and found that the server was not allowing access to the two hard drives. I had to remount them. Rebooted and I had access to the hard drives though I still cannot use the web interface.

[root@localhost steve]# du -h / -d 1
80M /boot
0 /dev
du: cannot access '/proc/3434/task/3434/fd/3': No such file or directory
du: cannot access '/proc/3434/task/3434/fdinfo/3': No such file or directory
du: cannot access '/proc/3434/fd/4': No such file or directory
du: cannot access '/proc/3434/fdinfo/4': No such file or directory
0 /proc
868K /run
0 /sys
18M /etc
76K /root
692G /var
1.2G /usr
20K /home
0 /media
0 /mnt
0 /opt
0 /srv
20K /tmp
693G /

[root@localhost steve]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 2.7T 0 disk
└─sdb1 8:17 0 2.7T 0 part /var/hda/files/drives/Backup
sdc 8:32 0 931.5G 0 disk
├─sdc2 8:34 0 472.6G 0 part
├─sdc5 8:37 0 457.9G 0 part
│ ├─fedora-swap 253:1 0 40G 0 lvm [SWAP]
│ └─fedora-root 253:0 0 115G 0 lvm /
├─sdc3 8:35 0 1G 0 part /boot
├─sdc1 8:33 0 100M 0 part
└─sdc4 8:36 0 1K 0 part
sda 8:0 0 2.7T 0 disk
└─sda1 8:1 0 2.7T 0 part /var/hda/files/drives/Backup2

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: HDA not working after root drive full/Greyhole not working

Postby bigfoot65 » Tue Jul 31, 2018 7:46 am

Have you moved files off of root to the new hard drives?

You may need to move quite a few or you could change the Greyhole LZ.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Revelation
Posts: 3
Joined: Fri Jul 27, 2018 8:29 am

Re: HDA not working after root drive full/Greyhole not working

Postby Revelation » Wed Aug 01, 2018 8:09 pm

I have been trying to move and delete as many files as I can find. I have cleared out all log files in /var/log and some cache files.
The main issue I am seeing is that the /var directory which links to my additional hard drives has 677G of used space. While using the du command if I subtract the 677G thats 2G used on the / directory left. Though when you check the df command it says that there is 15G used. I cannot find anything else to delete and I am not confident on what else could be moved of significant size. Somehow there is 13G of data sitting there that I can't see.

[root@localhost steve]# du -h / -d 1
80M /boot
0 /dev
du: cannot access '/proc/1883/task/1883/fd/3': No such file or directory
du: cannot access '/proc/1883/task/1883/fdinfo/3': No such file or directory
du: cannot access '/proc/1883/fd/4': No such file or directory
du: cannot access '/proc/1883/fdinfo/4': No such file or directory
0 /proc
868K /run
0 /sys
18M /etc
80K /root
678G /var
1.2G /usr
20K /home
0 /media
0 /mnt
0 /opt
0 /srv
20K /tmp
679G /
[root@localhost steve]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 868K 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mapper/fedora-root 115G 15G 101G 13% /
/dev/sda1 2.7T 89M 2.6T 1% /var/hda/files/drives/Backup2
/dev/sdb1 2.7T 677G 1.9T 26% /var/hda/files/drives/Backup
tmpfs 1.9G 20K 1.9G 1% /tmp
/dev/sdc3 976M 83M 827M 10% /boot
none 4.0M 0 4.0M 0% /var/spool/greyhole/mem
tmpfs 382M 0 382M 0% /run/user/1000

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: HDA not working after root drive full/Greyhole not working

Postby bigfoot65 » Thu Aug 02, 2018 8:18 am

Check in the /tmp directory. That often holds files.

Also have you rebooted since moving files? If not might consider doing that as well.

I am guessing the files taking all the space are in /var/hda/files directory. Could poke around.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 25 guests