Hello,
recently I got a chance to try PVE on server with SSD drives. The machine is equipped with Adaptec 5405 card with battery, and 2 x 500 Gb SATA HDDs + 2 x 256 Kingston SSDs. I planned to set up PVE on mirror made of HDDs (so PVE itself and backup will be there; 500 Gb storage is quite a lot for that), and use SSDs for VMs (we use KVM, so VM disks will be on SSDs).
Here is the point of decision, and I can:
1. build mirror of SSDs (and that's looking better idea since controller will care for h/w faults) and use it as singe volume, then put LVM over it, and create ext4 over LVM.
2. use both SSDs as different volumes (so RAID card will show it as 2 separate volumes, but card's cache and battery sill be in action for that disks), then build LVM over it (using LVM mirroring feature), then put ext4 over it.
3. as in case 2 above, use SSDs as different volumes, then use MD to create a mirror, the put LVM over it, then ext4 over LVM.
I'd prefer case 1, but that way LVM (and ext4 on top of it) won't use any SSD-specific optimizations. Even worst, I'm not even sure any TRIM support be in effect that way. RAID card firmware is the latest one, by the way.
So, instead of inventing wheel, I'd rather ask you, gurus: which way is the best while dealing with SSDs in PVE?
P.S. Once I even heard that PVE kernel version is a bit dated to have good SSD support (they said, I need at least 2.6.37 to use TRIM support on device mapper, but in stock PVE 2.1 kernel I was able to use "discard" mount option; even with it, I see rather slow SSD speed, so looks like I still need to find good way to use SSD).
recently I got a chance to try PVE on server with SSD drives. The machine is equipped with Adaptec 5405 card with battery, and 2 x 500 Gb SATA HDDs + 2 x 256 Kingston SSDs. I planned to set up PVE on mirror made of HDDs (so PVE itself and backup will be there; 500 Gb storage is quite a lot for that), and use SSDs for VMs (we use KVM, so VM disks will be on SSDs).
Here is the point of decision, and I can:
1. build mirror of SSDs (and that's looking better idea since controller will care for h/w faults) and use it as singe volume, then put LVM over it, and create ext4 over LVM.
2. use both SSDs as different volumes (so RAID card will show it as 2 separate volumes, but card's cache and battery sill be in action for that disks), then build LVM over it (using LVM mirroring feature), then put ext4 over it.
3. as in case 2 above, use SSDs as different volumes, then use MD to create a mirror, the put LVM over it, then ext4 over LVM.
I'd prefer case 1, but that way LVM (and ext4 on top of it) won't use any SSD-specific optimizations. Even worst, I'm not even sure any TRIM support be in effect that way. RAID card firmware is the latest one, by the way.
So, instead of inventing wheel, I'd rather ask you, gurus: which way is the best while dealing with SSDs in PVE?
P.S. Once I even heard that PVE kernel version is a bit dated to have good SSD support (they said, I need at least 2.6.37 to use TRIM support on device mapper, but in stock PVE 2.1 kernel I was able to use "discard" mount option; even with it, I see rather slow SSD speed, so looks like I still need to find good way to use SSD).