How to safely undo the addition of an additional HDD

notchy
Posts: 6
Joined: Wed May 02, 2012 11:49 am

How to safely undo the addition of an additional HDD

Postby notchy » Wed May 02, 2012 11:52 am

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

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

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

Postby sgtfoo » Wed May 02, 2012 12:40 pm

It's not a very noob-friendly thing to undo.
How big are the drives? Do you have any other spare drives?
SgtFoo
HDA: VM inside oVirt FX-8300 95w (2 cores for HDA), 32GB RAM (2GB for HDA)
My PC: FX-8300, 16GB RAM, 3x 1TB HDDs, Radeon HD6970 2GB video; Win10 Pro x64
Other: PC, Asus 1215n (LXLE), Debian openZFS server (3x(2x2tb) mirrors)
Modem&Network: Thomson DCM475; Asus RT-AC66U; HP 1800-24G switch

notchy
Posts: 6
Joined: Wed May 02, 2012 11:49 am

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

Postby notchy » Wed May 02, 2012 1:31 pm

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

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

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

Postby bigfoot65 » Wed May 02, 2012 6:22 pm

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.
ßîgƒσστ65
Applications Manager

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

notchy
Posts: 6
Joined: Wed May 02, 2012 11:49 am

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

Postby notchy » Fri May 04, 2012 10:00 am

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?

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

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

Postby bigfoot65 » Fri May 04, 2012 1:15 pm

As long as you do not format the drives, you should not lose anything.
ßîgƒσστ65
Applications Manager

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

notchy
Posts: 6
Joined: Wed May 02, 2012 11:49 am

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

Postby notchy » Sat May 05, 2012 5:02 am

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
Attachments
Drive 1 for Pool.png
This is what I see in Windows Share
Drive 1 for Pool.png (50.16 KiB) Viewed 4563 times
Files I wantto access.png
These are the files of the tv shows I'm unable to see in my new share
Files I wantto access.png (75.2 KiB) Viewed 4563 times
Screenshot.png
Location of my New Share for "TVShow"
Screenshot.png (91.69 KiB) Viewed 4563 times

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

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

Postby sgtfoo » Sat May 05, 2012 11:41 pm

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'

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

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

Postby bigfoot65 » Sun May 06, 2012 5:00 pm

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
ßîgƒσστ65
Applications Manager

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

spline
Posts: 35
Joined: Wed Jan 05, 2011 3:56 am

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

Postby spline » Sun May 13, 2012 3:11 am

Hi,

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


Regards


Juergen

Who is online

Users browsing this forum: No registered users and 6 guests