Skip to content

Error "no space left on device": full ZFS pool makes workshop unusable #897

Description

@locnnil

It looks like my ZFS storage pool for the workshop got exhausted:

 $ workshop launch dev --verbose
✓ Retrieve "system" SDK
2026-06-26T19:02:01-03:00 ERROR Failed creating custom volume from tar archive: Failed running: zfs create -o mountpoint=legacy -o canmount=noauto workshop/custom/default_ziglang-2: exit status 1 (cannot create
'workshop/custom/default_ziglang-2': out of space)
error: cannot perform the following tasks:
- Retrieve "ziglang" SDK from channel "latest/stable" (Failed creating custom volume from tar archive: Failed running: zfs create -o mountpoint=legacy -o canmount=noauto workshop/custom/default_ziglang-2: exit status 1 (cannot create 'workshop/custom/default_ziglang-2': out of space))
"dev" launch aborted

With this, it looks like I cannot do anything else:

(on another directory)

$ workshop remove dev
error: cannot perform the following tasks:
- Disconnect "dev/rust:cargo-registry" from "dev/system:mount" (The following instances failed updating (profile change still saved):
 - Project: workshop.1049349021, Instance: dev-dbab7687: Failed writing backup file: Failed creating file "/var/snap/lxd/common/lxd/containers/workshop.1049349021_dev-dbab7687/backup.yaml": open /var/snap/lxd/common/lxd/containers/workshop.1049349021_dev-dbab7687/backup.yaml: no space left on device
)

It would be nice to have a workshop snap option to increase/set the desired size of the storage pool.

Something like:

sudo snap set workshop storage=40GB

Workaround

As a workaround, I manually expanded the image and enabled the autoexpand option for the workshop pool and resized the .img file:

sudo truncate -s 60G /var/snap/lxd/common/lxd/disks/workshop.img
sudo zpool set autoexpand=on workshop # to avoid future problems
sudo zpool online -e workshop /var/snap/lxd/common/lxd/disks/workshop.img
sudo snap restart workshop.workshopd

Then I got:

$ zpool list workshop
NAME       SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
workshop  59.5G  28.6G  30.9G        -         -     2%    48%  1.00x    ONLINE  -

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions