Page 1 of 2

How to safely undo the addition of an additional HDD

Posted: Wed May 02, 2012 11:52 am
by notchy
Hi all,

I needed some help and clarification in what I did and what I'm trying to undo.

I added a 2nd HDD to Amahi.

I followed the steps from this link

http://wiki.amahi.org/index.php/Adding_ ... o_your_HDA

I used the directions from section 6.1 but I should have probably used the directions from section 6.3.

I basically wanted to take advantage of Greyhole storage pool. So I will be adding additonal HDD in the near future.

I have created the storage pool already but the names of the drive moutns are the same. So I'm unable to distinguish between drive2 and drive3.

Please note: I have copied 1 TB of data onto the drives already.


Can I undo what I did without looseing the data?


So I basically want to undo the incorrect process I mounted the 2nd HDD and use section 6.3 as opposed to 6.1.

I'm a newbie so please tell me step by step in undoing what I have done

Re: How to safely undo the addition of an additional HDD

Posted: Wed May 02, 2012 12:40 pm
by sgtfoo
It's not a very noob-friendly thing to undo.
How big are the drives? Do you have any other spare drives?

Re: How to safely undo the addition of an additional HDD

Posted: Wed May 02, 2012 1:31 pm
by notchy
It's not a very noob-friendly thing to undo.
How big are the drives? Do you have any other spare drives?
I have 2 X 2TB drives.

and I have a 1TB drive hanging around.

I eventually will end up having 4 X 2TB drives as storage and the 650 GB as the install of AMAHI on it.

this is my fstab file currently.

Code: Select all

# /etc/fstab # Created by anaconda on Thu Apr 26 21:31:00 2012 # # 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 # /dev/mapper/vg_shaolin00amahi-lv_root / ext4 defaults 1 1 UUID=12a1d04c-5c26-44e2-b67e-31f9eb1b7550 /boot ext4 defaults 1 2 /dev/mapper/vg_shaolin00amahi-lv_home /home ext4 defaults 1 2 /dev/mapper/vg_shaolin00amahi-lv_swap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 UUID=68d721af-14d6-4c30-98fc-6857bee90e99 /var/hda/files ext4 defaults 1 2 UUID=d2f12c43-656f-407a-9bef-eed18773c4d5 /var/hda/files ext4 defaults 1 2

Re: How to safely undo the addition of an additional HDD

Posted: Wed May 02, 2012 6:22 pm
by bigfoot65
The problem you are experiencing is because you mounted both drives to the same location. That is not permitted.

Recommend you do the following as root user:

Code: Select all

umount -a /var/hda/files
There should be two directories in /var/hda/files/drives labeled as drive1 and drive 2. If they do not exist, create them by doing:

Code: Select all

mkdir /var/hda/files/drives/drive1 mkdir /var/hda/files/drives/drive2
Edit your /etc/fstab and change the first /var/hda/files to /var/hda/files/drives/drive1 and the second one /var/hda/files/drives/drive2.

Then do:

Code: Select all

mount -a
If all goes well, you won't have any errors and the drives will be properly mounted. Use the dashboard to add them to the pool.

Hope that helps.

Re: How to safely undo the addition of an additional HDD

Posted: Fri May 04, 2012 10:00 am
by notchy
Thanks for the feedback. I will try this on the weekend and see how it goes.
Will I end up loosing my stuff that was saved on the drive?

Re: How to safely undo the addition of an additional HDD

Posted: Fri May 04, 2012 1:15 pm
by bigfoot65
As long as you do not format the drives, you should not lose anything.

Re: How to safely undo the addition of an additional HDD

Posted: Sat May 05, 2012 5:02 am
by notchy
Thank you so much bigfoot65,

I ran into some confusion in regards to some TV shows I downloaded.

I had them in one location before I did the remounting of the drives and used greyhole to share the pool.


It seems now that in Windows Vista I can mount the shares but they are empty.

I looked on Fedora and I see 2 different locations of "TVShow" but I would like to be able to see the shows that I downloaded.

Do I just move the shows to the new samba share folder locations?
I took screen shots as this might be easier to understand. They say a picture is worth a 1000 words.


Could I just move the files in the TvShows folder that I downloaded already into the new share which is empty?

Please advise

Re: How to safely undo the addition of an additional HDD

Posted: Sat May 05, 2012 11:41 pm
by sgtfoo
maybe not a great idea to post photos online in a public forum of TV you may or may not have acquired with or without proper consent.
//just sayin'

Re: How to safely undo the addition of an additional HDD

Posted: Sun May 06, 2012 5:00 pm
by bigfoot65
I would say as long as you install the mount shares locally script for Greyhole, you can move files with no problem.

http://wiki.amahi.org/index.php/Mount_Shares_Locally

Re: How to safely undo the addition of an additional HDD

Posted: Sun May 13, 2012 3:11 am
by spline
Hi,

have you solved your problem? Do you need further advice?


Regards


Juergen