Page 1 of 1

CLOSED: Disk Wizard using mount points more than once

Posted: Sun Nov 01, 2015 12:23 am
by jkbuckethead
I am rebuilding my server after upgrading to Amahi 8. After a clean Amahi 8 install, the greyhole rebuild did not go well so I've been copying files from the old disks to the HDA. Due to capacity limitations, I have to do this a couple disks at a time. After two disks are copied, they get added to the HDA as additional storage.

I used the new Disk Wizard app to add the disks, but there seems to be a problem. The wizard mounted new disks to existing mount points. As a result I had two sdb1 and sdc1 drives. The drives already installed are 5TB, but now they show as 4TB with 100% free to match the new drives when they should be half full. The text below is my /etc/fstab/ file which shows clearly the duplicates.

#
# /etc/fstab
# Created by anaconda on Sat Oct 17 22:14:23 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=0d0e9507-ceba-45f0-82d7-fa69cb1fbef6 / ext4 defaults 1 1
UUID=42e055e9-dda5-48cd-b6d7-123bf67c6552 /boot ext4 defaults 1 2
UUID=55c11082-8b70-472d-b4f4-3fbaeccbc2e3 swap swap defaults 0 0
UUID=d0e757b5-8971-4d1c-9e03-d380301f008c /var/hda/files/drives/disklz auto auto,rw,exec 0 0
UUID=6d1a051d-5b38-43af-8ec4-145314df2deb /var/hda/files/drives/sdb1 auto auto,rw,exec 0 0
UUID=df8dcaf6-16cf-4ad8-9fd3-b322d4174836 /var/hda/files/drives/sdc1 auto auto,rw,exec 0 0
UUID=bef849d5-7d7f-4e46-a159-d54b0f17fc9f /var/hda/files/drives/sdd1 auto auto,rw,exec 0 0
UUID=de0c31de-88c2-4ae1-a19b-cbb9603c397b /var/hda/files/drives/sdb1 auto auto,rw,exec 0 0
UUID=334650e5-9a0b-4d9e-9f98-bb4508eed006 /var/hda/files/drives/sdc1 auto auto,rw,exec 0 0

I have also attached a screenshot that shows the presence of multiple drives with the same location.
Amahi Home Server.png
Amahi Home Server.png (132 KiB) Viewed 3136 times
Fortunately, since I am familiar with the old manual method of adding drives, I was able to solve the problem by editing the /etc/fstab/ file. I changed the mount points on the new drives to e & f, respectively. After I rebooted, the results inside amahi looked as they should.

It is fixable, but it seems this shouldn't have happened in the first place.

It seem this may be caused, at least in part, by the order that the hardware sees the drives. As you can see by the after screenshot below, the new drives at the top are tagged as partition sdb1 and sdc1. The disk wizard mounted these as sdb1 and sdc1 even though these mount points were already in use.
Amahi Home Server - Disks.png
Amahi Home Server - Disks.png (128.66 KiB) Viewed 3136 times

Re: Disk Wizard using mount points more than once

Posted: Sun Nov 01, 2015 7:28 am
by bigfoot65
Thanks for the feedback.

So why would the drives be already mounted if you did a new install? The OS should not have seen then in the /etc/fstab until you mounted the drives with the Disk Wizard.

Please submit a bug report with all the details.

Re: Disk Wizard using mount points more than once

Posted: Sun Nov 01, 2015 7:44 am
by jkbuckethead
It started as a clean install, but now I am adding additional drives to a system that is already operating. The disk wizard only comes into play when adding disks after the initial install. It seems like this error could occur any time drives are being added.

I had read multiple references to bug reports, so I tried to submit a bug report. Unfortunately, I couldn't find a place to submit one. Your bug link is just to amahi.org. I found the issue tracker at https://bugs.amahi.org/issues but I couldn't find a place to submit a new one. I'll be happy to put the info above in a bug report if you can point me to the right place.

Re: Disk Wizard using mount points more than once

Posted: Sun Nov 01, 2015 7:48 am
by bigfoot65
I understand that part.

Did you have the drives disconnected when performing the install? Did you manually add them to /etc/fstab prior to using the Disk Wizard or did it add them twice?

Re: Disk Wizard using mount points more than once

Posted: Sun Nov 01, 2015 8:10 am
by jkbuckethead
The initial install was conducted with only the OS drive connected. After that, I added 4 drives using the disk wizard. I am now trying to add two additional drives. It is these two drives that the wizard mounted as sdb1 and sdc1 even though these mount points were already in use.

Re: Disk Wizard using mount points more than once

Posted: Sun Nov 01, 2015 8:31 am
by bigfoot65
AH, that is interesting. Obviously it should not have done that.

Please submit a bug report.

BTW, which install guidance did you follow?

Re: Disk Wizard using mount points more than once

Posted: Sun Nov 01, 2015 9:37 am
by jkbuckethead
The initial install followed http://docs.amahi.org/amahi-8.html.

For the added disks, I haven't found instructions for using the disk wizard app. I am familiar with https://wiki.amahi.org/index.php/Adding ... ing_cfdisk from adding drives to Amahi 7, but this page now says that the disk wizard provides this functionality. There is a link to the DW app, but not to instructions. I just figured out the disk wizard as I went along. Are there disk wizard instructions available?

Thanks for the link to the bug tracker. This is the same page I found before, but I still don't see an option to submit a new bug. Please you show me where to submit the new bug.

Re: Disk Wizard using mount points more than once

Posted: Sun Nov 01, 2015 9:54 am
by bigfoot65
I just figured out the disk wizard as I went along. Are there disk wizard instructions available?
No there are no instructions as it's a wizard so it guides you along the process.
Please you show me where to submit the new bug.
Log in to te site (use amahi.org credentials) and select Project, then Apps, followed by New Issue. It's not the most intuitive, but works well for us.

Re: Disk Wizard using mount points more than once

Posted: Sun Nov 01, 2015 1:42 pm
by bigfoot65
Thanks for submitting the bug report (Bug #1863). We will be taking a look at this soon.