Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Troubleshooting] "cannot read unsafe shutdown count of ..." #4207

Closed
lplewa opened this issue Mar 15, 2019 · 2 comments
Closed

[Troubleshooting] "cannot read unsafe shutdown count of ..." #4207

lplewa opened this issue Mar 15, 2019 · 2 comments
Labels
Type: External Bug A bug not in PMDK

Comments

@lplewa
Copy link
Member

lplewa commented Mar 15, 2019

Error:

"cannot read unsafe shutdown count of ..."

Description:

Unsafe shutdown detection is a PMDK feature which detects pool corruption, caused by hardware failure.
This feature is turned on by default in PMDK 1.6 if it is compiled with NDCTL 63 or newer.

NDCTL 63+ requires kernel 5.0.4+/5.1+. If you encountered this issue please check if you have a correct kernel.

For development purposes you can disable unsafe shutdown detection during pool creation:

PMEMBLK_CONF="sds.at_create=0" pmempool create blk /path/to/poolset.file
or
PMEMLOG_CONF="sds.at_create=0" pmempool create log /path/to/poolset.file
or
PMEMOBJ_CONF="sds.at_create=0" pmempool create obj /path/to/poolset.file

or by pmem<obj/log/blk>_ctl_set API

const char path[] = "/path/to/poolset.file";

/* force-disable SDS feature during pool creation*/
int sds_write_value = 0;
pmemobj_ctl_set(NULL, "sds.at_create", &sds_write_value);

/* create pool and use it */
PMEMobjpool *pop = pmemobj_create(path, LAYOUT_NAME, POOL_SIZE, 0644);
/* ... */
pmemobj_close(pop);

Please see pmempool feature blog post for detailed information

@kilobyte
Copy link
Contributor

Updated requirements: need kernel 5.0.4+ or 5.1+.

@marcinslusarz marcinslusarz pinned this issue Sep 25, 2019
@marcinslusarz
Copy link
Contributor

@kilobyte thanks, updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: External Bug A bug not in PMDK
Projects
None yet
Development

No branches or pull requests

4 participants