Page 1 of 1
SOLVED: Found a metadata file pointing to a drive not defined in your storage pool
Posted: Wed Jul 05, 2017 1:28 am
by evylrat
Over a year ago I moved from Amahi 6 to Amahi 7; it was a complete rebuilt on my home server.
I added my existing storage into it, and added my new drives and used the GOING and GONE commands to empty the old drives onto the new drives.
When I'm looking at the logs for Greyhole I'm still seeing the occasional reference to the old drives:
Found a metadata file pointing to a drive not defined in your storage pool: '/var/hda/files/drives/drive5/gh/blahblahblah' (for example)
Looking in /var/hda/files/drives/ I have my 3 OLD drives and my 3 NEW drives
-drive2
-drive3
-drive5
-nas1
--gh
--lost&found
-nas2
--gh
--lost&found
-nas3
--gh
--lost&found
The landing zone mucked up last week so last night I ran --fsck first with find-orphaned files.
It's not affecting any usage though.
Can I use the -GONE command on drives 2-5? I typed it in this morning and it began emptying the trash on a new drive so I cancelled it.
Thanks in advance!
Re: Found a metadata file pointing to a drive not defined in your storage pool
Posted: Wed Jul 05, 2017 8:36 am
by bigfoot65
Looking in /var/hda/files/drives/ I have my 3 OLD drives and my 3 NEW drives
If you are not using the old drives, are they still mounted?
Can I use the -GONE command on drives 2-5?
You should be able to in order to remove files from them. Keep in mind there area actual file copies on those drives, so they will get deleted.
I typed it in this morning and it began emptying the trash on a new drive so I cancelled it.
I am not sure I understand this statement. I do not believe there is an auto trash emptying function. Please clarify.
Re: Found a metadata file pointing to a drive not defined in your storage pool
Posted: Wed Jul 05, 2017 11:23 am
by evylrat
If you are not using the old drives, are they still mounted?
Long gone, around the house being used as paper weights.
The bit about the trash emptying
sudo greyhole -n=/var/hda/files/drives/drive5/gh
Trash in /var/hda/files/drives/nas1/gh is 281GB. Emptying... ^C
Thanks again!
Re: Found a metadata file pointing to a drive not defined in your storage pool
Posted: Wed Jul 05, 2017 2:20 pm
by bigfoot65
Ok then are files on the new drives?
Re: Found a metadata file pointing to a drive not defined in your storage pool
Posted: Wed Jul 05, 2017 2:46 pm
by evylrat
All files are on the new drives. Ones it's marking as being removed from these 'ghost' drives are in fact still in the storage pool. I guess I can safely ignore it unless you think otherwise.
Re: Found a metadata file pointing to a drive not defined in your storage pool
Posted: Wed Jul 05, 2017 3:11 pm
by bigfoot65
Yea probably so.
Empty trash before starting.
Then check it after. Should not see anything I would think.
Report back if we can close this thread.
Re: Found a metadata file pointing to a drive not defined in your storage pool
Posted: Thu Jul 06, 2017 12:30 am
by evylrat
sudo greyhole -g=/var/hda/files/drives/drive5/gh
Trash in /var/hda/files/drives/nas1/gh is empty. Nothing to do.
Trash in /var/hda/files/drives/nas2/gh is empty. Nothing to do.
Trash in /var/hda/files/drives/nas3/gh is empty. Nothing to do.
sudo greyhole -g=/var/hda/files/drives/drive3/gh
Trash in /var/hda/files/drives/nas1/gh is empty. Nothing to do.
Trash in /var/hda/files/drives/nas2/gh is empty. Nothing to do.
Trash in /var/hda/files/drives/nas3/gh is empty. Nothing to do.
sudo greyhole -g=/var/hda/files/drives/drive2/gh
Trash in /var/hda/files/drives/nas1/gh is empty. Nothing to do.
Trash in /var/hda/files/drives/nas2/gh is empty. Nothing to do.
Trash in /var/hda/files/drives/nas3/gh is empty. Nothing to do.
ls /var/hda/files/drives -l
total 12
drwxr-xr-x 2 root root 6 May 15 2016 drive2
drwxr-xr-x 2 root root 6 May 15 2016 drive3
drwxr-xr-x 2 root root 6 May 15 2016 drive5
drwxr-xr-x 4 root root 4096 May 15 2016 nas1
drwxr-xr-x 4 root root 4096 May 17 2016 nas2
drwxr-xr-x 4 root root 4096 May 18 2016 nas3
sudo greyhole -s
Total - Used = Free + Trash = Possible
/var/hda/files/drives/nas1/gh: 2751G - 2099G = 512G + 0G = 512G
/var/hda/files/drives/nas2/gh: 2751G - 1956G = 654G + 0G = 654G
/var/hda/files/drives/nas3/gh: 2751G - 1978G = 633G + 0G = 633G
==========================================
Total: 8252G - 6033G = 1799G + 0G = 1799G
There is still nothing in the folders drive2, drive3 or drive5. Can the folders be safely deleted? nas1, nas2 and nas3 are the drives in the storage pool.
Re: Found a metadata file pointing to a drive not defined in your storage pool
Posted: Thu Jul 06, 2017 2:41 am
by bigfoot65
There is still nothing in the folders drive2, drive3 or drive5. Can the folders be safely deleted?
Yes.
Re: Found a metadata file pointing to a drive not defined in your storage pool
Posted: Thu Jul 06, 2017 6:34 am
by evylrat
Thanks and can be marked resolved. A few more references to old drives are still appearing in the logs, but there appears to be no ill effect on the storage.
Re: Found a metadata file pointing to a drive not defined in your storage pool
Posted: Thu Jul 06, 2017 6:57 am
by bigfoot65
No problem. They should disappear over time I would think.
Marking this as solved.