SOLVED: Found a metadata file pointing to a drive not defined in your storage pool

evylrat
Posts: 95
Joined: Sun Jan 02, 2011 6:37 pm

SOLVED: Found a metadata file pointing to a drive not defined in your storage pool

Postby evylrat » Wed Jul 05, 2017 1:28 am

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!

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

Re: Found a metadata file pointing to a drive not defined in your storage pool

Postby bigfoot65 » Wed Jul 05, 2017 8:36 am

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.
ßîgƒσστ65
Applications Manager

evylrat
Posts: 95
Joined: Sun Jan 02, 2011 6:37 pm

Re: Found a metadata file pointing to a drive not defined in your storage pool

Postby evylrat » Wed Jul 05, 2017 11:23 am

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!
Last edited by evylrat on Thu Jul 06, 2017 12:37 am, edited 1 time in total.

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

Re: Found a metadata file pointing to a drive not defined in your storage pool

Postby bigfoot65 » Wed Jul 05, 2017 2:20 pm

Ok then are files on the new drives?
ßîgƒσστ65
Applications Manager

evylrat
Posts: 95
Joined: Sun Jan 02, 2011 6:37 pm

Re: Found a metadata file pointing to a drive not defined in your storage pool

Postby evylrat » Wed Jul 05, 2017 2:46 pm

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.

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

Re: Found a metadata file pointing to a drive not defined in your storage pool

Postby bigfoot65 » Wed Jul 05, 2017 3:11 pm

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.
ßîgƒσστ65
Applications Manager

evylrat
Posts: 95
Joined: Sun Jan 02, 2011 6:37 pm

Re: Found a metadata file pointing to a drive not defined in your storage pool

Postby evylrat » Thu Jul 06, 2017 12:30 am

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.

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

Re: Found a metadata file pointing to a drive not defined in your storage pool

Postby bigfoot65 » Thu Jul 06, 2017 2:41 am

There is still nothing in the folders drive2, drive3 or drive5. Can the folders be safely deleted?
Yes.
ßîgƒσστ65
Applications Manager

evylrat
Posts: 95
Joined: Sun Jan 02, 2011 6:37 pm

Re: Found a metadata file pointing to a drive not defined in your storage pool

Postby evylrat » Thu Jul 06, 2017 6:34 am

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.

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

Re: Found a metadata file pointing to a drive not defined in your storage pool

Postby bigfoot65 » Thu Jul 06, 2017 6:57 am

No problem. They should disappear over time I would think.

Marking this as solved.
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 1 guest