I have a single disk on my server. I simply went for ZFS "stripe" (no redundancy) when installing FreeBSD.
And
I have two basic questions:
zpool status
prints the following:
Code:
pool: zroot
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
ada0p4 ONLINE 0 0 0
errors: No known data errors
And
zfs list
the following:
Code:
NAME USED AVAIL REFER MOUNTPOINT
zroot 3.78G 219G 96K /zroot
zroot/ROOT 2.49G 219G 96K none
zroot/ROOT/default 2.49G 219G 2.49G /
zroot/tmp 138M 219G 138M /tmp
zroot/usr 1.15G 219G 96K /usr
zroot/usr/home 523M 219G 523M /usr/home
zroot/usr/ports 658M 219G 658M /usr/ports
zroot/usr/src 96K 219G 96K /usr/src
zroot/var 1.17M 219G 96K /var
zroot/var/audit 96K 219G 96K /var/audit
zroot/var/crash 96K 219G 96K /var/crash
zroot/var/log 508K 219G 508K /var/log
zroot/var/mail 308K 219G 308K /var/mail
zroot/var/tmp 96K 219G 96K /var/tmp
I have two basic questions:
- Since I only have 1 disk, is creating a new zpool needed/possible? Or should I create zfs filesystems in the existing "zroot" zpool?
- I already have data in my home directory (
/user/home/username
), but this directory is not a ZFS filesystem. I thought I could add it as one withzfs create zroot/usr/home/username
, but then data in that directory disappeared. To recover it I had to destroy the filesystem withzfs destroy zroot/usr/home/username
. How can I make my home directory a ZFS filesystem while it has data in it? Or should I have created it before putting moving data into it?