Changes

From Amahi Wiki
Jump to: navigation, search
==Some Shares==
Host some shares on the new hard drive.
If you want only Move some of your shares data to be on your the new hard drive, hereby executing the following command (replace path in '''<span style="color: red;">RED</span>''' with the path from the ''hda-diskmount'' output line in <span style="color:#0000FF">'''BLUE'''s how </span>; sharename will be the share to do thatmove to the new drive).<br />
First, you'll want to move your previous shares data, if any, into your new drive.<br/>You only need to do this next command if you have data that you care about in the /var/hda/files/* folders (that you want on the new drive).<br/>[[Open Terminal as root|In a Terminal, as root]], type execute the following command. Replace the path in red with the path you received when you ran hda-diskmount. Replace '''something''' with the name of the share you want to have on your new drive (the share should already exist).:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
mv /var/hda/files/<strong>somethingsharename</strong> <strong style="color:red">/var/hda/files/drives/drive1/</strong>
</div>
Repeat the process with every share to be moved to the new drive.
Repeat with every share you want on your Unmount the new hard drive. Next, you'll need to make the mount permanent:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
umount /var/hda/files/drives/drive1<br/>
nano /etc/fstab
</div>
In nano, youMount the new hard drive permanently by editing ''ll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.<br/> So, following previous examples, I should add thisetc/fstab'': <div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;"> <span style="color: blue;">UUID=9d972abc-1639-44df-a60e-668618d40236 nano /varetc/hda/files/drives/drive1 ext4 defaults 1 2</span>fstab
</div>
Add the line to ''/etc/fstab'' provided in the ''hda-diskmount'' output in '''<span style="color: blue;">BLUE</span>'''.
:EXAMPLE /etc/fstab:
#
# /etc/fstab
# Created by anaconda on Sat Nov 9 01:46:39 2013
#
# 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=1ebbf241-528c-465e-889f-acc15400dd8c / ext4 defaults 1 1
UUID=087b15a5-c3ca-4615-b6ee-bf5f399a803e /boot ext4 defaults 1 2
UUID=75346b8e-b162-458c-b0e9-a8d48ec2bc82 swap swap defaults 0 0
UUID=ad85eeb9-18f0-4b85-9bfa-b88a5d1489b3 swap swap defaults 0 0
<span style="color:#0000FF">'''UUID=547b073d-e591-4913-b4fb-7c5084353979 /var/hda/files/drives/drive1 ext4 defaults 1 2'''</span>
Verify the hard drive(s)/partition(s) configuration is correct in ''/etc/fstab''.
Save and exit nano (CTRL-XNext, Y, ENTER), and try your new mountexecute the following
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
mount -a
ls /var/hda/files/drives/drive1
</div>
The last command will display contents of the new hard drive. All shares are now located on the new hard drive.
That last command should show you The location of each share that was moved to the content of you new hard drive. Now, you will need to update the location of updated in the moved shares within AmahiDashboard. Go to your <strong>Amahi Dashboard</strong>, click on <strong> Select ''Setup</strong>, then <strong>'' followed by the ''Shares</strong>'' section.  Click on one of the shares Expand each share that you have was moved. This will open a panel revealing the share settings. Click on individually and change the location (the bit that is shown with a dotted underlinepath) and it will change to an edit box. Update the location to match the new share locationaccordingly.  For example, the original movies location was: <span style="color:red">/var/hda/files/movies</span><br/>The new location might be: <span style="color:blue">/var/hda/files/drives/drive1/movies</span>
Repeat for any other shares that you have moved. Check that you can access these shares from another machine within your networkFor example, the original movies location was <span style="color:red">/var/hda/files/movies</span> but the new location might be <span style="color:blue">/var/hda/files/drives/drive1/movies</span>.
Finally, if you have Repeat for any services other shares that depend on the location of these shares, make sure they are configured to use the new share location. For example, if you have a DLNA server installed, check its configuration files moved to make sure that it can find any media folders that have been moved. Secondly, <em>check that all such services start correctly and behave as expected</em>. If the service doesn't start, it may be that it is testing for a specific location during the service startupnew hard drive. Check the startup files in <strong>/etc/init.d</strong> to see if this is the caseVerify these shares are accessible from another machine within your network.
That's ''NOTE:''' If any services depend on the location of a moved share, ensure they are configured to use the new share location. For example, if [https://www.amahi.org/apps/dlna DLNA] is installed, check the configuration file to verify itcan find the new share location. Your Secondly, validate that that all such services start correctly and behave as expected. If the service doesn't start, it may be that it's looking for a specific share(s) are now on your new hard drivelocation during the service start up.
==Greyhole Storage Pool==
12,424

edits