Can I safely change ashift value in running zpool ?

SargOn

Active Member
Jan 19, 2018
13
2
43
48
Hi, first of all, hello to everybody. I'm new as user, but I've read you a lot for long looking for support. Thx!

My question... We have a production pve cluster (4 nodes + 2 test nodes), updated to latest 5.1. This has been running for more than 1 year and now we have jumped to ZFS (I've fallen in love...).

In node 01 ashift is set to 0 (auto?) and I see zdb shows as 12 with 4K block size in main zpool (8xSSD intel HW RAID5, perhaps in the future we change this, delegating RAID management directly to ZFS) so I gues this is ok, right ?

But in node 02, ashift value is set to 12 in zpool (same value by zdb), but block size is 512b so I understand that ashift should be 9...

Can I directly (and safety) set... ?

# zpool set ashift=9 <zpool name>

Thanks in advance
 
But in node 02, ashift value is set to 12 in zpool (same value by zdb), but block size is 512b so I understand that ashift should be 9...

Can I directly (and safety) set... ?

# zpool set ashift=9 <zpool name>

No, you can not doing this. You can define ashift only at pool creation time. After that ashift is a ReadOnly zpool prop.
 
Ok, I was afraid of it... Thx.

Any advise about using or not ZIL and/or L2ARC in my sceneario ? (many VMs in a HW SSD RAID5) ?

Thx in advance.
 
Any advise about using or not ZIL and/or L2ARC in my sceneario ? (many VMs in a HW SSD RAID5) ?

Because your pool is a SSD only pool, I guess that this is not so useful. For sure ZIL is not useful at all. And the downside of using L2ARC is the fact that you will use more RAM.
 
  • Like
Reactions: SargOn
We're using HW RAID because we didn't know all the ZFS features and recommendations at the beginning when we were initially setting up the system (we assumed HW RAID is always better... and we were using EXT4).

The SSD disks are all 8 x SATA3 INTEL S3520 800GB 6Gb/s 3D MLC, and about RAM: 256GB.

Thanks in advance.
 

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!