| NDCTL-LIST(1) | ndctl Manual | NDCTL-LIST(1) |
نام (NAME)
ndctl-list - تخلیه مکاننگاری و ویژگیهای دستگاههای nvdimm سامانه در قالب json
خلاصه دستور (SYNOPSIS)
ndctl list [<options>]
پیمایش تمام گذرگاههای nvdimm در سیستم و فهرست کردن تمام دستگاههای متصل به همراه برخی از ویژگیهای اصلی آنها.
میتوان گزینههایی را برای محدود کردن خروجی به دستگاههایی از یک کلاس مشخص تعیین کرد. این کلاسها عبارتند از: buses، dimms، regions و namespaces. بهطور پیشفرض، اجرای ndctl list بدون هیچ گزینهای معادل دستور زیر است:
ndctl list --namespaces --bus=all --region=all
مثالها (EXAMPLES)
# ndctl list --buses --namespaces
{
"provider":"nfit_test.1",
"dev":"ndbus2",
"namespaces":[
{
"dev":"namespace9.0",
"mode":"raw",
"size":33554432,
"blockdev":"pmem9"
}
]
}
{
"provider":"nfit_test.0",
"dev":"ndbus1"
}
{
"provider":"e820",
"dev":"ndbus0",
"namespaces":[
{
"dev":"namespace0.0",
"mode":"fsdax",
"size":8589934592,
"blockdev":"pmem0"
}
]
}
گزینهها (OPTIONS)
-r, --region=
-b, --bus=
-d, --dimm=
# ndctl list --dimm=nmem0 --namespaces
-n, --namespace=
-m, --mode=
-U, --numa-node=
-B, --buses
-D, --dimms
{
"dev":"nmem0",
"id":"cdab-0a-07e0-ffffffff",
"handle":0,
"phys_id":0,
"security:":"disabled"
}
-H, --health
{
"dev":"nmem0",
"health":{
"health_state":"non-critical",
"temperature_celsius":23,
"spares_percentage":75,
"alarm_temperature":true,
"alarm_spares":true,
"temperature_threshold":40,
"spares_threshold":5,
"life_used_percentage":5,
"shutdown_state":"clean"
}
}
-F, --firmware
# ndctl list -BDF
[
{
"provider":"nfit_test.0",
"dev":"ndbus2",
"scrub_state":"idle",
"firmware":{
"activate_method":"suspend",
"activate_state":"idle"
},
"dimms":[
{
"dev":"nmem1",
"id":"cdab-0a-07e0-ffffffff",
"handle":0,
"phys_id":0,
"security":"disabled",
"firmware":{
"current_version":0,
"can_update":true
}
},
...
]
-X, --device-dax
{
"dev":"namespace0.0",
"mode":"devdax",
"size":4225761280,
"uuid":"18ae1bbb-bb62-4efc-86df-4a5caacb5dcc",
"daxregion":{
"id":0,
"size":4225761280,
"align":2097152,
"devices":[
{
"chardev":"dax0.0",
"size":4225761280
}
]
}
}
-R, --regions
-N, --namespaces
-i, --idle
-c, --configured
-C, --capabilities
-M, --media-errors
{
"dev":"namespace7.0",
"mode":"raw",
"size":33554432,
"blockdev":"pmem7",
"badblock_count":17,
"badblocks":[
{
"offset":4,
"length":1
},
{
"offset":32768,
"length":8
},
{
"offset":65528,
"length":8
}
]
}
-v, --verbose
# ndctl list -Ru -vvv -r 0
{
"dev":"region0",
"size":"4.00 GiB (4.29 GB)",
"available_size":0,
"max_available_extent":0,
"type":"pmem",
"numa_node":0,
"target_node":2,
"capabilities":[
{
"mode":"sector",
"sector_sizes":[
512,
520,
528,
4096,
4104,
4160,
4224
]
},
{
"mode":"fsdax",
"alignments":[
4096,
2097152,
1073741824
]
},
{
"mode":"devdax",
"alignments":[
4096,
2097152,
1073741824
]
}
],
"persistence_domain":"unknown"
}
-u, --human
# ndctl list --region=7
{
"dev":"region7",
"size":67108864,
"available_size":67108864,
"type":"pmem",
"iset_id":-6382611090938810793,
"badblock_count":8
}
# ndctl list --human --region=7
{
"dev":"region7",
"size":"64.00 MiB (67.11 MB)",
"available_size":"64.00 MiB (67.11 MB)",
"type":"pmem",
"iset_id":"0xa76c6907811fae57",
"badblock_count":8
}
NDCTL_LIST_LINT
کپیرایت و تکثیر (COPYRIGHT)
حق نشر © 2016 - 2022، شرکت Intel. مجوز GPLv2: گنو GPL نسخه ۲ http://gnu.org/licenses/gpl.html. این نرمافزار آزاد است: شما مجاز به تغییر و بازتوزیع آن هستید. هیچگونه ضمانتی وجود ندارد، تا حدی که قانون اجازه میدهد.
همچنین ببینید (SEE ALSO)
ndctl-create-namespace(1)
| 2026-06-30 | ndctl |