From aa8adf0758f6413ba8687f5479498623fae61146 Mon Sep 17 00:00:00 2001 From: Christoph Schittko Date: Thu, 8 Sep 2016 16:37:27 -0500 Subject: [PATCH] tiny formatting change --- dcos-attacheddisks/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dcos-attacheddisks/README.md b/dcos-attacheddisks/README.md index 5214bde..7117ebf 100644 --- a/dcos-attacheddisks/README.md +++ b/dcos-attacheddisks/README.md @@ -30,8 +30,10 @@ In order to prepare the disks and register them permanently here is a quick bash # Reboot the machine after 1 minute # sudo mkdir -p /dcos/volume0&&sudo parted -s /dev/sdc mklabel gpt mkpart primary ext4 0% 100%&&sudo mkfs -t ext4 /dev/sdc1&&sudo mount /dev/sdc1 /dcos/volume0&&sudo sh -c "echo '/dev/sdc1\t/dcos/volume0\text4\tdefaults\t0\t2' >> /etc/fstab"&&sudo shutdown --reboot 1 +``` Notice that the Azure documentation suggests that volumes are registered using their UUID. However doing that I have had failures with agents restarting In cases anyone still wants to try this is the alternate approach for the registration step becomes: +``` sudo sh -c "echo 'UUID=$(sudo blkid | grep '/dev/sdc1' | sed -n 's/.*UUID=\"\([^\"]*\)\".*/\1/p')\t/dcos/volume0\text4\tdefaults\t0\t2' >> /etc/fstab" ``` Step 4: Once the machine rebooted, edit the DCOS configuration in order to start leveraging the new volume.