Trying to create a raidz1 with 3 different size disks

manumonti

New Member
Sep 24, 2020
2
0
1
Hi guys,

I'm trying to set up a RAID 5 architecture using proxmox 6.2-4. The server has no hardware support for RAID.

I have three disks of different size (1TB, 640GB, 640GB), so I can't select RAIDZ-1 on the installation menu. I have read on the forum that I have to configure this using zpool tool.

During Proxmox installation I created a RAID1 pool with the two 640 GB disks:

Code:
root@pve02:~# zpool list
NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
rpool   592G  1011M   591G        -         -     0%     0%  1.00x    ONLINE  -

root@pve02:~# zfs list
NAME               USED  AVAIL     REFER  MOUNTPOINT
rpool             1010M   573G      104K  /rpool
rpool/ROOT        1009M   573G       96K  /rpool/ROOT
rpool/ROOT/pve-1  1009M   573G     1009M  /
rpool/data          96K   573G       96K  /rpool/data

Now, I want to transform this pool to a RAIDZ-1 pool attaching the disk left. But I don't know if first I have to delete rpool and creates a new one, or if I have to create a partition in the 1TB disk...

What steps should I follow?

Thanks
 
Finally I get this in the following way:

I installed Proxmox with the GUI and selected the 1TB disk for installing proxmox ve. In options, I select hdsize = 334.8 GB in order to leave free 596.1GB (this is the size of the two remaining disks).

After installing proxmox, I used the CLI in order to format the free space of the 1TB disk and create a partition with the same number of sector that the other two disks.

From here, it was easy. I create a raidz1 pool with zpool with three devices: the partition I created in the 1TB disk, and the entire disk 2 and 3.

This was the result:

Code:
root@pve02:~# zpool status
  pool: datapool
 state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        datapool    ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sda     ONLINE       0     0     0
            sdb     ONLINE       0     0     0
            sdc4    ONLINE       0     0     0

errors: No known data errors
root@pve02:~# zfs list
NAME       USED  AVAIL     REFER  MOUNTPOINT
datapool   115K  1.12T     30.6K  /datapool
 

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!