zfs raid mirror 1 to raid 10

ok after reboot it seems to have the disks imported by ids

Code:
root@pve-klenova:~# zpool status
  pool: rpool
 state: ONLINE
  scan: none requested
config:

    NAME                                                STATE     READ WRITE CKSUM
    rpool                                               ONLINE       0     0     0
      mirror-0                                          ONLINE       0     0     0
        ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J2021886-part2  ONLINE       0     0     0
        ata-WDC_WD10EFRX-68JCSN0_WD-WMC1U6546808-part2  ONLINE       0     0     0
      mirror-1                                          ONLINE       0     0     0
        ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J2AK75T9        ONLINE       0     0     0
        ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J1JE0SFR        ONLINE       0     0     0

errors: No known data errors
 
ok can somebody help me with this?

isnt it possible to use qcow images in new proxmox 5? i have made backup of /var/lib/vz/images from old proxmox 3.x and now i want it to use it in new 5... do i have to create new VMs and than somehow import/convert qcow2 images to zfs? can you provide me step by step how to make it pleae? thank you
 
ok now i have 4x1TB HDD in pool

Code:
root@pve-klenova:~# zpool status
  pool: rpool
 state: ONLINE
  scan: none requested
config:

    NAME                                                STATE     READ WRITE CKSUM
    rpool                                               ONLINE       0     0     0
      mirror-0                                          ONLINE       0     0     0
        ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J2021886-part2  ONLINE       0     0     0
        ata-WDC_WD10EFRX-68JCSN0_WD-WMC1U6546808-part2  ONLINE       0     0     0
      mirror-1                                          ONLINE       0     0     0
        ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J2AK75T9        ONLINE       0     0     0
        ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J1JE0SFR        ONLINE       0     0     0

errors: No known data errors

but i have two another exaxt same 500GB disks... i would like them stripped... is it possible to add them to existing rpool or should i create new pool? how can i add two disk in stripped mode?
 
If you absolutely need that space, just create a new mirrored pool. It's not possible to add these 2 disks to to the existing pool.
 
ok i have done

zpool create -f -o ashift=12 public /dev/disk/by-id/ata-MB0500EBZQA_Z1M0EHYH /dev/disk/by-id/ata-MB0500EBZQA_Z1M0EGEJ

now i have

Code:
root@pve-klenova:~# zpool status
  pool: public
 state: ONLINE
  scan: none requested
config:

    NAME                        STATE     READ WRITE CKSUM
    public                      ONLINE       0     0     0
      ata-MB0500EBZQA_Z1M0EHYH  ONLINE       0     0     0
      ata-MB0500EBZQA_Z1M0EGEJ  ONLINE       0     0     0

errors: No known data errors

  pool: rpool
 state: ONLINE
  scan: none requested
config:

    NAME                                                STATE     READ WRITE CKSUM
    rpool                                               ONLINE       0     0     0
      mirror-0                                          ONLINE       0     0     0
        ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J2021886-part2  ONLINE       0     0     0
        ata-WDC_WD10EFRX-68JCSN0_WD-WMC1U6546808-part2  ONLINE       0     0     0
      mirror-1                                          ONLINE       0     0     0
        ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J2AK75T9        ONLINE       0     0     0
        ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J1JE0SFR        ONLINE       0     0     0

errors: No known data errors

i would like to add the whole public zfs pool to one VM please how to?
 
I think the only way to share it with VM is NFS.
if you run a LXC container you can bind mount the pool directly , but not in VM.
 
i just want to use the whole space of the zfs pool public in vm200... i need to create storage of zfs with container and disk image and than add HDD in VM as SCSI and calculate disk size of GB? or how to do it please?
 
if you just want to use all of the space, create a disk of the full size? or less, if you want to be able to take snapshots..
 
If you absolutely need that space, just create a new mirrored pool(the same name). It's not possible to add these 2 disks to to the existing pool.

Hi,

Yes you can, but you need some zfs and linux experience, and it take a lot of work and time(with no room for mistakes). The key is to use sparse files, and the new 2 hdd +1 HDD from the curent proxmox server(it wil run in degraded mode with one mirror in degraded mode) to create the desired pool on a test PC(the new pool will have 3 HDD+3 spare files, each mirror will have a spare file). Then you will remove this 3 spare files(so you will have a degrade zfs pool on the test PC). Then you will transfer the proxmox zfs pool on the test PC(zfs send-recive). Now on the test PC you will hac the same data like on the Proxmox server. Then you will need to install grub on tis 3 x HDD, so you can be able to boot.
Then remove from the Proxmox server another HDD(from the second mirror, so you will have both mirrors degraded) and put in the test PC(you will have 2 degraded miror and 1 mirror OK) and wait to resilver. Then do a scrub to see is OK your pool from the test PC.

Last step remove the last 2 HDD from proxmox server and add them to the test PC, and wait to resilver . At the resilver proces will be finish, make a scrub again, and put all 6 HDD(3 mirrors) from the test PC on the initial Proxmox server.

This it is all ;)

Notes:
- must do have backups
- it is complicated at the begining(for the first time), but then, it is easy .
- make a plan on paper, and test it on a small VM
- use SN from the HDD label when you do this operation

I make many conversions like this with no lost data.

Good luck !
 
gulez thanks but its too complicated... i just want to use as much space from the two 500GB drives in stripped mode as possible... iv made public pool with

after that i add to the vm new hdd and max was 871GB... after format i have only 858GB which is poor i think...
 

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!