SOLVED: Is it ok to move the mount point for drives

User avatar
TheParkerFamily
Posts: 32
Joined: Tue Jan 05, 2016 10:40 am

SOLVED: Is it ok to move the mount point for drives

Postby TheParkerFamily » Tue Jan 26, 2016 7:46 am

I just have quick question to see if something the little OCD demon inside my head wants to do will cause me any issues going forward.

Following the standard guidance for my build, I have the following:
/var/hda/files/ (2 TB drive, NOT on boot drive)
/var/hda/files/drive2 (2 TB drive for greyhole)
/var/hda/files/drive3 (2 TB drive for greyhole)
etc...

The OCD / windows server admin is bothered by this as it looks like drive2 etc are subsets or subfolders of the 1st drive. I completely understand the symbolic link concept, but to me this is confusing... particularly since there is a /var/hda/drives/ location which appears to be completely unused that would seem to be more logical as a mounting point.

If I change the /etc/fstab to mount the drives I want to use for greyhole to the /var/hda/drives (and unmount old etc) like so:
/var/hda/drives/gh_drive1
/var/hda/drives/gh_drive2
etc...

Would this cause any problems going forward? I would leave the first data drive mounted as /var/hda/files/, of course - which should make my LZ for greyhole 2TB so plenty of room for any fstab hanky panky as I migrate data to the system etc.

Not a big deal if this is something I should not do, it would just make it easier for me to map things out and keep them straight in my head.
+++Error At Address: 14, Treacle Mine Road, Ankh-Morpork+++
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
+++Whoops! Here Comes The Cheese! +++

User avatar
TheParkerFamily
Posts: 32
Joined: Tue Jan 05, 2016 10:40 am

Re: Is it ok to move the mount point for drives

Postby TheParkerFamily » Tue Jan 26, 2016 10:21 am

OK, I wnet ahead and moved the mount points following all the directions in:https://wiki.amahi.org/index.php/Changi ... unt_points

The only change I made was mounting in /var/hda/drives/ instead of /var/hda/files/drives

It seems to be working well so far. I also inferred from that same article that I should not have included my /var/hda/files/ share in the actual storage pool - which I somehow missed in the setup instructions. (I had thought it would need to be a member to balance storage across all the disks.)

What seems to be happening now, is the 1.x TB of data I had pre-staged on /var/hda/files/shares is being moved off of /var/hda/files/ and into the pool. Got nervous as I watched files disappearing from the first disk but once I realized that /files/ is really just a landing zone, and not an actual storage location, it all made sense.

(Unless I'm wrong, in which case I fubar'd the server (again). I try to get the hard knocks up front so nbd if this is the case.)

Crap, I think I was wrong - GH appears to be eating all of my data. Or the disk stats page isn't updating correctly.
+++Error At Address: 14, Treacle Mine Road, Ankh-Morpork+++
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
+++Whoops! Here Comes The Cheese! +++

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

Re: Is it ok to move the mount point for drives

Postby bigfoot65 » Tue Jan 26, 2016 2:43 pm

The only change I made was mounting in /var/hda/drives/ instead of /var/hda/files/drives
This change is really irrelevant to Greyhole. Having the mount point in either place works.
I also inferred from that same article that I should not have included my /var/hda/files/ share in the actual storage pool
That is correct as it's the LZ by default. You can move the LZ if you choose by following the Greyhole Landing Zone guidance.
Crap, I think I was wrong - GH appears to be eating all of my data. Or the disk stats page isn't updating correctly.
Trust, but verify. Check to see if the files are still there. The Bug #1493 may relate to your issue.
ßîgƒσστ65
Applications Manager

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

User avatar
TheParkerFamily
Posts: 32
Joined: Tue Jan 05, 2016 10:40 am

Re: Is it ok to move the mount point for drives

Postby TheParkerFamily » Tue Jan 26, 2016 5:07 pm

Trying to be patient and let greyhole finish, but it appears to be stalled. Tail for the greyhole log is coming up with a message repeated over and over - "Share is locked because another file operation is waiting for a file handle to be released. Skipping."

Restarting daemon, fsck etc do not seem to help

Idea's?
+++Error At Address: 14, Treacle Mine Road, Ankh-Morpork+++
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
+++Whoops! Here Comes The Cheese! +++

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

Re: Is it ok to move the mount point for drives

Postby bigfoot65 » Tue Jan 26, 2016 5:18 pm

Give it time. If the file does not unlock find the file and investigate.

I presume you don't have any files open via your clients.
ßîgƒσστ65
Applications Manager

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

User avatar
TheParkerFamily
Posts: 32
Joined: Tue Jan 05, 2016 10:40 am

Re: Is it ok to move the mount point for drives

Postby TheParkerFamily » Thu Jan 28, 2016 7:52 am

Time resolved it... although I ended up with a significant portion of the data gone by the time the fsck had run through everything. Not a big deal, as I just re-synced from the original source and then ran a balance to evenly spread across the storage pool.
+++Error At Address: 14, Treacle Mine Road, Ankh-Morpork+++
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
+++Whoops! Here Comes The Cheese! +++

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

Re: Is it ok to move the mount point for drives

Postby bigfoot65 » Thu Jan 28, 2016 8:38 am

Good to hear.

Closing this one as solved.
ßî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: Google [Bot] and 11 guests