In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Bench--io-type
< read | write | readwrite | rw>[--io-size size-in-B/K/M/G/T] [--io-threads num-ios-in-flight] [--io-total size-in-B/K/M/G/T] [--io-pattern seq | rand] [--rw-mix-read read proportion in readwrite] image-spec
Generate a series of IO and IO throughput and latency charts. If there is no specified unit (B/K/M), false-io-size and-- io-total are B, and the default values are:-- io-size 4096,-- io-threads 16,-- io-total 1G,-- io-pattern seq,-- rw-mix-read 50, respectively.
Children snap-spec
Lists the clone volumes for the snapshot, which checks all pool and then outputs the resulting pool-name/image-name.
But the format that needs this image is 2.
Clone [- object-size size-in-B/K/M] [- stripe-unit size-in-B/K/M-stripe-count num] [- image-feature feature-name] [- image-shared] parent-snap-spec child-image-spec
To create a clone volume of a parent snapshot, the object size is the same as the parent image and parent snapshot size unless otherwise specified, and the-- stripe-unit and-- stripe-count parameters are optional, but must be used at the same time.
The status of the parent snapshot needs to be protected.
Config global get config-entity key
Gets the configuration that covers the global.
Config global list [--format plain | json | xml] [--pretty-format] config-entity
Lists the configurations that cover the global.
Config global set config-entity key value
Sets the configuration that overrides the global.
Config global remove config-entity key
Delete the configuration that overrides the global.
Config image get image-spec key
Gets the configuration that covers the image level.
Config image list [--format plain | json | xml] [--pretty-format] image-spec
Lists the configurations that cover the image sector.
Config image set image-spec key value
Setting overrides the setting at the image level.
Config image remove image-spec key
Delete configurations that override the image level.
Config pool get pool-name key
Gets the configuration that covers the pool level.
Config pool set pool-name key value
Sets the configuration that overrides the pool level.
Config pool remove pool-name key
Delete configurations that override the pool level.
Cp (src-image-spec | sec-snap-spec) dest-image-spec
Copy the contents of the original image to the destination image, which has the same size, object size, and image format as the source image.
Create (- s |-- size size-in-M/G/T) [- image-format format-id] [- object-size size-in-B/K/M] [--stripe-unit size-in-B/K/M-stripe-count num] [--thick-provision] [--no-progress] [--image-feature feature-name]... [--image-shared] image-spec
A new rbd image will be created, and you need to specify the size of the image at the same time. -- stripe-unit and-- stripe-count is optional, but must be used simultaneously
Deep cp (src-image-spec | src-snap-spec) dest-image-spec
Deeply copy the contents of the source image into the newly created destination image, and the destination image will have the same size, object size, format, and snapshot as the source image.
Device list [- t |-- device-type device-type] [--format plain | json | xml]-- pretty-format
Displays rbd image or other supported devices mapped through the rbd kernel module (default).
Device map [- t |-- device-type device-type] [--read-only] [- exclusive] [- o |-- options device-options] image-spec | snap-spec
The specified rbd image is mapped to a block device or other supported device (nbd on linux or ggate injured by FreeBSD) through kernel mode.
The option parameter is a comma-separated list of device type-specific options (opt1,opt2=val,... ).
Device unmap [- t |-device-type device-type] [- o |-- options device-options] image-spec | snap-spec | device-path
Unmap rbd image via kernel module (default) or other supported devices.
The option parameter is a comma-separated list of device type-specific options (opt1,opt2=val,... ).
Diff [--from-snap snap-name] [- whole-object] image-spec | snap-spec
Lists a list of byte segments that have changed when the image was created from the specified snapshot or since creation, and the output line includes the starting offset (in bytes), region length (in bytes), and "0" or "data" to show whether the area is known to be 0 or may contain other data.
Du [- p |-- pool pool-name] [image-spec | snap-spec]
This command calculates the actual disk usage for all image and related snapshots in the specified storage pool, and can also be used for individual image and snapshots.
If the fast-diff feature of RBD image is not enabled, this operation will query each OSD that exists the image object.
Export [--export-format format (1 or 2)] (image-spec | snap-spec) [dest-path]
Export image to the specified path (for standard output)-- export-format currently accepts "1" or "2". Format 2 allows not only the contents of image everywhere, but also other properties of snapshots, such as image_order,features.
Export-diff [--from-snap snap-name] [--whole-object] (image-spec | snap-spec) dest-path
Export the incremental portion of image to the specified path (for standard output
If the initial snapshot is specified, only the increments after the snapshot are changed, which originally contains any area in the image that contains data Specify the snapshot using the standard-- snap option or @ snap syntax. Image diff format contains metadata, image size changes, and start and end snapshots, which effectively represent the abandoned or "0" area of the image.
Feature disable image-spec feature-name...
Disables the specified properties on the specified image, and you can specify multiple properties.
Feature enable image-spec feature-name
Enables the specified properties on the specified image, and you can specify multiple properties.
Flatten image-spec
If the image is cloned and all shared blocks are copied from the parent snapshot, making the child image independent of the parent snapshot, this command can truncate the connection between the parent snapshot and the child image, and if the parent snapshot has no further dependency on the clone, it can be unprotected and delete it.
This command requires that the format of image is 2. 0.
Group create group-spec
Create an image group.
Group image add group-spec image-spec
Add an image to a group.
Group image list group-spec
List all image in this group.
Group image remove group-spec image-spec
Remove an image from the group.
Group ls [- p |-- pool pool-name]
Lists the image groups in a storage pool.
Group rename src-group-spec dest-group-spec
Rename an image group. Note: renaming across storage pools is not supported.
Group rm group-spec
Delete an image group.
Group snap create group-snap-spec
Create a snapshot for a group.
Group snap list group-spec
Lists all snapshots of the group.
Group snap rm goup-snap-spec
Delete a snapshot of the group.
Group snap rename group-snap-spec snap-name
Rename a snapshot of a group.
Group snap rollback group-snap-spec
Roll back the image group to the snapshot location.
Image-meta get image-spec key
Get the metadata key.
Image-meta list image-spec
Displays the metadata in the image, with the first column being the key and the second column being the value.
Image-meta remove image-spec key
Delete the key value of the original data.
Image-meta set image-spec key value
Set the key value of the original data, which can be listed using image-meta list.
Import [- export-format format (1 or 2)] [- image-format format-id] [- object-size size-in-B/K/M] [- stripe-unit size-in-B/K/M-stripe-count num] [- image-feature feature-name]... [- image-shared] src-path [image-spec]
Create a new image and import data from the specified location (for standard input) into the image, and if possible, the import operation attempts to create a sparse rbd image. For imports from standard input, the sparse unit is the block size (object size) of the target image.
-- stripe-unit and-stripe-count are optional but must be used at the same time.
-- export-format can be "1" or "2", but format 2 allows you to import not only the contents of image, but also other properties of snapshots, such as image_order and feature.
Import-diff src-path image-spec
Import the incremental differences of the image and apply them to the current image. If the diff is based on the snapshot, verify that the snapshot already exists before continuing. If there is an end snapshot, we will verify that it does not exist before applying the change and create a snapshot after the change is completed.
Info image-spec | snap-spec
The specified image information (such as size, object size, etc.) is listed, and if the image is a clone volume, its parent information is also displayed; if a snapshot is specified, it shows whether it is in the protected state.
Journal client disconnect journal-spec
Mark the imgae client as disconnected.
Journal export [--verbose] [--no-error] src-journal-spec path-name
Export image logs to the specified path (for standard output), and you can back up image logs before doing dangerous operations.
Note: if the log is seriously corrupted, this command may not take effect.
Journal import [--verbose] [--no-error] path-name dest-journal-spec
Imports image logs from the specified path (for standard input).
Journal info journal-spec
Displays log information for image.
Journal inspect [--verbose] journal-spec
Check and report structural errors in image logs.
Journal reset journal-spec
Resets the log for image.
Journal status journal-spec
View the status of the image log.
Lock add [--shared lock-tag] image-spec lock-id
Locking an image,lock-id is any name set for the convenience of the user. This is an exclusive lock by default, which means that if you perform the operation again if the image is already locked, it will fail. The parameter-shared causes the image to be locked multiple times.
Note: adding locks does not affect any operation, and locks do not protect image from being deleted.
Lock ls imgae-spec
Lists the locks on the image, and the first column is the lock library used with the lock delete command.
Lock rm image-spec lock-id locker
Release the lock on image, and lock-id and locker can be obtained by looking at the output of lock ls.
Ls [- l |-long] [pool-name]
You can rbd image all rbd_directory objects. Use-l to list snapshots, and output in long format also shows including size, parent image (if clone), format, and so on.
Merge-diff first-diff-path second-diff-path merged-diff-path
Merge two consecutive incremental differences into a single difference. The end snapshot of the previous difference must be the same as the start snapshot of the latter difference. The former difference can be standard input, and the merged difference can be standard output, so you can merge multiple difference files, like this: "rbd merge-diff first second-| rbd merge-diff-third result". Note that the current command only supports source incremental differences such as stripe_count== 1.
Migration abort image-spec
Cancel the migration operation for image. This step may be performed after preparing for the success or failure of the migration and return the image to its original (pre-migration) state, and all modifications to the target image will be lost.
Migration commit image-spec
Submit the image migration. This step is performed after the source image data is deleted after preparing for the successful migration and the migration steps
Migration execute image-spec
Perform the migration operation of image. This step is performed after the migration is successfully prepared and the image data is copied to the target image.
Migration prepare [- order order] [- object-size object-size] [- image-feature image-feature] [- image-shared] [- stripe-unit stripe-unit] [- stripe-count stripe-count] [- data-pool data-pool] src-image-spec [dest-image-spec]
Prepare for image migration. The first step in migrating image is to change the image location, format, or other parameters that cannot be changed dynamically. The destination can match the source, in which case dest-image-spec can be omitted. After this step, the source image is set as the parent image of the target image, and the image is accessible in copy-on-write mode according to the target image specification.
Mirror image demote image-spec
Demote the primary image to a non-primary iamge.
Mirror image disable [- force] image-spec
Disable RBD mirror for image. If mirror is set in image pool mode, you can realistically disable mirror for each image in the pool.
Mirror image enable image-spec
Enable RBD mirror for image. If the mirror is configured in image pool mode, it can be displayed as a mirror that enables each image in the pool.
Mirror image promote [--force] image-spec
Upgrade the non-primary image to the primary image for RBD image.
Mirror image resync image-spec
Forces resynchronization of the primary image of RBDimage.
Mirror image status image-spec
Displays the mirror status of the image.
Mirror pool demote [pool-name]
Downgrade RBD image's pool to a non-primary pool
Mirror pool disable [pool-name]
"RBD mirror is disabled by default, and when you disable mirror for a storage pool in this way, mirror is also disabled for any image (within the storage pool) of an explicitly enabled mirror."
Mirror pool enable [pool-name] mode
RBD mirror is enabled by default for storage pools. "the Mirror mode can be a storage pool or image, and if configured in storage pool mode, all image in the storage pool with logging enabled is enabled." If configured in mirror mode, mirror needs to be enabled on each image (through the mirror image enabl command).
Mirror pool info [pool-name]
Displays information about the storage pool mirror configuration. It includes mirror mode, peer UUID, remote cluster name and remote client name
Mirror pool peer add [pool-name] remote-cluster-spec
Add the mirror peer to the storage pool. Remot-cluster-spec is the [remote client name @] remote cluster name.
The default remote client name is "client.admin".
Mirror mode needs to be enabled.
Mirror pool peer remove [pool-name] uuid
The mirror peer is removed from the storage pool, and the peer UUID is available through the mirror pool info command.
Mirror pool peer set [pool-name] uuid key value
Update mirror peer settings. The key can be a client or a cluster, and the value corresponds to the remote client name or the remote cluster name.
Mirror pool promote [--force] [pool-name]
Each non-primary image in the storage pool is promoted to the primary iamge, and each mirror-enabled image is promoted in the storage pool.
Mirror pool status [--verbose] [pool-name]
Displays the status of all image mirror in the storage pool, and using-verbose also outputs additional detailed status information for each image mirror display in the storage pool.
Mv src-image-spec dest-image-spec
Name an image. Note that cross-pool renaming is not supported.
Object-map check imag-spec | snap-spec
Verify that the object mapping is correct
Object-map rebuild imag-spec | snap-spec
Rebuilds an invalid object mapping for the specified image. Invalid object mapping can be rebuilt for the specified iamge snapshot.
Pool init [pool-name] [--force]
Initialize the storage pool for use by RBD. The newly created storage pool must be initialized before use.
Resize (- s |-size size-in-M/G/T) [- allow-shrink] image-spec
To resize the rbd image, you also need to specify the-- size parameter, and the-- all-shrink option reduces the size.
Rm image-spec
Delete the rbd image (including all data blocks), but not if the image has a snapshot.
Snap create snap-spec
To create a new snapshot, you need to specify the snapshot name parameter.
Snap limit clear image-spec
Removes the previous limit on the number of snapshots allowed by image.
Snap ls image-spec
Displays a snapshot of the specified image.
Snap protect snap-spec
Protect the snapshot from being deleted so that it can be cloned. The snapshot must be protected before Cologne is generated, which means that the child nodes of the clone since it exists to reference the snapshot, and the rbd clone command will fail if the snapshot is unprotected.
Snap purge image-spec
Delete all unprotected snapshots in the image.
Snap rename src-snap-spec dest-snap-spec
Rename a snapshot. Note that cross-pool renaming is not supported.
Snap rm [--force] snap-spec
Deletes the specified snapshot.
Snap rollback snap-spec
The image content is rolled to the snapshot stage, which traverses the entire block array and updates the header contents to the snapshot version.
Snap unprotect snap-spec
Delete snapshot protection (revoke snapshot protection), and if the children of the clone still exist, the snap unprotect will fail (note that the clone may exist in a different storage pool than the rich snapshot. )
The format that requires image is 2. 0.
Status image-spec
Displays the status of the image, including which clients are in use / open.
Trash ls [pool-name]
Lists all entries that have been delayed for deletion.
Trash mv image-spec
List all entries in the trash can.
Trash mv image-spec
Move the image to the trash can, and the image that the image even the clone is using can be moved to the trash can and then deleted.
Trash purge [pool-name]
Delete all expired image in the trash can.
Trash restore image-id
Recover an image from the trash can.
Trash rm image-id
Remove the image from the trash can, and if the image masquerade deletion time has not expired, it cannot be deleted unless it is forced to delete, but a clone or snapshot in use cannot be actively deleted.
Watch image-spec
View active events on image.
* reprint, please indicate the source *
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.