ZFS Filesystem

objective:

1 zfs pool aanmaken met daarin 2 filesystems:
beide filesystems hebben de beschikking over
de totale opslag van de pool:

stap 1: aanmaken zfs-pool op 1 lege slice:

# zpool create -f pool1 c0d0s7

stap 2: aanmaken filesystem in zfs pool:

# zfs create pool1/export

stap 3: aanpassen mount point:

# zfs mountpoint=/export pool1/export

stap 4: nog een ander filesystem aanmaken in pool:

# zfs create pool1/home_dir

stap 5: aanpassen mount point:

# zfs mountpoint=/home_dirs pool1/homedir

stap 6: overzichtje zfs pools:

# zfs list

NAME USED AVAIL REFER MOUNTPOINT
pool1 248K 9,05G 8K /pool1
pool1/export 8,50K 9,05G 8,50K /export
pool1/home_dir 154K 9,05G 154K /home_dirs

tadaa! zowel /home_dirs als /export zitten in de
zfs pool pool1 en hebben beide 9 Gb tot hun beschikking

Aanmaken ZFS mirror:

root@myhost:~# zpool create raid1 mirror c0d1 c1d0
root@myhost:~# zpool status raid1
pool: raid1
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
raid1 ONLINE 0 0 0
mirror ONLINE 0 0 0
c0d1 ONLINE 0 0 0
c1d0 ONLINE 0 0 0

errors: No known data errors

Aanmaken ZFS RAID5 pool:

root@myhost:~# zpool create raid5 raidz c0d1 c1d0 c1d1
root@myhost:~# zpool status raid5
pool: raid5
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
raid5 ONLINE 0 0 0
raidz1 ONLINE 0 0 0
c0d1 ONLINE 0 0 0
c1d0 ONLINE 0 0 0
c1d1 ONLINE 0 0 0

errors: No known data errors

compressie aanzetten op ZFS volume:

root@myhost:~# zfs set compression=on raid1
root@myhost:~# zfs set compression=on syspool

quota zetten op ZFS volume:

root@myhost:~# zfs set quota=800m raid1/homedirs/emile

checken van quota:

root@myhost:~# zfs list -o name,used,available,reservation,quota
NAME USED AVAIL RESERV QUOTA
raid1 165K 976M none none
raid1/homedirs 36.5K 976M none none
raid1/homedirs/emile 18.5K 800M none 800M

Posted in ZFS | 28 Responses

Protected: Product keys Thinapp

This content is password protected. To view it please enter your password below:

Posted in Productkeys | Leave a comment