storage

Shrinking OS image manually

Recently I needed to customize the OS template used to deploy KVM guests and once it was ready I realized it could be a lot smaller – there was plenty of free space on the partition which made the image larger than necessary, therefore I decided to reduce the size to the minimum possible and while it could be done via tools such as GParted – I couldn’t miss the opportunity to explore how it’s… Read More »Shrinking OS image manually

Expanding OS partition – LVM on top of MD RAID – without downtime

Expanding OS partition – LVM on top of MD RAID – without downtime   Replacing failing physical disks on the servers hosted at the data center could be just another routine task with no surprises.  Sadly, it’s often a headache since you need to rely on DC support and there’s no way to tell if the person on the other end is newly hired and still learning, or maybe is distracted? or simply doesn’t care… Read More »Expanding OS partition – LVM on top of MD RAID – without downtime

KVM guests – compressed storages – enabling TRIM support on virtio disks

Trim is commonly used as a way to notify SSD drive that some part of the data it holds is garbage and can be discarded, it extends SSD lifetime and releases otherwise reserved space on the disk. Turns out it’s not the only scenario where trim comes handy. Compression is a popular way to save on space usage when deploying virtual machines and it seems to be a good option especially that the performance penalty… Read More »KVM guests – compressed storages – enabling TRIM support on virtio disks