Page 1 of 1

SOLVED: old hdd from SQLite to new installation with MySql

Posted: Sat Feb 07, 2015 11:30 am
by klauswirn
Hi there,

i´ve got an question before i migrate my old filled disk to my new installation.

In the old installation i used SQLite, now i disconnected all data disk and installed the new Amahi 7 wich comes with MySQL.

Do i have anything to do before i reconnect the filled disks to my new installation? Or do the "greyhole --fsck" anything thats needed after adding the existing hdd (will do it by this articel -> Reconnect existing Greyhole storage poolhttps://wiki.amahi.org/index.php/Reconn ... orage_pool?

Hope my question is clear....

Thx

Re: old hdd from SQLite to new installation with MySql

Posted: Sat Feb 07, 2015 3:26 pm
by bigfoot65
If this just a Greyhole files drive then follow the guidance you referenced.

[ Post made via Android ] Image

Re: old hdd from SQLite to new installation with MySql

Posted: Wed Feb 11, 2015 12:40 pm
by klauswirn
Hi
i´ve done it and looks ok.

But got one issue.

I connected my drives back and still missing a lot of files.
Done copy all in the trash folders back to locally_mounted_share.

Now i figured out that all files from one disc (in my case it is drive7) are not showing in my share.
I can access them with a file explorer ( /var/hda/files/drive7/gh/movies/) but they are not shown in /var/hda/files/movies/

i tried "greyhole --fsck" more then three times without solution.

What else can i do, what went wrong?

Re: old hdd from SQLite to new installation with MySql

Posted: Wed Feb 11, 2015 2:18 pm
by bigfoot65
Did you follow the tutorial I provided?

Are all your shares present that are listed in the /gh folder?

You might need to run a different Greyhole command to search for files that have not been symlinked in the share or create the missing metadata.

You can find the commands by executing as root:

Code: Select all

greyhole
Sometimes you have to pass the reconnect drive command to get things working. Also ensure all your drives are listed in /etc/greyhole.conf.

Re: old hdd from SQLite to new installation with MySql

Posted: Wed Feb 11, 2015 3:00 pm
by klauswirn
sorry but can you explain me that a lillte more?

Dont wanna make somthing wrong an loose anything.

The drive is active in /etc/fstab and it is activated in /etc/greyhole.conf
i made chmod and chown on all.

which command do i have to try first?

greyhole -X
or
greyhole --fsck-o
or
greyhole --fsck--dir=/var/hda/files/drives/drive7/gh
or at least
greyhole --fsck -k


is it possible to destroy something with one of the above commands?

I wait for your answer before i do something stupid ;-)

Re: old hdd from SQLite to new installation with MySql

Posted: Wed Feb 11, 2015 3:32 pm
by bigfoot65
You might try the find the orphaned files guidance.

You cannot mess up anything really with any of these commands.

Re: old hdd from SQLite to new installation with MySql

Posted: Fri Feb 13, 2015 2:02 am
by klauswirn
Thank you, thats the solution.

After that i got my data back.

Re: old hdd from SQLite to new installation with MySql

Posted: Fri Feb 13, 2015 3:32 am
by bigfoot65
No problem. Happy to help.