docs: Encourage usage of UUID inside /etc/fstab in examples
Update doc examples to use explicit UUID of devices, instead of using unstable device names. Change-Id: I3a2eb7bbe4b4091d2567897904d939df1df6b251 Closes-Bug: #1817966
This commit is contained in:
parent
9d4dc29fb3
commit
875a142980
@ -135,9 +135,13 @@ another device when creating the VM, and follow these instructions:
|
||||
|
||||
sudo mkfs.xfs /dev/sdb1
|
||||
|
||||
#. Find the UUID of the new partition::
|
||||
|
||||
sudo blkid
|
||||
|
||||
#. Edit ``/etc/fstab`` and add::
|
||||
|
||||
/dev/sdb1 /mnt/sdb1 xfs noatime,nodiratime,logbufs=8 0 0
|
||||
UUID="<UUID-from-output-above>" /mnt/sdb1 xfs noatime,nodiratime,logbufs=8 0 0
|
||||
|
||||
#. Create the Swift data mount point and test that mounting works::
|
||||
|
||||
|
@ -49,12 +49,18 @@ storage nodes, you must prepare the storage devices.
|
||||
# mkdir -p /srv/node/sdb
|
||||
# mkdir -p /srv/node/sdc
|
||||
|
||||
#. Find the UUID of the new partitions:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
# blkid
|
||||
|
||||
#. Edit the ``/etc/fstab`` file and add the following to it:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
/dev/sdb /srv/node/sdb xfs noatime,nodiratime,logbufs=8 0 2
|
||||
/dev/sdc /srv/node/sdc xfs noatime,nodiratime,logbufs=8 0 2
|
||||
UUID="<UUID-from-output-above>" /srv/node/sdb xfs noatime,nodiratime,logbufs=8 0 2
|
||||
UUID="<UUID-from-output-above>" /srv/node/sdc xfs noatime,nodiratime,logbufs=8 0 2
|
||||
|
||||
#. Mount the devices:
|
||||
|
||||
|
@ -48,12 +48,18 @@ storage nodes, you must prepare the storage devices.
|
||||
# mkdir -p /srv/node/sdb
|
||||
# mkdir -p /srv/node/sdc
|
||||
|
||||
#. Find the UUID of the new partitions:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
# blkid
|
||||
|
||||
#. Edit the ``/etc/fstab`` file and add the following to it:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
/dev/sdb /srv/node/sdb xfs noatime,nodiratime,logbufs=8 0 2
|
||||
/dev/sdc /srv/node/sdc xfs noatime,nodiratime,logbufs=8 0 2
|
||||
UUID="<UUID-from-output-above>" /srv/node/sdb xfs noatime,nodiratime,logbufs=8 0 2
|
||||
UUID="<UUID-from-output-above>" /srv/node/sdc xfs noatime,nodiratime,logbufs=8 0 2
|
||||
|
||||
#. Mount the devices:
|
||||
|
||||
|
@ -48,12 +48,18 @@ storage nodes, you must prepare the storage devices.
|
||||
# mkdir -p /srv/node/sdb
|
||||
# mkdir -p /srv/node/sdc
|
||||
|
||||
#. Find the UUID of the new partitions:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
# blkid
|
||||
|
||||
#. Edit the ``/etc/fstab`` file and add the following to it:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
/dev/sdb /srv/node/sdb xfs noatime,nodiratime,logbufs=8 0 2
|
||||
/dev/sdc /srv/node/sdc xfs noatime,nodiratime,logbufs=8 0 2
|
||||
UUID="<UUID-from-output-above>" /srv/node/sdb xfs noatime,nodiratime,logbufs=8 0 2
|
||||
UUID="<UUID-from-output-above>" /srv/node/sdc xfs noatime,nodiratime,logbufs=8 0 2
|
||||
|
||||
#. Mount the devices:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user