SOLVED: Pool Migration Issue

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

SOLVED: Pool Migration Issue

Postby evylrat » Sat May 14, 2016 8:04 am

I'm moving from Amahi 6.3 to 9. Perfect time, my motherboard died.

It's running fine so far, but I cannot get my Drive Pool in. The reason? The shares in Amahi 6.3 had capitals at the beginning and in amahi 9 they're all lowercase.

Code: Select all

WARN initialize: Found a share (Backup) defined in /etc/greyhole.conf with no path in /etc/samba/smb.conf. Either add this share in /etc/samba/smb.conf, or remove it from /etc/greyhole.conf, then restart Greyhole. CRITICAL initialize: Config file parsing failed. Exiting.
Example from Amahi 6.3

Code: Select all

SMB.conf Books comment = Books path = /var/hda/files/Books
from Amahi 9

Code: Select all

SMB.conf Books comment = Books path = /var/hda/files/books
I cannot create a share with capitalized first letter. And I'm a linux newbie. I didn't want to start messing with the storage pool directly.

Can anyone give my some advice?
Thanks in advance.

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

Re: Pool Migration Issue

Postby bigfoot65 » Sat May 14, 2016 8:22 am

Rename the shares via command line to lower case.

For example:
move /var/hda/files/Books /var/hda/files/books
The share path in the dashboard may need to be changed to reflect the same.

Recommend you stop Greyhole and turn off watchdog before doing the above.
ßîgƒσστ65
Applications Manager

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

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

Re: Pool Migration Issue

Postby evylrat » Sat May 14, 2016 9:14 am

I'll be renaming the shares to capitalized first letter, to match what's in the drive pool. My drive pool from 6.3 has Capitalized first letters;
eg /var/hda/files/drives/drive5/gh/Books
Just to double check, since it's probably better to stick with what Amahi 9 likes (ready for the NEXT migration), is it possible to rename all the folders in the GH directories on the 3 drives in the pool?
eg
/var/hda/files/drives/drive2/gh/Books --> /var/hda/files/drives/drive2/gh/books
/var/hda/files/drives/drive3/gh/Books --> /var/hda/files/drives/drive3/gh/books
/var/hda/files/drives/drive5/gh/Books --> /var/hda/files/drives/drive5/gh/books

Then once the pool is running it's time to add new drives one at a time and do the going command. I can't get enough drives together for a backup, so I've actually used some of the new drives for the time being. Once I know one drive has been added and all is well and an old one removed, I will have to figure out a new backup.

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

Re: Pool Migration Issue

Postby bigfoot65 » Sat May 14, 2016 9:27 am

I'll be renaming the shares to capitalized first letter, to match what's in the drive pool. My drive pool from 6.3 has Capitalized first letters;eg /var/hda/files/drives/drive5/gh/Books
The Shares should reflect title case in the HDA dashboard unless you changed it. As for the actual directory name, it can reflect title or lower case as long as the path for each matches the structure.
Just to double check, since it's probably better to stick with what Amahi 9 likes (ready for the NEXT migration), is it possible to rename all the folders in the GH directories on the 3 drives in the pool?
It's not necessary to rename the shares in the Greyhole directory. It uses the Samba share name which is already title case.

As long as the shares in /var/hda/files match the path in the dashboard, it should all work. You have to follow the reconnect reconnect existing Greyhole storage pool guidance in the wiki. This will ensure everything syncs up.

Also would be good if you followed the HDA OS Migration Guide. It was designed for moving from Ubuntu to the latest Amahi stable release.
ßîgƒσστ65
Applications Manager

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

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

Re: Pool Migration Issue

Postby evylrat » Sat May 14, 2016 10:35 am

Also would be good if you followed the HDA OS Migration Guide. It was designed for moving from Ubuntu to the latest Amahi stable release.
Thanks, I'm following that, i've hit the snag at

Code: Select all

Verify Operational Before proceeding to the next section, verify Greyhole is working properly. This can be done by monitoring the log: tail -f /var/log/grehole.log If there is a problem, refer to Greyhole Troubleshooting. Don't forget to install Mount Shares Locally service if needed.
I'm going to remove the pool and just add a drive to verify Greyhole's operation.

I think actually there's a deeper issue.

Code: Select all

Status: Greyhole is currently not active
Going start again and make sure I double check the guides.

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

Re: Pool Migration Issue

Postby bigfoot65 » Sat May 14, 2016 4:51 pm

Closing this thread since a new one was started.
ßîgƒσστ65
Applications Manager

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

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

Re: SOLVED: Pool Migration Issue

Postby evylrat » Sun May 15, 2016 1:25 am

No problem. I'm testing the Amahi installation on different hardware this morning to see if I get the same issue.

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

Re: Pool Migration Issue

Postby evylrat » Sun May 15, 2016 9:46 am

Closing this thread since a new one was started.
I can confirm that this issue was due to using the DVD install version of Fedora 23 server. When I used the NET install version, Greyhole functioned as expected, and my Drive Pool is being imported as per wiki instruction. Now the painful wait as the pool populates.

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

Re: SOLVED: Pool Migration Issue

Postby bigfoot65 » Sun May 15, 2016 12:06 pm

can confirm that this issue was due to using the DVD install version of Fedora 23 server.
Not sure why it would matter. Maybe you did not follow the instructions when installing?

We have extensively tested with the DVD and had no issues.
ßî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 26 guests