Adding HDD

Status
Not open for further replies.

programmer01001

Dabbler
Joined
Jan 29, 2014
Messages
12
Hello,

I have one HDD installed in NAS system with ZFS. Some data is already written on that drive.
What I want to do is add a second drive to do a mirror of first one, without loosing data.
How can that be achieved?

Thank you in advance!
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
Please post output of:
zpool status
glabel status
gpart show
 

programmer01001

Dabbler
Joined
Jan 29, 2014
Messages
12
I've uploaded the screenshot
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    149.5 KB · Views: 274

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
OK, so you need to run:
zpool attach Volume1 /dev/gptid/c0600c49-81d3-11e3-88bd-d4bed99312c8 /dev/gptid/68501d02-890b-11e3-a3f5-a0f3c1019cfc
As you did not paste the data but attached a screenshot I may have mistyped the GUIDs. The first one should be the one from zpool status the second one should be the ada1p2 GPTID from glabel status. To make sure that you got them right just copy & paste them in the shell.
 

programmer01001

Dabbler
Joined
Jan 29, 2014
Messages
12
OK, so you need to run:
zpool attach Volume1 /dev/gptid/c0600c49-81d3-11e3-88bd-d4bed99312c8 /dev/gptid/68501d02-890b-11e3-a3f5-a0f3c1019cfc
As you did not paste the data but attached a screenshot I may have mistyped the GUIDs. The first one should be the one from zpool status the second one should be the ada1p2 GPTID from glabel status. To make sure that you got them right just copy & paste them in the shell.


Unfortunately I have the same error. Can it be a bug?
 

Attachments

  • Untitled1.jpg
    Untitled1.jpg
    51.2 KB · Views: 301

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
I just tried in in a VM and it worked. Are you sure you aren't mistyping something? Letter O instead of number 0, ...
Can you please copy&paste the output of zpool status and glabel status and the command you are trying to run (instead of attaching screenshots)?
 

programmer01001

Dabbler
Joined
Jan 29, 2014
Messages
12
I just tried in in a VM and it worked. Are you sure you aren't mistyping something? Letter O instead of number 0, ...
Can you please copy&paste the output of zpool status and glabel status and the command you are trying to run (instead of attaching screenshots)?



No mistyping, because I'm copying the gptids from following command outputs.

zpool status:


pool: Volume1
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
Volume1 ONLINE 0 0 0
gptid/c0600c49-81d3-11e3-88bd-d4bed99312c8 ONLINE 0 0 0

errors: No known data errors


glabel status:

Name Status Components
gptid/c0600c49-81d3-11e3-88bd-d4bed99312c8 N/A ada0p2
iso9660/GRMSXFRER_EN_DVD N/A cd0
ufs/FreeNASs3 N/A da0s3
ufs/FreeNASs4 N/A da0s4
ufs/FreeNASs1a N/A da0s1a
gptid/60e0f727-890b-11e3-a3f5-a0f3c1019cfc N/A ada1p1
gptid/68501d02-890b-11e3-a3f5-a0f3c1019cfc N/A ada1p2
 
Status
Not open for further replies.
Top