SOLVED: old hdd from SQLite to new installation with MySql

klauswirn
Posts: 20
Joined: Sat Dec 18, 2010 1:27 pm

SOLVED: old hdd from SQLite to new installation with MySql

Postby klauswirn » Sat Feb 07, 2015 11:30 am

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

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

Re: old hdd from SQLite to new installation with MySql

Postby bigfoot65 » Sat Feb 07, 2015 3:26 pm

If this just a Greyhole files drive then follow the guidance you referenced.

[ Post made via Android ] Image
ßîgƒσστ65
Applications Manager

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

klauswirn
Posts: 20
Joined: Sat Dec 18, 2010 1:27 pm

Re: old hdd from SQLite to new installation with MySql

Postby klauswirn » Wed Feb 11, 2015 12:40 pm

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?

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

Re: old hdd from SQLite to new installation with MySql

Postby bigfoot65 » Wed Feb 11, 2015 2:18 pm

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

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

klauswirn
Posts: 20
Joined: Sat Dec 18, 2010 1:27 pm

Re: old hdd from SQLite to new installation with MySql

Postby klauswirn » Wed Feb 11, 2015 3:00 pm

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 ;-)

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

Re: old hdd from SQLite to new installation with MySql

Postby bigfoot65 » Wed Feb 11, 2015 3:32 pm

You might try the find the orphaned files guidance.

You cannot mess up anything really with any of these commands.
ßîgƒσστ65
Applications Manager

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

klauswirn
Posts: 20
Joined: Sat Dec 18, 2010 1:27 pm

Re: old hdd from SQLite to new installation with MySql

Postby klauswirn » Fri Feb 13, 2015 2:02 am

Thank you, thats the solution.

After that i got my data back.

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

Re: old hdd from SQLite to new installation with MySql

Postby bigfoot65 » Fri Feb 13, 2015 3:32 am

No problem. Happy to help.
ßî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 12 guests