You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where 35GB drive /dev/vda3 and its partition are used solely for data storage and we can provide it to direct-csi or other k8s storage solution as a separate drive.
However we can not reduce or shrink size of the root / ext4 partition, it requires boot in safe mode otherwise root partition becomes read-only after resize on live system.
I've tried resizing / with fdisk but then resize2fs gives error:
resize2fs /dev/vda1resize2fs 1.44.5 (15-Dec-2018)Filesystem at /dev/vda1 is mounted on /; on-line resizing required
Basically ext4 partition needs to be unmounted for it to be reduced, but unmounting root / partition safely is nearly impossible, we'd need to stop all software that can write to disk, then create tmpfs with root data, unmount root, resize it, mount back, move tmp data back, very unsafe.
Ideally we'd be able to do that with either custom ISO or node initialization script or DOKS could allow us configure partitions upfront when creating a worker Node so that it loads with correct partitions right away.
Hi, we're trying to configure DOKS for our disk I/O workloads. For this reason we use droplets with NVMe disks — Basic Premium Droplets.
The problem is that these Droplets boot with entire NVMe drive mounted as
/
root ext4 partition.For example we use Basic Premium Droplet with 50GB NVMe and it's partitioned like this after boot:
For proper use of local drives in k8s with CSI like https://github.com/minio/direct-csi we need to have separate partitions for data:
like so:
Where 35GB drive
/dev/vda3
and its partition are used solely for data storage and we can provide it to direct-csi or other k8s storage solution as a separate drive.However we can not reduce or shrink size of the root
/
ext4 partition, it requires boot in safe mode otherwise root partition becomes read-only after resize on live system.I've tried resizing
/
withfdisk
but thenresize2fs
gives error:Basically ext4 partition needs to be unmounted for it to be reduced, but unmounting root
/
partition safely is nearly impossible, we'd need to stop all software that can write to disk, then create tmpfs with root data, unmount root, resize it, mount back, move tmp data back, very unsafe.Ideally we'd be able to do that with either custom ISO or node initialization script or DOKS could allow us configure partitions upfront when creating a worker Node so that it loads with correct partitions right away.
Related issue: digitalocean/csi-digitalocean#384
Can you please suggest any workarounds? Thanks!
The text was updated successfully, but these errors were encountered: