How are files allocated to disks

Nigma
Posts: 2
Joined: Wed Jan 05, 2011 8:39 am

How are files allocated to disks

Postby Nigma » Wed Jan 05, 2011 8:43 am

Hi,
I am wondering when i add a file to a disk pool... how is it decided which physical disk it will reside on ?..

Current using Ubuntu Server for sharing 2 physical disks - but like the look of Amahi. My concern is that one of my disks contains all my HD content while the other disk contains Documents, Music & Pictures. Ideally i want to keep the division like that. So when I add a HD movie, it will go to the correct drive.

The other question is, if i have a ext4 disk full of content - can i simply add it to the pool without it destroying the data on it ?

If my Amahi box fails, I assume can pull out the drives and disk can be accessed in the normal manner to view the files ?

Appologies for the newbie questions - but i don't want to risk loosing my data.

Thanks,
Anand

easycompany
Posts: 6
Joined: Sun Jan 02, 2011 9:30 am

Re: How are files allocated to disks

Postby easycompany » Wed Jan 05, 2011 8:41 pm

how is it decided which physical disk it will reside on ?..
From what I understand, you cannot specifically choose which disks certain data will reside on.
My concern is that one of my disks contains all my HD content while the other disk contains Documents, Music & Pictures.
If you have multiple drives, you can configure Amahi so that certain shares are stored on more than one drive. For example, your Pictures share, you may want to have the maximum number of allowed copies. So Amahi will leave a copy of your pictures share on every drive in the storage pool.
The other question is, if i have a ext4 disk full of content - can i simply add it to the pool without it destroying the data on it ?
Yes I believe so. Check this link: http://wiki.amahi.org/index.php?title=G ... edirect=no under the heading, Copying your data into greyhole shares for the first time.
If my Amahi box fails, I assume can pull out the drives and disk can be accessed in the normal manner to view the files ?
Yes

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: How are files allocated to disks

Postby gboudreau » Tue Jan 18, 2011 7:11 pm

I am wondering when i add a file to a disk pool... how is it decided which physical disk it will reside on ?..
The drive with the most available space is used first. Exception: sticky files (see next answer).
Current using Ubuntu Server for sharing 2 physical disks - but like the look of Amahi. My concern is that one of my disks contains all my HD content while the other disk contains Documents, Music & Pictures. Ideally i want to keep the division like that. So when I add a HD movie, it will go to the correct drive.
What you want is sticky files.
You basically tell Greyhole where to keep files in specific shares or directories.
The Music share is sticky by default, but you can edit greyhole.yml, and make all/any share sticky if you'd like.
The other question is, if i have a ext4 disk full of content - can i simply add it to the pool without it destroying the data on it ?

If my Amahi box fails, I assume can pull out the drives and disk can be accessed in the normal manner to view the files ?
easycompany is right about those.
Apologies for the newbie questions - but i don't want to risk loosing my data.
Apologies for the late response; I don't read new posts in this forum very often.
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 30 guests