Migrating 6/f14 to 7/f19 - Advice on order of doing things

frodemann
Posts: 39
Joined: Sat Feb 27, 2010 4:52 pm
Location: Oslo, Norway
Contact:

Migrating 6/f14 to 7/f19 - Advice on order of doing things

Postby frodemann » Sun May 11, 2014 6:03 pm

Hi,

I had 3x2TB pooled disks in Amahi6. Two of them reported lots of bad sectors, so i took them out using the "greyhole-going" command.

I now have Amahi7 up and running on new harware. On my desk i have the surviving disk from Amahi6, and two new disks.

From reading the wiki and forum I think I understand what needs to be done is:

- install Greyhole
- recreate exactly the shares from Amahi6
- install / mount the surviving disk
- install / mount the new disks
- add old disk to pool
- add new disks to pool

1. What order should i do these steps?
2. Am I missing something?

Thanks

F

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

Re: Migrating 6/f14 to 7/f19 - Advice on order of doing thin

Postby bigfoot65 » Sun May 11, 2014 6:07 pm

That sounds about right. The wiki guidance should be fairly accurate.
https://wiki.amahi.org/index.php/Fedora ... _migration

Although this is for Fedora to Ubuntu, it is relevant.

Here's another one that is good.
https://wiki.amahi.org/index.php/Reconn ... orage_pool
ßîgƒσστ65
Applications Manager

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

frodemann
Posts: 39
Joined: Sat Feb 27, 2010 4:52 pm
Location: Oslo, Norway
Contact:

Re: Migrating 6/f14 to 7/f19 - Advice on order of doing thin

Postby frodemann » Sun May 11, 2014 6:27 pm

Thanks, I have read those links now but, since Greyhole must be installed manually, i cant figure out wether to install the greyhole software, or put the disks in first? Or, maby it doesn't matter?

Edit: Now reading your ansver again, I realise perhaps you ment the order i listed the steps seemed reasonable? :-)

Cheers

f

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

Re: Migrating 6/f14 to 7/f19 - Advice on order of doing thin

Postby bigfoot65 » Mon May 12, 2014 5:11 am

Is this considered resolved? Please let us know how it goes.
ßîgƒσστ65
Applications Manager

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

frodemann
Posts: 39
Joined: Sat Feb 27, 2010 4:52 pm
Location: Oslo, Norway
Contact:

Re: Migrating 6/f14 to 7/f19 - Advice on order of doing thin

Postby frodemann » Tue May 13, 2014 9:41 am

No, not resolved due to other parts of life keeps me from spending time on computers these days. This might take some time, but please bear with me, i promise to report back.

[ Post made via iPad ] Image

frodemann
Posts: 39
Joined: Sat Feb 27, 2010 4:52 pm
Location: Oslo, Norway
Contact:

Re: Migrating 6/f14 to 7/f19 - Advice on order of doing thin

Postby frodemann » Sun May 25, 2014 1:57 pm

Greyhole now up and running. Data from the old disk restored.

I chose to install / initiate the two fresh WD 2TB Red disks first. Then install greyhole and get it to run properly before introducing the old disk with data from Amahi6.

Got a little frustrated at first when i tried to run a fsck and nothing happened. I then tried:

Code: Select all

greyhole --fsck --find-orphaned-files
witch got things back in business.

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

Re: Migrating 6/f14 to 7/f19 - Advice on order of doing thin

Postby bigfoot65 » Sun May 25, 2014 4:15 pm

Good to hear it's all working good now.
ßîgƒσστ65
Applications Manager

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

frodemann
Posts: 39
Joined: Sat Feb 27, 2010 4:52 pm
Location: Oslo, Norway
Contact:

Re: Migrating 6/f14 to 7/f19 - Advice on order of doing thin

Postby frodemann » Mon May 26, 2014 9:39 am

... or maby not

Maby this should have been a new topic in another forum. Just say so if i should move it.

After starting to copy all my photos back on to greyhole, the greyhole daemon is constantly working an the hda goes down from time to time.

tail /var/log/greyhole.log:

Code: Select all

May 26 18:11:06 INFO rename: Now working on task ID 320647: rename Bilder/FSP07A033F12354467E8B2A39642376B7AA.tmp -> Bilder/2012/1204 April/PUK/IMG_3654.JPG May 26 18:11:06 INFO rename: File renamed: /home/ghlz/bilder/FSP07A033F12354467E8B2A39642376B7AA.tmp -> /home/ghlz/bilder/2012/1204 April/PUK/IMG_3654.JPG May 26 18:11:06 DEBUG rename: File /home/ghlz/bilder/2012/1204 April/PUK/IMG_3654.JPG is locked by another process. Will wait until it's unlocked to work on it. May 26 18:11:06 INFO rename: Now working on task ID 320648: rename Bilder/FSP94652FA45A7A4ACC8548048F261CE9C6.tmp -> Bilder/2012/1204 April/PUK/IMG_3655.JPG May 26 18:11:06 INFO rename: File renamed: /home/ghlz/bilder/FSP94652FA45A7A4ACC8548048F261CE9C6.tmp -> /home/ghlz/bilder/2012/1204 April/PUK/IMG_3655.JPG May 26 18:11:06 DEBUG rename: File /home/ghlz/bilder/2012/1204 April/PUK/IMG_3655.JPG is locked by another process. Will wait until it's unlocked to work on it. May 26 18:11:06 INFO rename: Now working on task ID 320649: rename Bilder/FSP578CBC82F6F34131914E0C448E8766D2.tmp -> Bilder/2012/1204 April/PUK/IMG_3657.JPG May 26 18:11:06 INFO rename: File renamed: /home/ghlz/bilder/FSP578CBC82F6F34131914E0C448E8766D2.tmp -> /home/ghlz/bilder/2012/1204 April/PUK/IMG_3657.JPG May 26 18:11:07 DEBUG rename: File /home/ghlz/bilder/2012/1204 April/PUK/IMG_3657.JPG is locked by another process. Will wait until it's unlocked to work on it. May 26 18:11:07 DEBUG sleep: Only locked files operations pending... Sleeping.
Using LogAnalyzer i found the last three entries in the greyhole syslog before the server went down
Third to last:

