Cache, Log Devices and some problems with freenas

Status
Not open for further replies.

vanhaakonnen

Dabbler
Joined
Sep 9, 2011
Messages
32
Hello,

I wanted to chance my log and cache SSDs in my system and configured them (1 ssd for log and 1 ssd for cache) as offline the the freenas gui. After that I removed them and chanched the disks.
Then I added (so I tought) only one disk as cache to my existing Volume but something went wrong:

FreeNAS didn´t add the disk as an ssd:

Code:
[root@freenas] ~# zpool status -v
  pool: ZFS
 state: ONLINE
  scan: none requested
config:

        NAME                                            STATE     READ WRITE CKSUM
        ZFS                                             ONLINE       0     0     0
          raidz1-0                                      ONLINE       0     0     0
            gptid/0d8ccb5b-0ef1-11e2-a30d-00151737f860  ONLINE       0     0     0
            gptid/0e4373fd-0ef1-11e2-a30d-00151737f860  ONLINE       0     0     0
            gptid/0f02f99a-0ef1-11e2-a30d-00151737f860  ONLINE       0     0     0
          gptid/2b713bfc-687b-11e2-b3a9-00151737f861    ONLINE       0     0     0
          raidz1-2                                      ONLINE       0     0     0
            gptid/2785f31d-0ef1-11e2-a30d-00151737f860  ONLINE       0     0     0
            gptid/2837f2d6-0ef1-11e2-a30d-00151737f860  ONLINE       0     0     0
            gptid/28f3c26a-0ef1-11e2-a30d-00151737f860  ONLINE       0     0     0


gptid/2b713bfc-687b-11e2-b3a9-00151737f861 >> is the ssd - but normally the pool should only be 2x3 disks. When I want to remove the SSD I get the following message:

Code:
[root@freenas] ~# zpool offline ZFS gptid/2b713bfc-687b-11e2-b3a9-00151737f861
cannot offline gptid/2b713bfc-687b-11e2-b3a9-00151737f861: no valid replicas


How can I remove the ssd from the pool and configure my two ssds as log and cache devices?

Thanks

VanHaakonnen
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Yeah, you can't remove the disk now. The only way is to destroy the zpool. Also, that disk has NO redundancy. So if that disk fails you lose the entire pool.
 

vanhaakonnen

Dabbler
Joined
Sep 9, 2011
Messages
32
sh**. Thank you. Then I must save my data, destroy the pool and copy everything back to my system...
 

TheSmoker

Patron
Joined
Sep 19, 2012
Messages
225
What version of FreeNAS you are running? Upgrade to 8.3.0, upgrade ZFS to v28, then you will be able to remove both cache and log drives without damage to the pool.
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
What version of FreeNAS you are running? Upgrade to 8.3.0, upgrade ZFS to v28, then you will be able to remove both cache and log drives without damage to the pool.
The output of 'zpool status' indicates that the SSD isn't in use as cache or log though. If it were, there would be a 'logs' or 'cache' section. Maybe those were trimmed from the end, but at least the SSD in question is part of the main pool as an independent VDEV.
 
Status
Not open for further replies.
Top