Solved ZFS on VPS with single drive

Hi,

I am trying to set FreeBSD 11.1 on ZFS on a vps...
The VPS has a single disk of 500gb and 8gb RAM.

On my physical server I have a minimum of 6 disk in raidz2... but how does it work for vps?
I set zfs as 'stripe' and I got a running system..
The question is: it safe ?

I know that the hoster has massive san and redundancy servers etc so I guess disk failure is not going to happen but what about checksum, compression, and parity?

I'll appreciate any advise.

Thank you
 
Works just fine:
Code:
dice@armitage:~ % zpool list
NAME    SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
zroot   147G   117G  29.7G         -    46%    79%  1.00x  ONLINE  -
dice@armitage:~ % zpool status
  pool: zroot
 state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        zroot       ONLINE       0     0     0
          vtbd0p3   ONLINE       0     0     0

errors: No known data errors

But note that you do not get fault-tolerance and errors are only detected not corrected. But you can set the copies property on a filesystem to 2 or higher. Then you do get error detection and correction on that filesystem. If the disk breaks you lose the whole pool obviously but because this is a VPS it's not very likely to happen.
 
What command do I run to check how many copies is set?
zfs get copies zroot

Note that everything will now be written 3 times to disk, so a 10K file will take up 30K on disk (1 original + 2 extra; total 3).
 
Would you recommend to stick to 2 copies?
The vps will only be used to receive our zfs snapshots
 
Just had a look at my production server...
# zfs get copies zroot
Code:
NAME   PROPERTY  VALUE   SOURCE
zroot  copies    1       default
Our production server has 6 HHD, should I be changing the copies to 2?
 
Our production server has 6 HHD, should I be changing the copies to 2?
No. Assuming you're already using those disks in a RAID configuration (RAIDZ, Z2, mirror, etc) you already have error correction (the redundancy is provided by ZFS' RAID).
 
Production is on raidz2 so i'm good then..@SirDice thank you for putting my mind at ease :)
 
Back
Top