Code: Select all

PHP Warning [2]: PDOStatement::execute(): MySQL server has gone away in /usr/bin/greyhole on line 482; BT: greyhole[L3441] run() => greyhole[L3417] execute_next_task() => greyhole[L3660] gh_mv(Bilder,FSP7C6F7C16080943EB9C8DDE73F1208435.tmp,2010/1010 Oktober/IMG_2575.JPG,304551) => greyhole[L3867] gh_write(Bilder,2010/1010 Oktober/IMG_2575.JPG,304551) => greyhole[L4158] gh_write_process_metafiles(3,array (),Bilder,2010/1010 Oktober/IMG_2575.JPG,/home/ghlz/bilder/2010/1010 Oktober/IMG_2575.JPG,4331867,304551) => greyhole[L4196] create_copies_from_metafiles(array ( '/var/hda/files/drives/drive4/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive4/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => true, 'state' => 'OK', )), '/var/hda/files/drives/drive2/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive2/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => false, 'state' => 'OK', )), '/var/hda/files/drives/drive1/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive1/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => false, 'state' => 'OK', )),),Bilder,2010/1010 Oktober/IMG_2575.JPG,/home/ghlz/bilder/2010/1010 Oktober/IMG_2575.JPG) => greyhole[L4275] save_metafiles(Bilder,2010/1010 Oktober,IMG_2575.JPG,array ( '/var/hda/files/drives/drive4/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive4/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => true, 'state' => 'OK', )), '/var/hda/files/drives/drive2/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive2/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => false, 'state' => 'OK', )), '/var/hda/files/drives/drive1/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive1/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => false, 'state' => 'OK', )),)) => greyhole[L4569] is_greyhole_owned_drive(/var/hda/files/drives/drive2/gh) => greyhole[L1703] get(sp_drives_definitions,1) => greyhole[L849] getFirst(SELECT * FROM settings WHERE name LIKE :name,array ( 'name' => 'sp_drives_definitions',)) => greyhole[L501] execute(SELECT * FROM settings WHERE name LIKE :name,array ( 'name' => 'sp_drives_definitions',)) => greyhole[L482] execute()
Second to last:

Code: Select all

PHP Warning [2]: PDOStatement::execute(): Error reading result set's header in /usr/bin/greyhole on line 482; BT: greyhole[L3441] run() => greyhole[L3417] execute_next_task() => greyhole[L3660] gh_mv(Bilder,FSP7C6F7C16080943EB9C8DDE73F1208435.tmp,2010/1010 Oktober/IMG_2575.JPG,304551) => greyhole[L3867] gh_write(Bilder,2010/1010 Oktober/IMG_2575.JPG,304551) => greyhole[L4158] gh_write_process_metafiles(3,array (),Bilder,2010/1010 Oktober/IMG_2575.JPG,/home/ghlz/bilder/2010/1010 Oktober/IMG_2575.JPG,4331867,304551) => greyhole[L4196] create_copies_from_metafiles(array ( '/var/hda/files/drives/drive4/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive4/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => true, 'state' => 'OK', )), '/var/hda/files/drives/drive2/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive2/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => false, 'state' => 'OK', )), '/var/hda/files/drives/drive1/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive1/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => false, 'state' => 'OK', )),),Bilder,2010/1010 Oktober/IMG_2575.JPG,/home/ghlz/bilder/2010/1010 Oktober/IMG_2575.JPG) => greyhole[L4275] save_metafiles(Bilder,2010/1010 Oktober,IMG_2575.JPG,array ( '/var/hda/files/drives/drive4/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive4/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => true, 'state' => 'OK', )), '/var/hda/files/drives/drive2/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive2/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => false, 'state' => 'OK', )), '/var/hda/files/drives/drive1/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive1/gh/Bilder/2010/1010 Oktober/IMG_2575.JPG', 'is_linked' => false, 'state' => 'OK', )),)) => greyhole[L4569] is_greyhole_owned_drive(/var/hda/files/drives/drive2/gh) => greyhole[L1703] get(sp_drives_definitions,1) => greyhole[L849] getFirst(SELECT * FROM settings WHERE name LIKE :name,array ( 'name' => 'sp_drives_definitions',)) => greyhole[L501] execute(SELECT * FROM settings WHERE name LIKE :name,array ( 'name' => 'sp_drives_definitions',)) => greyhole[L482] execute()
Last:

Code: Select all

PHP Fatal Error: Uncaught exception 'Exception' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /usr/bin/greyhole:491
I have moved the landinzone to "/home". Is that a problem? (Was the partition with most free space after automatic install)

Edit:
I'll make a new post following this: "https://wiki.amahi.org/index.php/Greyho ... leshooting" if the above is not enough to resolve the problem ...

frodemann
Posts: 39
Joined: Sat Feb 27, 2010 4:52 pm
Location: Oslo, Norway
Contact:

Re: Migrating 6/f14 to 7/f19 - Advice on order of doing thin

Postby frodemann » Tue May 27, 2014 4:22 pm

Need to look more into it, but I now suspect Microsoft SyncToy and Greyhole together caused the trouble.

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

Re: Migrating 6/f14 to 7/f19 - Advice on order of doing thin

Postby bigfoot65 » Tue May 27, 2014 4:27 pm

Try FreeFileSync. That's what I use and have no issues. There's a portable version too.
ßî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 22 guests