Changing OS-installation disks

May 1, 2022
60
8
13
Stockholm, Sweden
Hello

I have an installation where the OS runs on a raidz1 and has one bad disk:
pool: rpool state: ONLINE status: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected. action: Determine if the device needs to be replaced, and clear the errors using 'zpool clear' or replace the device with 'zpool replace'. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P scan: resilvered 476M in 00:04:36 with 0 errors on Wed May 17 16:11:19 2023 config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 scsi-35000c50095ae2647-part3 ONLINE 0 0 0 scsi-350000c0f0277430c-part3 ONLINE 0 0 0 scsi-350000c0f02776488-part3 ONLINE 1 0 0

I wonder if I can change it to mirror and remove the bad disk?

For me this is a two step procedure where I would like to change it to a mirror and later replace both disks in the mirror with new fresh one.
 
if you have three drives in z1 then data and parity is distributed across all drives, so you would not be able to convert to a mirror without destroying and recreating your pool.

If you are thinking about increasing capacity on the pool, you can replace drives in a z1 pool with larger ones if you wish. If you do this one at a time, letting the pool rebuild after each replacement, once all the drives have been replaced, the pool capacity can be expanded to use the additional space.

Hope this answers your query
 
if you have three drives in z1 then data and parity is distributed across all drives, so you would not be able to convert to a mirror without destroying and recreating your pool.

If you are thinking about increasing capacity on the pool, you can replace drives in a z1 pool with larger ones if you wish. If you do this one at a time, letting the pool rebuild after each replacement, once all the drives have been replaced, the pool capacity can be expanded to use the additional space.

Hope this answers your query
OK, so to destroy and recreate I guess I need to recreate it with new disks.

I would prefer to decrease capacity, go from 3x300GB SAS to 2x240GB SATA SSD.

So, I got spare slots and can add two new disks, can I with these two disks create a new mirror and boot from it with proxmox-boot-tool or something else?
 
scsi-350000c0f02776488-part3 ONLINE 1
The drive is ONLINE and this is only a single error. I would:
  • zpool clear - this (only) resets the error counter
  • zpool scrub - explicitly rescan/recreate/verify the integrity of the whole pool. This will take some time
  • look at the SMART data of this drive and compare it with the others...
Switching to a Mirror might be useful if you encounter performance problems - and Mirrors are recommended, of course. But: never change a running system without a good reason...


Just my 2€¢ of course
 
The drive is ONLINE and this is only a single error. I would:
  • zpool clear - this (only) resets the error counter
  • zpool scrub - explicitly rescan/recreate/verify the integrity of the whole pool. This will take some time
  • look at the SMART data of this drive and compare it with the others...
Switching to a Mirror might be useful if you encounter performance problems - and Mirrors are recommended, of course. But: never change a running system without a good reason...


Just my 2€¢ of course
I have a good reason, that disks becomes offline quite often, all three disks are spinning rust and are rather old.

So that's why I would like to move the OS to two new SSD disks in a new mirror.
 
  • Like
Reactions: UdoB

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!