Expanding single drive to two drive mirror?

Status
Not open for further replies.

jakeandchase

Explorer
Joined
Aug 26, 2014
Messages
53
Hi All,

Today I bought the same HDD (Samsung NAS 3tb) as I currently have in my NAS.

I wish to insert it in my HP n54l and mirror the data currently on my single hard drive on that second drive and mirror all on going data.

Could someone run me through this or send me a guide? Will I HAVE to format my current single drive?

Thanks.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
It's possible from the command line. There's information on the topic somewhere on the forum... Not sure where...
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
It might be worth looking at the partition structure on the existing drive and trying to duplicate it on the new drive. Then try the zpool command to attach it, from a recent version of man zpool. I don't know if or how you have to attach the swap partition.
 

mjws00

Guru
Joined
Jul 25, 2014
Messages
798

kjp4756

Contributor
Joined
Feb 11, 2014
Messages
102
I went through this same scenario recently and it went smoothly. I started with a single 3TB WD Red that I set up using the gui. I then copied the data off of my other 3TB WD Red to the new pool. After the data was moved I put the 2nd drive in the server and manually partitioned it in a similar way to the post mjws00 linked to.

The only problem I ran in to was the drive I set up using the gui (9.2.1.8 at the time) was NOT using 4k aligned partitions. I don't get why all of these CLI posts about partitioning drives recommend 4k aligned (the -a 4096 in gpart) when the gui does not partition drives 4k aligned. This caused be a fair bit of grief at the time when I went to attach the new drive to the pool.

Seeing as how you already have 1 drive running in freenas, follow the link mjws00 posted. Only make sure to omit the '-a 4096' from the gpart commands. The instructions in that link show how to set up 2 drives from scratch using the CLI. You only need to do 1 drive.
 

jakeandchase

Explorer
Joined
Aug 26, 2014
Messages
53
Okay so I followed http://ukhov.ru/node/431 and it all went well until attaching the partitions.

I've attached the error when i type

Code:
zpool attach DATA1 /dev/gptid/1616f111-29cc-11e4-ba37-38eaa7abfe00 /dev/gptid/d6e1a7ee-8004-11e4-9adf-38eaa7abfe00
 

Attachments

  • IMG_0363.PNG
    IMG_0363.PNG
    520.6 KB · Views: 377
Last edited:

kjp4756

Contributor
Joined
Feb 11, 2014
Messages
102
Post the output of zpool status

Thanks
 

kjp4756

Contributor
Joined
Feb 11, 2014
Messages
102
Instead of doing:

Code:
zpool attach DATA1 /dev/gptid/1616f111-29cc-11e4-ba37-38eaa7abfe00 /dev/gptid/d6e1a7ee-8004-11e4-9adf-38eaa7abfe00


Try:

Code:
zpool attach DATA1 gptid/1616f111-29cc-11e4-ba37-38eaa7abfe00.eli  gptid/d6e1a7ee-8004-11e4-9adf-38eaa7abfe00
 

jakeandchase

Explorer
Joined
Aug 26, 2014
Messages
53
Code:
zpool attach DATA1 gptid/1616f111-29cc-11e4-ba37-38eaa7abfe00.eli  gptid/d6e1a7ee-8004-11e4-9adf-38eaa7abfe00
cannot attach gptid/d6e1a7ee-8004-11e4-9adf-38eaa7abfe00 to gptid/1616f111-29cc-11e4-ba37-38eaa7abfe00.eli: no such device in pool

 

kjp4756

Contributor
Joined
Feb 11, 2014
Messages
102
That's odd. I'm not sure what else I could suggest. Post the output of 'ls /dev/gptid' and lets see how things look there.
 

jakeandchase

Explorer
Joined
Aug 26, 2014
Messages
53
I've attached "ls /dev/gptid"
gpart list ada0
gpart list ada1
 

Attachments

  • IMG_0369.PNG
    IMG_0369.PNG
    309 KB · Views: 352
  • IMG_0370.PNG
    IMG_0370.PNG
    406.6 KB · Views: 376
  • IMG_0371.PNG
    IMG_0371.PNG
    406.7 KB · Views: 339

kjp4756

Contributor
Joined
Feb 11, 2014
Messages
102
Oh wait. I think I see the problem. Your pool is encrypted, correct? I'm not sure if you can create a mirror out of a single drive encrypted pool. I think that's what the .eli is about in the gptid.
 

jakeandchase

Explorer
Joined
Aug 26, 2014
Messages
53
Oh wait. I think I see the problem. Your pool is encrypted, correct? I'm not sure if you can create a mirror out of a single drive encrypted pool. I think that's what the .eli is about in the gptid.
I'm not sure. I just created the Pool through the WebGUI. Can someone be able to help me identify if it's encrypted? Is it possible to unencrypt it or will I have format everything?
 
Last edited:
Status
Not open for further replies.
Top