[SOLVED] Question about ZFS and RAID

mazzo08

Member
May 26, 2020
11
1
8
44
Hello

First sorry for my english ^^

With 2 disks, I have this partition:
  • Disk A : partition 1, 2 and 3
  • Disk B : partition A,B and C

There is Raid software on partition 1 and A (Raid1), partition 2 and B (Raid1) and ZFS on partition Data 3 and C

It's working but it's possible to continue on this architecture ?

Thanks
 
Hi,

sorry I am a little confused by what you mean. You do use the zfs, though? Can you then pose the output of the commands zpool list -v and just to get some more context maybe also lsblk.
 
Hello

Thanks for your reply

zpool list -v

Code:
NAME                                       SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
data                                      3.58T   321G  3.26T        -         -     2%     8%  1.00x    ONLINE  -
  mirror-0                                3.58T   321G  3.26T        -         -     2%  8.76%      -    ONLINE
    888a9a52-e198-44f2-b261-bd5d78f336b8  3.59T      -      -        -         -      -      -      -    ONLINE
    de5f9819-f334-44a6-b55f-ff69e56f814c  3.59T      -      -        -         -      -      -      -    ONLINE


lsblk

Code:
NAME    MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sda       8:0    0  3.6T  0 disk
├─sda1    8:1    0    1M  0 part
├─sda2    8:2    0  4.1G  0 part  [SWAP]
├─sda3    8:3    0  512M  0 part
│ └─md0   9:0    0  511M  0 raid1 /boot
├─sda4    8:4    0   50G  0 part
│ └─md1   9:1    0   50G  0 raid1 /
└─sda5    8:5    0  3.6T  0 part
sdb       8:16   0  3.6T  0 disk
├─sdb1    8:17   0    1M  0 part
├─sdb2    8:18   0  4.1G  0 part  [SWAP]
├─sdb3    8:19   0  512M  0 part
│ └─md0   9:0    0  511M  0 raid1 /boot
├─sdb4    8:20   0   50G  0 part
│ └─md1   9:1    0   50G  0 raid1 /
└─sdb5    8:21   0  3.6T  0 part

It's on dedicate server, installation was done on Debian 11 with raid software (md2) on sda5 and sdb5, and after installation we destroy md2 to create a zpool on sda5/sdb5

It's working with PBS (I suppose Proxmox too), but is it safe to do that?

Thanks
 
Hi,

ah ok, know I get it, you are using mdraid and zfs at the same time across the same two disks? If you can I'd highly recommend starting over and reformat the disks to just use zfs. First off, we highly discourage the use of mdraid [1]. Secondly, if one of your disks starts to fail, you will need repair both, the mdraid and zfs setup which is unnecessarily cumbersome and will prohibit a swift recover.

So yeah, this might work, but if it starts to fail, you might be in bigger trouble than you expect and I'd highly encourage you to switch to just using zfs.
 
No problem. Sorry for the inconvenience. Since your question has been resolved please mark the thread as "solved". You can do so by clicking on "Edit thread" at the top, then add the "Solved" prefix in the dialog that will open.

Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!