Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a ZFS pool with 4 drives. It also has a 3gb ZIL and a 20GB L2ARC that are each partitions on an SDD that doubles as my Linux Mint (ver. 13) boot drive. The pool is mounted to /data.

The problem I am running into is that when I restart the server the pool/directory is completely wiped despite having data in it prior. I'm afraid I'm doing something wrong in the setup, which leads me to the following questions:

  1. What would cause this?
  2. Is there anyway to get the data back?
  3. How do I stop it from happening in the future?

Thank you in advance!

pool: data

state: ONLINE

scan: none

requested config:

NAME        STATE     READ WRITE CKSUM
data        ONLINE       0     0     0
  raidz2-0  ONLINE       0     0     0
    sda1    ONLINE       0     0     0
    sdb1    ONLINE       0     0     0
    sdc1    ONLINE       0     0     0
    sdd1    ONLINE       0     0     0
logs
  sde4      ONLINE       0     0     0
cache
  sde3      ONLINE       0     0     0

errors: No known data errors

Edit

It looks like it thinks my boot partition is also full when it shouldn't be. The numbers aren't adding up (see screenshot).

hdd

share|improve this question
    
Try removing your L2ARC and ZIL from the pool and testing to see if pool data persists across reboots. –  ewwhite Sep 1 '12 at 3:36
    
Yea, no go. Although it did survive a restart, I logged in with a different user and the files were gone. –  Chance Sep 1 '12 at 17:37

1 Answer 1

up vote 0 down vote accepted

I'm not sure how this happened but apparently a directory named "data" existed on my filesystem. When I destroyed the zpool, the directory and the files were visible.

I don't know if exporting/importing with a new name caused a mkdir call to happen out of sequence or what but I double checked to make sure there wasn't a dir with the same name as te pool before creating it.

Anyway, it's working without a hitch now.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.