Skip to content

Commit ffd227f

Browse files
committed
Updates for mc RELEASE.2024-10-02T08-27-28Z
- Adds a `--checksum` flag to `mc cp`, `mc mirror`, `mc pipe`, and `mc put` - Adds `--disable-multipart` to `mc put` - Adds alias name to outputs of `mc ready` - Adds flags to `mc admin heal` Closes #1334
1 parent 56ecef9 commit ffd227f

File tree

7 files changed

+120
-27
lines changed

7 files changed

+120
-27
lines changed

source/reference/minio-mc-admin/mc-admin-heal.rst

+29-15
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ Description
1515

1616
.. start-mc-admin-heal-desc
1717
18-
The :mc-cmd:`mc admin heal` command scans for objects that are damaged or
19-
corrupted and heals those objects.
18+
The :mc-cmd:`mc admin heal` command scans for objects that are damaged or corrupted and heals those objects.
2019

2120
.. end-mc-admin-heal-desc
2221
23-
:mc-cmd:`mc admin heal` is resource intensive and typically not required even
24-
after drive failures or corruption events. Instead, MinIO automatically heals
25-
objects damaged by silent bit rot corruption, drive failure, or other issues on
26-
``POST`` or ``GET``. MinIO also performs periodic background object healing using the :ref:`scanner <minio-concepts-scanner>`.
22+
:mc-cmd:`mc admin heal` is resource intensive and typically not required even after drive failures or corruption events.
23+
Instead, MinIO automatically heals objects damaged by silent bit rot corruption, drive failure, or other issues on ``POST`` or ``GET``.
24+
MinIO also performs periodic background object healing using the :ref:`scanner <minio-concepts-scanner>`.
2725

2826
Refer to :ref:`minio-concepts-healing` for more details on how MinIO heals objects.
2927

@@ -42,25 +40,41 @@ Syntax
4240
.. code-block:: shell
4341
:class: copyable
4442
45-
mc admin heal [FLAGS] TARGET
43+
mc admin heal [FLAGS] TARGET \
44+
[--all-drives, -a] \
45+
[--force] \
46+
[--verbose, -v]
4647
47-
:mc-cmd:`mc admin heal` supports the following argument:
48+
:mc-cmd:`mc admin heal` supports the following arguments:
4849

4950
.. mc-cmd:: TARGET
51+
:required:
5052

51-
*Required*
52-
53-
The full path to the bucket or bucket prefix on which the command should
54-
perform object healing. Specify the :mc-cmd:`alias <mc alias>` of a
55-
configured MinIO deployment as the prefix for the path. For example:
53+
The full path to the bucket or bucket prefix on which the command should perform object healing.
54+
Specify the :mc-cmd:`alias <mc alias>` of a configured MinIO deployment as the prefix for the path.
55+
For example:
5656

5757
.. code-block:: shell
5858
:class: copyable
5959
6060
mc admin heal play/mybucket/myprefix
6161
62-
If the ``TARGET`` bucket or bucket prefix has an active healing scan,
63-
the command returns the status of that scan.
62+
If the ``TARGET`` bucket or bucket prefix has an active healing scan, the command returns the status of that scan.
63+
64+
.. mc-cmd:: --all-drives, -a
65+
:optional:
66+
67+
Select all drives and show verbose information.
68+
69+
.. mc-cmd:: --force
70+
:optional:
71+
72+
Disables warning prompts.
73+
74+
.. mc-cmd:: --verbose, -v
75+
:optional:
76+
77+
Show information about offline and faulty healing drives.
6478

6579

6680
Healing Colors

source/reference/minio-mc/mc-cp.rst

+20
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,22 @@ Parameters
142142
Specify key-value pairs as ``KEY=VALUE\;``.
143143
For example, ``--attr key1=value1\;key2=value2\;key3=value3``.
144144

145+
.. mc-cmd:: --checksum
146+
:optional:
147+
148+
.. versionadded:: RELEASE.2024-10-02T08-27-28Z
149+
150+
Add a checksum to an uploaded object.
151+
152+
Valid values are:
153+
- ``MD5``
154+
- ``CRC32``
155+
- ``CRC32C``
156+
- ``SHA1``
157+
- ``SHA256``
158+
159+
The flag requires server trailing headers and works with AWS or MinIO targets.
160+
145161
.. mc-cmd:: --disable-multipart
146162
:optional:
147163

@@ -167,6 +183,10 @@ Parameters
167183
.. mc-cmd:: --md5
168184
:optional:
169185

186+
.. versionchanged:: RELEASE.2024-10-02T08-27-28Z
187+
188+
Replaced by the :mc-cmd:`~mc cp --checksum` flag.
189+
170190
Forces all uploads to calculate MD5 checksums.
171191

172192
.. mc-cmd:: --newer-than

source/reference/minio-mc/mc-mirror.rst

+17
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ The :mc:`mc mirror` command synchronizes content to MinIO deployment, similar to
5252
mc [GLOBALFLAGS] mirror \
5353
[--active-active] \
5454
[--attr "string"] \
55+
[--checksum "value"] \
5556
[--disable-multipart] \
5657
[--dry-run] \
5758
[--enc-kms "string"] \
@@ -151,6 +152,22 @@ Parameters
151152
Add custom metadata for mirrored objects. Specify key-value pairs as ``KEY=VALUE\;``.
152153
For example, ``--attr key1=value1\;key2=value2\;key3=value3``.
153154

