diff options
author | Zuul <zuul@review.opendev.org> | 2020-07-08 21:59:24 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-07-08 21:59:24 +0000 |
commit | a92c536473cb4392f240cf78d7a2ac281d27b580 (patch) | |
tree | a74dde0e97e5a8a65670953ff8cea1c6ba65da60 /doc | |
parent | 3fab17f966c4d9e7c019b12cd749fa8218ca4ac4 (diff) | |
parent | 25dbdb7dc707e5b65d49d05baefaa267c8659669 (diff) | |
download | ironic-a92c536473cb4392f240cf78d7a2ac281d27b580.tar.gz |
Merge "[doc] Describe how to extract an fs UUID from an image"
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/admin/raid.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/source/admin/raid.rst b/doc/source/admin/raid.rst index 5d32f170f..38753d698 100644 --- a/doc/source/admin/raid.rst +++ b/doc/source/admin/raid.rst @@ -410,7 +410,17 @@ have its root file system on the first partition. Starting with Ussuri, the image can also have additional metadata to point Ironic to the partition with the root file system: for this, the image needs to set the ``rootfs_uuid`` property with the file system UUID of the root file -system. The pre-Ussuri approach, i.e. to have the root file system on +system. One way to extract this UUID from an existing image is to +download the image, mount it as a loopback device, and use ``blkid``: + +.. code-block:: bash + + $ sudo losetup -f + $ sudo losetup /dev/loop0 /tmp/myimage.raw + $ sudo kpartx -a /dev/loop0 + $ blkid + +The pre-Ussuri approach, i.e. to have the root file system on the first partition, is kept as a fallback and hence allows software RAID deployments where Ironic does not have access to any image metadata (e.g. Ironic stand-alone). |