Skip to content

Damaged(?) pools get partially set up and cannot be recovered without booting into rd.rescue #3956

@refi64

Description

@refi64

So, sometimes I get kernel panics, for various reasons that look like "novelty hardware with RE'd drivers sometimes causes weird problems". Relatively often, when this happens, I cannot actually reboot back into the system.

I have this on my kernel command line:

root=/dev/stratis/fedora/root stratis.rootfs.pool_uuid=fccd3f78-2670-40b6-8e51-f1c326a4147b

And the system...starts booting normally. Notably, I can unlock the rootfs and have access to its contents (though writes seemingly always get discarded for ??? reasons). However, after the rootfs is mounted, nothing else in the fstab can be, resulting in boot failure:

Image

(I'm using stratis-min here because dbus isn't running yet at this point in boot.)

The full service logs are:

Image Image

(these screenshots overlap on their lower and upper portions, respectively)

Somehow it seems to "set up" a pool that needs repairing?

The only way for me to fix this is to boot with rd.rescue and do:

$ stratis-min pool start --name fedora --token-slot any --prompt
$ stratis-min pool stop --name fedora

The first command here takes a good 30 seconds to run but completes successfully, and then after running the second and rebooting, the pool is mounted normally, with all its contents intact. If I forget the second command, it still won't work.

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions