Closed tianouya-db closed 10 months ago
func (o *snapshotter) prepareWritableOverlaybd(ctx context.Context, snID string) error {
// TODO(fuweid): 256GB can be configurable?
args := []string{"64"}
if o.writableLayerType == "sparse" {
args = append(args, "-s")
}
return utils.Create(ctx, o.blockPath(snID), args...)
}
"64" (64GB) is default size, you can modify it for POC.
An option --vsize
is added to /opt/overlaybd/snapshotter/ctr obdconv
to custamize overlaybd virtual block device size.
What happened in your environment?
While converting a large image,
It consistently fails with an error
no space left on device
:Running
fdisk -l
gets:My root disk has enough space (2TB), but the TCMU virtual device has a size of 64GB which might be limiting the conversion.
What did you expect to happen?
The conversion should succeed for large images.
How can we reproduce it?
Convert an image with large size, 48G+.
What is the version of your Accelerated Container Image?
0.6.7
What is your OS environment?
Ubuntu 20.04
Are you willing to submit PRs to fix it?