Block Device /dev/md0?

Hello,

How does LXD use a blockdevice in softwareraid /dev/md0?
I have created a softraid 1 volume without filesystem as ‘local storage’

Is this ok? or are there more requirements?

Update: https://blog.simos.info/configuring-lxd-on-an-amd-epyc-server-at-packet-net/
I think this is the confirmation. Thanks Simos :slight_smile:

Hi!

In the blog post, I put ZFS on /dev/md0 for my convenience to make the post somewhat shorter.

ZFS itself (or similar filesystems) can handle different RAID types and performs better if you set it up directly on the multiple disks. Someone even commented on this issue in a comment at the blog post. :slight_smile:

1 Like

One more question.

I’ve created zpool with the name ‘local’ in mirror-mode.
NAME STATE READ WRITE CKSUM
local ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sda ONLINE 0 0 0
sdb ONLINE 0 0 0

Is this information correct?
Choose “zfs.pool_name” property for storage pool “local”: local
Choose “source” property for storage pool “local”: local
Choose “volatile.initial_source” property for storage pool “local”: local

2 nodes in a cluster with /dev/sda & /dev/sdb in ZFS pool ‘local’. Not sure about the property answers.
/dev/sdc = OS Disk (Ubuntu 18.04)

Solved: lxc storage show local --target to show the config/default names.