'Missing' Disk/Storage Space

Status
Not open for further replies.

twisted

Dabbler
Joined
Sep 12, 2012
Messages
23
Hi All,

I am just getting my head around FreeNAS and have run into an odd situation, at least not one I can understand. I'm just starting to test playing around with FreeNAS with an eye to move to using it as my permanent storage solution at home. The problem I have is that I'm testing with a 250GB drive, just a single. And a whole bunch of storage has gone missing over night. I'm sure its something I did but I'm not sure what. What I initially did was create a volume called datapool, using the whole 250GB of space.

Nightly report on day 1.

Code:
Filesystem              Size    Used   Avail Capacity  Mounted on
datapool               226G     40k    226G     0%    /mnt/datapool


I stuck data right into this datapool volume.

Code:
Filesystem              Size    Used   Avail Capacity  Mounted on
datapool               226G     80G    146G    35%    /mnt/datapool


I then discovered datasets. Not really sure what they were I did some reading and it seemed to be like creating a dataset was the best way to store data rather than directly using volumes. So I created a dataset inside my datapool volume called files to play around.

Code:
Filesystem              Size    Used   Avail Capacity  Mounted on
datapool               226G     80G    146G    35%    /mnt/datapool
datapool/files         146G     33k    146G     0%    /mnt/datapool/files


I then created another dataset inside datapool called mac_dropbox and moved the dropbox data I had been storing from datapool to the mac_dropbox dataset. I did this by just using mv /mnt/datapool/Dropbox /mnt/datapool/mac_dropbox. Everything seemed to go smoothly, so I thought. But you'll notice I had not noticed that suddenly my datapool and datapool/files space had suddenly become 59G.

Code:
Filesystem              Size    Used   Avail Capacity  Mounted on
datapool                 59G     15M     59G     0%    /mnt/datapool
datapool/files          59G     38k      59G     0%    /mnt/datapool/files
datapool/mac_dropbox    146G     86G     59G    59%    /mnt/datapool/mac_dropbox


I noticed this and thought that's odd, maybe it was something to do with the files dataset. So I deleted it. This didn't change anything. My datapool still says that it has 59G space and no change on datapool/mac_dropbox.

Code:
Filesystem              Size    Used   Avail Capacity  Mounted on
datapool                 59G     15M     59G     0%    /mnt/datapool
datapool/mac_dropbox    146G     86G     59G    59%    /mnt/datapool/mac_dropbox


What could I have done to do this and how do I possibly undo it? :)

Output from du and zpool below as well.

Code:
[root@freenas] /mnt/datapool/mac_dropbox# zpool list
NAME       SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
datapool   230G   167G  63.4G    72%  1.00x  ONLINE  /mnt




Code:
[root@freenas] /mnt# du -h -d 2 | sort -r -n
512B    ./.snap
 86G    ./datapool/mac_dropbox
 86G    ./datapool
 86G    .


Any help is appreciated :)

- - - Updated - - -

Actually I just ran zfs list and got what I expected.

Code:
[root@freenas] /mnt/datapool/mac_dropbox# zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
datapool               167G  59.8G  15.3M  /mnt/datapool
datapool/mac_dropbox  86.2G  59.8G  86.2G  /mnt/datapool/mac_dropbox


So what's going on here? :)
 

twisted

Dabbler
Joined
Sep 12, 2012
Messages
23
Oh dear...OK I've just solved my own problem. I had a snapshot taking up the space!
 
Status
Not open for further replies.
Top