Adding a new HDD to a Freenas

Status
Not open for further replies.

ives31

Dabbler
Joined
Oct 17, 2014
Messages
33
Hi,
I'm running freenas 9.2.1.8 with 3x 2tb drives in RAIDZ. Basically I want t extend my volume. It currently has about 3.6tb when in RAIDZ
I want to add another 2 tb drive but I'm unsure of the basic steps.
I've read the manual and it's not that clear.
Can anyone give me some pointers on how to proceed?
thanks
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
You can't get there from here. Read cyberjock's presentation (it's one of the sticky threads in this forum) for the long answer.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
You can't change vdevs other than by replacing their disks one by one.
Alternatively, you can add more vdevs, which means you'd need to add a mirror at the very least
 

ives31

Dabbler
Joined
Oct 17, 2014
Messages
33
Thanks.
I read most of cyberjock's presentation.
If I've understood this correctly, I can add a new vdev (i.e. virtual disk) in the same zpool (volume)
So, I could for example get another 3 hdd's and add a new vdev in my existing volume.
Is that right?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Thanks.
I read most of cyberjock's presentation.
If I've understood this correctly, I can add a new vdev (i.e. virtual disk) in the same zpool (volume)
So, I could for example get another 3 hdd's and add a new vdev in my existing volume.
Is that right?

Yes. It is recommended that you avoid RADIZ1, however. RAIDZ2 is significantly safer.
 

ives31

Dabbler
Joined
Oct 17, 2014
Messages
33
Thanks.
So what is the basic process, using the web gui, to adding a new vdev?
First, power off the machine, install new hdd's and reboot.
Then....?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Thanks.
So what is the basic process, using the web gui, to adding a new vdev?
First, power off the machine, install new hdd's and reboot.
Then....?
Read the manual. The process must be followed closely to get the desired results. Link is at the top of the page, last blue link.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
So, you want to add a single 2TB drive to a system which contains three 2TB drives in a RAIDZ configuration?

Question time:
1) How much data do you have stored on your current system?
2) Could you back this all up to another drive or system? If you can then do that and then destroy your current pool and and recreate a new pool with all four drives.
3) If you can't, is it okay to have the new 2TB drive as a separate volume, not actually expanding the current pool you have running? If yes, then just add a new pool with the single drive however you will be down to if a failure occurs of that drive, that data is of course lost.
 

ives31

Dabbler
Joined
Oct 17, 2014
Messages
33
Thanks for the replies and ideas.
I was initially thinking about adding just 1 extra drive, but it seems sensible to add more. Maybe 3.
If so, I could add 3 more drives to the same zpool but what about if I created a new volume and created a new vdev with the 3 new hdd?
What is the advantage of one over the other?

thanks
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Thanks for the replies and ideas.
I was initially thinking about adding just 1 extra drive, but it seems sensible to add more. Maybe 3.
If so, I could add 3 more drives to the same zpool but what about if I created a new volume and created a new vdev with the 3 new hdd?
What is the advantage of one over the other?

thanks

Two pools: If one fails, the other is untouched. Allows you to cleanly move to RAIDZ2.
One pool: Your storage is unified.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Also you must factor in the following:
As you already know if you create another vdev using three more 2TB drives you would end up with a 3.6TB RAIDZ1 pool. The down side to this is you have only gained 3.6TB of storage and you still retain protection for a single drive failure of each pool. Total storage is 7.2TB

I wish you would have answered my question about how much data you currently have stored as this is a factor in giving you good advice but lets assume you can back this up and destroy your current pool. You could add three more 2TB drives and create a pool as a RAIDZ2 which allows for two drives to fail and you still have a safe system and you still have 7.2TB of storage but under one pool. Lets take those same drives to a RAIDZ1 and you end up with 9.1TB of usable space but only with a single drive failure of protection.

I'm not sure how safe you want your data but we do try to push RAIDZ2 if there is any important data or the recovery of the data is something you don't want to deal with. I started out with four 2TB drives in a RAIDZ1 and ended up with six 2TB drives in a RAIDZ2 and am very happy with that arrangement.

Now lets explore a third option... Lets say you are not able to backup all your data but really want to just double your storage space easily. Well you could purchase three 4TB drives and using the manual, replace each drive one at a time and let it resilver each drive before continuing. The risk is if you screw up you loose all your data. The reward is after you install the third 4TB drive your pool will automatically double in size. Now you have doubled your pool size and you have three 2TB drives in which you can manually wipe clean and then use to create another pool of three drives if you want.

There are a lot of options but you need to figure out what you want your system to do.

-Joe
 

ives31

Dabbler
Joined
Oct 17, 2014
Messages
33
Also you must factor in the following:
As you already know if you create another vdev using three more 2TB drives you would end up with a 3.6TB RAIDZ1 pool. The down side to this is you have only gained 3.6TB of storage and you still retain protection for a single drive failure of each pool. Total storage is 7.2TB

I wish you would have answered my question about how much data you currently have stored as this is a factor in giving you good advice but lets assume you can back this up and destroy your current pool. You could add three more 2TB drives and create a pool as a RAIDZ2 which allows for two drives to fail and you still have a safe system and you still have 7.2TB of storage but under one pool. Lets take those same drives to a RAIDZ1 and you end up with 9.1TB of usable space but only with a single drive failure of protection.

I'm not sure how safe you want your data but we do try to push RAIDZ2 if there is any important data or the recovery of the data is something you don't want to deal with. I started out with four 2TB drives in a RAIDZ1 and ended up with six 2TB drives in a RAIDZ2 and am very happy with that arrangement.

Now lets explore a third option... Lets say you are not able to backup all your data but really want to just double your storage space easily. Well you could purchase three 4TB drives and using the manual, replace each drive one at a time and let it resilver each drive before continuing. The risk is if you screw up you loose all your data. The reward is after you install the third 4TB drive your pool will automatically double in size. Now you have doubled your pool size and you have three 2TB drives in which you can manually wipe clean and then use to create another pool of three drives if you want.

There are a lot of options but you need to figure out what you want your system to do.

-Joe
hi and thanks for the reply
I currently have about 1 tb left and am wanting to plan ahead since in a few months that 1tb will run out.

To be honest I didn't realise that freenas was so technicaly demanding for a newcomer.I might have reconsidered if i'd known.
I did some research and all the videos I saw on youtube were saying quite flippantly that Freenas is so cool, its easy to set up and this is how you do it blah blah blah.
What none of thee videos tell you is that to properly administer you system you have to learn a lot about freebsd, RAID ,command line etc.
Anyway, i'm here now .
To answer your question, I could in theory back up my data on a couple of USB hdd and.create one zpool.
Replacing each 2tb drive with a 4tb drive sounds like a recipe for disaster as Im sure something will go wrong.

From an ease of use perspective, creating a new zpool seems like the easiest option to me.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
FreeNAS is as easy as you want to make it but it has never been claimed to be a point and shoot or one click type solution. FreeNAS is meant for someone willing to invest some time into learning some basics and is a corporate level solution for free. You don't need to know anything about command line stuff if you are setting up a simple NAS solution but you do need to understand RAIDZ.

Also, are those RAM modules non-ECC? I'm sure you read about the issues there with respect to using FreeNAS and data corruption.

Adding a new vdev as you say might be a better option for you. Good luck with your choice.
 
Status
Not open for further replies.
Top