Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions simplyblock_cli/cli-reference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ commands:
type: str
default: ""
- name: "--lblk"
help: "Configure the node with Linux block devices (lblk cluster mode) instead of NVMe PCIe devices: eligible whole disks or partitions (unmounted, unheld; disks additionally unpartitioned) are wrapped in SPDK AIO bdevs. Select devices with --blk-names, --blk-names-exclude or --blk-serials; without a selector, every eligible whole disk is used (partitions must be selected explicitly). Each storage node gets its journal from its own devices: every selected partition is split in two, and every whole disk is partitioned, into a journal partition and a data partition. The journal partitions of a node are all the same size and are mirrored (RAID 0+1), so the journal survives the loss of a device; --jm-percent of the node's capacity is the journal the node can use. A node of a single device carries one journal partition. A device that carries simplyblock data is never partitioned; a node on such disks keeps the journal layout it has. Use --lblk-journal-device for a dedicated journal device on whole disks. Minimum 2 partitions or SSDs per node, or a single whole disk."
help: "Configure the node with Linux block devices (lblk cluster mode) instead of NVMe PCIe devices: eligible whole disks or partitions (unmounted, unheld; disks additionally unpartitioned) are wrapped in SPDK AIO bdevs. Select devices with --blk-names, --blk-names-exclude or --blk-serials; without a selector, every eligible whole disk is used (partitions must be selected explicitly). Each storage node gets its journal from its own devices: every selected partition is split in two, and every whole disk is partitioned, into a journal partition and a data partition. The journal partitions of a node are all the same size, --jm-percent of the smallest device, and are mirrored (RAID 0+1), so the journal survives the loss of a device. A node of a single device carries one journal partition. A device that carries simplyblock data is never partitioned; a node on such disks keeps the journal layout it has. Use --lblk-journal-device for a dedicated journal device on whole disks. Minimum 2 partitions or SSDs per node, or a single whole disk."
dest: lblk
type: bool
action: store_true
Expand Down Expand Up @@ -121,7 +121,7 @@ commands:
type: bool
action: store_true
- name: "--jm-percent"
help: "Usable journal size in percent of the node's total selected capacity when the journal is carved from the selected partitions or disks (requires --lblk, not with --lblk-journal-device). On a node of several devices the journal is mirrored, so the space taken is larger: each device gives a journal partition of that size divided by half the number of devices, rounded down. Default: `3`."
help: "Size of the journal partition each device gives, in percent of the node's smallest selected device, when the journal is carved from the selected partitions or disks (requires --lblk, not with --lblk-journal-device). On a node of several devices the journal is mirrored, so the journal the node can use is about half of what its devices give. Default: `3`."
dest: jm_percent
required: false
type: int
Expand Down
4 changes: 2 additions & 2 deletions simplyblock_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ def init_storage_node__configure(self, subparser):
subcommand.add_argument('--device-model', help='NVMe SSD model string, example: --model PM1628. Can be used alone to filter by model, or combined with --size-range to further filter by size.', type=str, default='', dest='device_model', required=False)
subcommand.add_argument('--size-range', help='NVMe SSD device size range separated by -, can be X(m,g,t) or bytes as integer, example: --size-range 50G-1T or --size-range 1232345-67823987. Can be used alone to filter by size, or combined with --device-model to further filter by model.', type=str, default='', dest='size_range', required=False)
subcommand.add_argument('--nvme-names', help='Comma separated list of nvme namespace names like nvme0n1,nvme1n1.', type=str, default='', dest='nvme_names', required=False)
subcommand.add_argument('--lblk', help='Configure the node with Linux block devices (lblk cluster mode) instead of NVMe PCIe devices: eligible whole disks or partitions (unmounted, unheld; disks additionally unpartitioned) are wrapped in SPDK AIO bdevs. Select devices with --blk-names, --blk-names-exclude or --blk-serials; without a selector, every eligible whole disk is used (partitions must be selected explicitly). Each storage node gets its journal from its own devices: every selected partition is split in two, and every whole disk is partitioned, into a journal partition and a data partition. The journal partitions of a node are all the same size and are mirrored (RAID 0+1), so the journal survives the loss of a device; --jm-percent of the node\'s capacity is the journal the node can use. A node of a single device carries one journal partition. A device that carries simplyblock data is never partitioned; a node on such disks keeps the journal layout it has. Use --lblk-journal-device for a dedicated journal device on whole disks. Minimum 2 partitions or SSDs per node, or a single whole disk.', dest='lblk', action='store_true')
subcommand.add_argument('--lblk', help='Configure the node with Linux block devices (lblk cluster mode) instead of NVMe PCIe devices: eligible whole disks or partitions (unmounted, unheld; disks additionally unpartitioned) are wrapped in SPDK AIO bdevs. Select devices with --blk-names, --blk-names-exclude or --blk-serials; without a selector, every eligible whole disk is used (partitions must be selected explicitly). Each storage node gets its journal from its own devices: every selected partition is split in two, and every whole disk is partitioned, into a journal partition and a data partition. The journal partitions of a node are all the same size, --jm-percent of the smallest device, and are mirrored (RAID 0+1), so the journal survives the loss of a device. A node of a single device carries one journal partition. A device that carries simplyblock data is never partitioned; a node on such disks keeps the journal layout it has. Use --lblk-journal-device for a dedicated journal device on whole disks. Minimum 2 partitions or SSDs per node, or a single whole disk.', dest='lblk', action='store_true')
subcommand.add_argument('--blk-names', help='Comma separated list of block devices to use (requires --lblk). Each entry is a persistent /dev/disk name, such as /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0 or /dev/disk/by-partuuid/28427de0-1916-4c05-895f-0829cd8790ba. A kernel name (sdb) or kernel path (/dev/sdb) is refused: it states a position in this boot\'s enumeration order, and it would name another disk after a reboot that probes the controllers in another order. The path is taken as given: the node records it, and add-node and every restart open the device by that path alone, never by serial or kernel name. A path that no longer exists is a missing device. Use --blk-serials for a device udev published no persistent name for. Requested devices must be eligible; a busy device is an error.', type=str, default='', dest='blk_names', required=False)
subcommand.add_argument('--blk-names-exclude', help='Comma separated list of block devices to exclude (requires --lblk), spelled the way --blk-names takes them. All other eligible disks are used.', type=str, default='', dest='blk_names_exclude', required=False)
subcommand.add_argument('--blk-serials', help='Comma separated list of block device serial numbers (or WWNs) to use (requires --lblk).', type=str, default='', dest='blk_serials', required=False)
subcommand.add_argument('--lblk-journal-device', help='With --lblk and whole disks: dedicate each node\'s smallest disk to the journal instead of partitioning every disk into a journal partition and a data partition (the default). Needs at least two disks per node. Partition selections always carry their journal in split partitions.', dest='lblk_journal_device', action='store_true')
subcommand.add_argument('--jm-percent', help='Usable journal size in percent of the node\'s total selected capacity when the journal is carved from the selected partitions or disks (requires --lblk, not with --lblk-journal-device). On a node of several devices the journal is mirrored, so the space taken is larger: each device gives a journal partition of that size divided by half the number of devices, rounded down. Default: `3`.', type=int, default=3, dest='jm_percent', required=False)
subcommand.add_argument('--jm-percent', help='Size of the journal partition each device gives, in percent of the node\'s smallest selected device, when the journal is carved from the selected partitions or disks (requires --lblk, not with --lblk-journal-device). On a node of several devices the journal is mirrored, so the journal the node can use is about half of what its devices give. Default: `3`.', type=int, default=3, dest='jm_percent', required=False)
subcommand.add_argument('--force', help='Force format detected or passed nvme pci address to 4K and clean partitions. With --lblk: mark partitioned disks eligible; the partition wipe happens at add-node with --force-format.', dest='force', action='store_true')
subcommand.add_argument('--enable-inline-checksum', help='When formatting (with --force), prefer an LBAF that supports >=8 bytes of NVMe metadata per block, so alceml can run inline checksum validation in md-on-device mode. Drives with no md-capable LBAF still format to plain 4K and will use the fallback layout.', dest='inline_checksum', action='store_true')
subcommand.add_argument('--calculate-hp-only', help='Calculate the minimum required huge pages, it depends on the following params: --sockets-to-use, --nodes-per-socket, --number-of-devices. Subsystem count and the vCPU budget are cluster-level settings.', dest='calculate_hp_only', action='store_true')
Expand Down
Loading
Loading