1 Striped disk converting to 2 disk mirror

Status
Not open for further replies.

Stewart Adey

Cadet
Joined
Mar 23, 2014
Messages
2
Hello, I have been a big fan of FreeNAS for quite a while and have been using (and learning ) in both home and office space.
My office has been running off 1 drive ( bad i know) but I have recently acquired two identical WD Black 640GB drives. I installed them in the machine and were recognized by freeNAS. When I went to try to "replace" the striped single drive with the two new drives as a mirror, I couldn't figure out how freeNAS would know where the data should be replicated. The reason why I am hesitant with the move is I need the snapshots kept, so an rsync from one volume to another would not work?

here is a screenshot of zpool status:

Code:
[root@BLSserver] ~# zpool status
  pool: BLS
state: ONLINE
  scan: resilvered 4.11M in 0h2m with 0 errors on Sat Sep 20 12:15:48 2014
config:

    NAME                                                STATE     READ WRITE CKSUM
    BLS                                                 ONLINE       0     0     0
      gptid/59209a49-b0f8-11e3-ad94-001ec97a0998.eli    ONLINE       0     0     0
      mirror-1                                          ONLINE       0     0     0
        gptid/6920e027-4013-11e4-a013-001ec97a0998.eli  ONLINE       0     0     0
        gptid/a5172948-406b-11e4-a013-001ec97a0998.eli  ONLINE       0     0     0

errors: No known data errors


So I have extended the pool BLS to include a 2 drive mirror. Is it safe to remove the striped disk (gptid/59209a49-b0f8-11e3-ad94-001ec97a0998.eli)? What data is currently on the mirror?

Any help appreciated
Thanks
 

mjws00

Guru
Joined
Jul 25, 2014
Messages
798
You now have a mirror striped with your single drive. You can NOT remove it or the mirror without losing the pool. You have one drive redundancy within the mirror vdev. This is the part where zfs is not real forgiving, sorry.

Only way out is to rebuild the pool, and that means restoring the data from a backup. With a backup in place, you could pull one of the mirror drives and use it as temporary "transfer" storage and move the data from the degraded pool. You don't have many legit options. Very best would be grab a new disk. Move the data. Rebuild the pool. Transfer the data back.

Good luck. This can be a tough spot if you don't have room to juggle.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
What mjws00 said.

Read my noobie guide, in particular slide 17. You do not have the option of removing the single disk, ever. The only option you have is to destroy the pool and restore from backup.
 

Stewart Adey

Cadet
Joined
Mar 23, 2014
Messages
2
What mjws00 said.

Read my noobie guide, in particular slide 17. You do not have the option of removing the single disk, ever. The only option you have is to destroy the pool and restore from backup.
So in doing this, it destroys snapshots? Is there anyway to save the snapshots?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Yes... use replication to copy your data from one pool to another.
 
Status
Not open for further replies.
Top