How to identify the config-drive partition of the controller node
Environment
- Red Hat OpenStack Platform 16.1
- Red Hat OpenStack Platform 16.2
Issue
- When using ReaR to back up the config-drive partition of the Controller node, how is the config-drive partition identified?
Resolution
- The config-drive partition has a LABEL of
config-2
. blkid command can be used to identify the partition with theconfig-2
LABEL.
The following is an example for the case where config-drive is /dev/sda1
[heat-admin@overcloud-controller-0 ~]$ blkid -t LABEL="config-2" -odevice
/dev/sda1
Root Cause
- Config drives are created with the volume label of
config-2
. - Config drive documentation
Diagnostic Steps
- It is able to check the config-drive partition by mounting the partition.
[root@overcloud-controller-0 ~]# blkid -t LABEL="config-2" -odevice
/dev/sda1
[root@overcloud-controller-0 ~]# mount /dev/sda1 /mnt
mount: /mnt: WARNING: device write-protected, mounted read-only.
[root@overcloud-controller-0 ~]#
[root@overcloud-controller-0 ~]# ls -l /mnt
total 4
dr-xr-xr-x. 4 root root 2048 Mar 5 14:11 ec2
dr-xr-xr-x. 11 root root 2048 Mar 5 14:11 openstack
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments