[SOLVED] ZFS Raid

shorez

New Member
May 21, 2018
10
3
3
54
Germany
shorez.de
Hey!
I've accidentally installed my Proxmox on ZFS Raid 0, but I need redundancy.
To rescue this without reinstalling, I thought of adding another pair of Raid-0 SSD's to the system and Raid-1 those Raid0's.
Is this the way of doing? And could someone pls tell the exact ZFS commands to do this?
I'm used Hardware RAID so far and what I want is Raid01 .. Im new to ZFS so I don't know what's the equivalent here.
~shorez
 
From ZFS striped you can convert to ZFS striped/mirror like RAID10

You need only attach disks to existing disks.

BTW. Google about RAID controllers and ZFS for bad work
 
From ZFS striped you can convert to ZFS striped/mirror like RAID10

You need only attach disks to existing disks.

BTW. Google about RAID controllers and ZFS for bad work

Hey! I know that it's possible.
My intent was to get the exact commands, as a failure wouldn't be tolerable.
Like I've said, I need to add redundancy to my stripe.
How? (Yes I could google myself to hell but probably someone knows it here, which would save my trial and error)
~shorez
 
Mirrored stripes (~RAID01) are not supported in ZFS. Your only option is re-creating the pool.
 
# zpool attach

Example:

1. Lets create stripe pool
Code:
# zpool create test /zfs_test/file1 /zfs_test/file2

# zpool status test
  pool: test
 state: ONLINE
  scan: none requested
config:

    NAME               STATE     READ WRITE CKSUM
    test               ONLINE       0     0     0
      /zfs_test/file1  ONLINE       0     0     0
      /zfs_test/file2  ONLINE       0     0     0

errors: No known data errors

2. Attaching disks

Code:
# zpool attach test /zfs_test/file1 /zfs_test/file3
# zpool attach test /zfs_test/file2 /zfs_test/file4

3. Results RAID 10

Code:
# zpool status test
  pool: test
 state: ONLINE
  scan: resilvered 43K in 0h0m with 0 errors on Fri May 25 15:36:34 2018
config:

    NAME                 STATE     READ WRITE CKSUM
    test                 ONLINE       0     0     0
      mirror-0           ONLINE       0     0     0
        /zfs_test/file1  ONLINE       0     0     0
        /zfs_test/file3  ONLINE       0     0     0
      mirror-1           ONLINE       0     0     0
        /zfs_test/file2  ONLINE       0     0     0
        /zfs_test/file4  ONLINE       0     0     0

errors: No known data errors
 
  • Like
Reactions: MaddMartigan
Hm, you're right. IDK why I thought of mirroring the stripe set. A similar procedure is followed when replacing a disk in a stripe of mirrors. I guess the example you posted was OP's request anyway...
 

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!