155+
.. mc-cmd:: --checksum
156+
:optional:
157+
158+
.. versionadded:: RELEASE.2024-10-02T08-27-28Z
159+
160+
Add a checksum to an uploaded object.
161+
162+
Valid values are:
163+
- ``MD5``
164+
- ``CRC32``
165+
- ``CRC32C``
166+
- ``SHA1``
167+
- ``SHA256``
168+
169+
The flag requires server trailing headers and works with AWS or MinIO targets.
170+
154171
.. mc-cmd:: --disable-multipart
155172
:optional:
156173

source/reference/minio-mc/mc-pipe.rst

+19-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ The :mc:`mc pipe` command streams content from `STDIN <https://www.gnu.org/softw
3939
4040
mc [GLOBALFLAGS] pipe \
4141
TARGET \
42+
[--attr "string"] \
43+
[--checksum "string"] \
4244
[--enc-kms "string"] \
4345
[--enc-s3 "string"] \
4446
[--enc-c "string"] \
4547
[--storage-class, --sc "string"] \
46-
[--attr "string"] \
47-
[--tags "string"] \
48+
[--tags "string"]
4849
4950
.. include:: /includes/common-minio-mc.rst
5051
:start-after: start-minio-syntax
@@ -70,6 +71,22 @@ Parameters
7071
Specify key-value pairs as ``KEY=VALUE\;``, separating each pair with a back slash and semicolon (``\;``).
7172
For example, ``--attr key1=value1\;key2=value2\;key3=value3``.
7273

74+
.. mc-cmd:: --checksum
75+
:optional:
76+
77+
.. versionadded:: RELEASE.2024-10-02T08-27-28Z
78+
79+
Add a checksum to an uploaded object.
80+
81+
Valid values are:
82+
- ``MD5``
83+
- ``CRC32``
84+
- ``CRC32C``
85+
- ``SHA1``
86+
- ``SHA256``
87+
88+
The flag requires server trailing headers and works with AWS or MinIO targets.
89+
7390
.. block include of enc-c , enc-s3, and enc-kms
7491
7592
.. include:: /includes/common-minio-sse.rst

source/reference/minio-mc/mc-put.rst

+25
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ The :mc:`mc put` uploads an object from the local file system to a bucket on a t
4646
4747
mc [GLOBALFLAGS] put \
4848
TARGET \
49+
[--checksum value] \
50+
[--disable-multipart] \
4951
[--enc-kms value] \
5052
[--enc-s3 value] \
5153
[--enc-c value] \
@@ -76,6 +78,29 @@ Parameters
7678
- ``ALIAS/BUCKET/OBJECT-NAME``
7779
- ``ALIAS/BUCKET/PREFIX/OBJECT-NAME``
7880

81+
.. mc-cmd:: --checksum
82+
:optional:
83+
84+
.. versionadded:: RELEASE.2024-10-02T08-27-28Z
85+
86+
Add a checksum to an uploaded object.
87+
88+
Valid values are:
89+
- ``MD5``
90+
- ``CRC32``
91+
- ``CRC32C``
92+
- ``SHA1``
93+
- ``SHA256``
94+
95+
The flag requires server trailing headers and works with AWS or MinIO targets.
96+
97+
.. mc-cmd:: --disable-multipart
98+
:optional:
99+
100+
.. versionadded:: RELEASE.2024-10-02T08-27-28Z
101+
102+
Disables uploading using the multipart feature, instead putting the object in a single operation.
103+
79104
.. block include of enc-c , enc-s3, and enc-kms
80105
81106
.. include:: /includes/common-minio-sse.rst

source/reference/minio-mc/mc-ready.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,27 @@ The :mc:`mc ready` command checks the status of a cluster and whether the cluste
2323

2424
.. tab-item:: EXAMPLE
2525

26-
The following sends a ``GET`` request to the cluster and returns its status.
26+
The following sends a ``GET`` request to the cluster at alias ``myminio`` and returns its status.
2727

2828
.. code-block:: shell
2929
:class: copyable
3030
31-
mc ready play
31+
mc ready myminio
3232
33-
The command sends a ``GET`` request to the deployment at the :mc:`~mc alias` ``play``.'
33+
The command sends a ``GET`` request to the deployment at the :mc:`~mc alias` ``myminio``.'
3434
The command repeats the request until it is successful.
3535

36-
The output before a cluster is ready resembles the following:
36+
The output before the cluster at alias ``myminio`` is ready resembles the following:
3737

38-
.. code-block:: shell
38+
.. code-block:: text
3939
40-
The cluster is unreachable: Get "http://play.min.io:9000/minio/health/cluster": dial tcp 127.0.0.1:9000: connect: connection refused
40+
The cluster is `myminio` is unreachable: Get "http://myminio.example.com:9000/minio/health/cluster": dial tcp 198.51.100.0:9000: connect: connection refused
4141
42-
Once the request succeeds, the output resembles the following:
42+
Once the request succeeds in connecting to the ``myminio`` deployment, the output resembles the following:
4343

44-
.. code-block:: shell
44+
.. code-block:: text
4545
46-
The cluster is ready
46+
The cluster `myminio` is ready
4747
4848
.. tab-item:: SYNTAX
4949

source/reference/minio-mc/mc-stat.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You can also use it to retrieve bucket metadata.
2626

2727
.. end-mc-stat-desc
2828
29-
You can also use :mc:`mc stat` against the local filesystem to produce similar results to the ``stat`` commandline tool.
29+
You can use :mc:`mc stat` against the local filesystem to produce similar results to the ``stat`` commandline tool.
3030

3131
.. tab-set::
3232

0 commit comments

Comments
 (0)