Skip to content

Commit b03a9e2

Browse files
committed
Grammar and acrolinx.
1 parent b134c57 commit b03a9e2

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

articles/virtual-machines/linux/add-disk.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ssh [email protected]
5555

5656
### Find the disk
5757

58-
Once connected to your VM, you need to find the disk. In this example, we are using `lsblk` to list the disks.
58+
Once you connect to your VM, find the disk. In this example, we're using `lsblk` to list the disks.
5959

6060
```bash
6161
lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"
@@ -73,19 +73,19 @@ sdb 1:0:1:0 14G
7373
sdc 3:0:0:0 50G
7474
```
7575

76-
Here, `sdc` is the disk that we want, because it is 50G. If you add multiple disks, and aren't sure which disk it is based on size alone, you can go to the VM page in the portal, select **Disks**, and check the LUN number for the disk under **Data disks**. Compare the LUN number from the portal to the last number of the **HTCL** portion of the output, which is the LUN.
76+
Here, `sdc` is the disk that we want, because it's 50G. If you add multiple disks, and aren't sure which disk it's based on size alone, you can go to the VM page in the portal, select **Disks**, and check the LUN number for the disk under **Data disks**. Compare the LUN number from the portal to the last number of the **HTCL** portion of the output, which is the LUN.
7777

7878

7979
### Format the disk
8080

81-
Format the disk with `parted`, if the disk size is 2 tebibytes (TiB) or larger then you must use GPT partitioning, if it is under 2TiB, then you can use either MBR or GPT partitioning.
81+
Format the disk with `parted`, if the disk size is two tebibytes (TiB) or larger then you must use GPT partitioning, if it is under 2TiB, then you can use either MBR or GPT partitioning.
8282

8383
> [!NOTE]
8484
> It is recommended that you use the latest version `parted` that is available for your distro.
8585
> If the disk size is 2 tebibytes (TiB) or larger, you must use GPT partitioning. If disk size is under 2 TiB, then you can use either MBR or GPT partitioning.
8686
8787

88-
The following example uses `parted` on `/dev/sdc`, which is where the first data disk will typically be on most VMs. Replace `sdc` with the correct option for your disk. We are also formatting it using the [XFS](https://xfs.wiki.kernel.org/) filesystem.
88+
The following example uses `parted` on `/dev/sdc`, which is where the first data disk will typically be on most VMs. Replace `sdc` with the correct option for your disk. We're also formatting it using the [XFS](https://xfs.wiki.kernel.org/) filesystem.
8989

9090
```bash
9191
sudo parted /dev/sdc --script mklabel gpt mkpart xfspart xfs 0% 100%
@@ -112,7 +112,7 @@ sudo mount /dev/sdc1 /datadrive
112112

113113
### Persist the mount
114114

115-
To ensure that the drive is remounted automatically after a reboot, it must be added to the */etc/fstab* file. It is also highly recommended that the UUID (Universally Unique Identifier) is used in */etc/fstab* to refer to the drive rather than just the device name (such as, */dev/sdc1*). If the OS detects a disk error during boot, using the UUID avoids the incorrect disk being mounted to a given location. Remaining data disks would then be assigned those same device IDs. To find the UUID of the new drive, use the `blkid` utility:
115+
To ensure that the drive is remounted automatically after a reboot, it must be added to the */etc/fstab* file. It's also highly recommended that the UUID (Universally Unique Identifier) is used in */etc/fstab* to refer to the drive rather than just the device name (such as, */dev/sdc1*). If the OS detects a disk error during boot, using the UUID avoids the incorrect disk being mounted to a given location. Remaining data disks would then be assigned those same device IDs. To find the UUID of the new drive, use the `blkid` utility:
116116

117117
```bash
118118
sudo blkid
@@ -137,7 +137,7 @@ Next, open the **/etc/fstab** file in a text editor. Add a line to the end of th
137137
UUID=33333333-3b3b-3c3c-3d3d-3e3e3e3e3e3e /datadrive xfs defaults,nofail 1 2
138138
```
139139

140-
When you are done editing the file, save and close the editor.
140+
When you're done editing the file, save and close the editor.
141141

142142
> [!NOTE]
143143
> Later removing a data disk without editing fstab could cause the VM to fail to boot. Most distributions provide either the *nofail* and/or *nobootwait* fstab options. These options allow a system to boot even if the disk fails to mount at boot time. Consult your distribution's documentation for more information on these parameters.
@@ -167,7 +167,7 @@ sudo apt-get install util-linux
167167
sudo fstrim /datadrive
168168
```
169169

170-
# [Red Hat](#tab/rhel)
170+
# [RHEL](#tab/rhel)
171171

172172
```bash
173173
sudo yum install util-linux
@@ -188,4 +188,4 @@ sudo fstrim /datadrive
188188
## Next steps
189189

190190
* To ensure your Linux VM is configured correctly, review the [Optimize your Linux machine performance](/previous-versions/azure/virtual-machines/linux/optimization) recommendations.
191-
* Expand your storage capacity by adding additional disks and [configure RAID](/previous-versions/azure/virtual-machines/linux/configure-raid) for additional performance.
191+
* Expand your storage capacity by adding more disks and [configure RAID](/previous-versions/azure/virtual-machines/linux/configure-raid) for extra performance.

articles/virtual-machines/linux/attach-disk-portal.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ Before you attach disks to your VM, review these tips:
3838
:::image type="content" source="./media/attach-disk-portal/create-new-md.png" alt-text="Review disk settings.":::
3939

4040

41-
1. When you are done, select **Save** at the top of the page to create the managed disk and update the VM configuration.
41+
1. When you're done, select **Save** at the top of the page to create the managed disk and update the VM configuration.
4242

4343

4444
## Attach an existing disk
4545
1. On the **Disks** pane, under **Data disks**, select **Attach existing disks**.
46-
1. Click the drop-down menu for **Disk name** and select a disk from the list of available managed disks.
46+
1. Select the drop-down menu for **Disk name** and select a disk from the list of available managed disks.
4747

48-
1. Click **Save** to attach the existing managed disk and update the VM configuration:
48+
1. Select **Save** to attach the existing managed disk and update the VM configuration:
4949

5050

5151
## Connect to the Linux VM to mount the new disk
@@ -57,7 +57,7 @@ ssh [email protected]
5757

5858
## Find the disk
5959

60-
Once connected to your VM, you need to find the disk. In this example, we are using `lsblk` to list the disks.
60+
Once connected to your VM, you need to find the disk. In this example, we're using `lsblk` to list the disks.
6161

6262
```bash
6363
lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"
@@ -75,15 +75,15 @@ sdb 1:0:1:0 14G
7575
sdc 3:0:0:0 4G
7676
```
7777

78-
In this example, the disk that added was `sdc`. It is a LUN 0 and is 4GB.
78+
In this example, the disk that was added was `sdc`. It's a LUN 0 and is 4GB.
7979

80-
For a more complex example, here is what multiple data disks look like in the portal:
80+
For a more complex example, here's what multiple data disks look like in the portal:
8181

8282
:::image type="content" source="./media/attach-disk-portal/find-disk.png" alt-text="Screenshot of multiple disks shown in the portal.":::
8383

8484
In the image, you can see that there are 3 data disks: 4 GB on LUN 0, 16GB at LUN 1, and 32G at LUN 2.
8585

86-
Here is what that might look like using `lsblk`:
86+
Here's what that might look like using `lsblk`:
8787

8888
```bash
8989
sda 0:0:0:0 30G
@@ -105,14 +105,14 @@ From the output of `lsblk` you can see that the 4GB disk at LUN 0 is `sdc`, the
105105
> If you are using an existing disk that contains data, skip to [mounting the disk](#mount-the-disk).
106106
> The following instructions will delete data on the disk.
107107
108-
If you are attaching a new disk, you need to partition the disk.
108+
If you're attaching a new disk, you need to partition the disk.
109109

110110
The `parted` utility can be used to partition and to format a data disk.
111111
- Use the latest version `parted` that is available for your distro.
112112
- If the disk size is 2 tebibytes (TiB) or larger, you must use GPT partitioning. If disk size is under 2 TiB, then you can use either MBR or GPT partitioning.
113113

114114

115-
The following example uses `parted` on `/dev/sdc`, which is where the first data disk will typically be on most VMs. Replace `sdc` with the correct option for your disk. We are also formatting it using the [XFS](https://xfs.wiki.kernel.org/) filesystem.
115+
The following example uses `parted` on `/dev/sdc`, which is where the first data disk will typically be on most VMs. Replace `sdc` with the correct option for your disk. We're also formatting it using the [XFS](https://xfs.wiki.kernel.org/) filesystem.
116116

117117
```bash
118118
sudo parted /dev/sdc --script mklabel gpt mkpart xfspart xfs 0% 100%
@@ -136,7 +136,7 @@ Use `mount` to then mount the filesystem. The following example mounts the */dev
136136
sudo mount /dev/sdc1 /datadrive
137137
```
138138

139-
To ensure that the drive is remounted automatically after a reboot, it must be added to the */etc/fstab* file. It is also highly recommended that the UUID (Universally Unique Identifier) is used in */etc/fstab* to refer to the drive rather than just the device name (such as, */dev/sdc1*). If the OS detects a disk error during boot, using the UUID avoids the incorrect disk being mounted to a given location. Remaining data disks would then be assigned those same device IDs. To find the UUID of the new drive, use the `blkid` utility:
139+
To ensure that the drive is remounted automatically after a reboot, it must be added to the */etc/fstab* file. It's also highly recommended that the UUID (Universally Unique Identifier) is used in */etc/fstab* to refer to the drive rather than just the device name (such as, */dev/sdc1*). If the OS detects a disk error during boot, using the UUID avoids the incorrect disk being mounted to a given location. Remaining data disks would then be assigned those same device IDs. To find the UUID of the new drive, use the `blkid` utility:
140140

141141
```bash
142142
sudo blkid
@@ -161,7 +161,7 @@ Next, open the **/etc/fstab** file in a text editor. Add a line to the end of th
161161
UUID=33333333-3b3b-3c3c-3d3d-3e3e3e3e3e3e /datadrive xfs defaults,nofail 1 2
162162
```
163163

164-
When you are done editing the file, save and close the editor.
164+
When you're done editing the file, save and close the editor.
165165

166166
> [!NOTE]
167167
> Later removing a data disk without editing fstab could cause the VM to fail to boot. Most distributions provide either the *nofail* and/or *nobootwait* fstab options. These options allow a system to boot even if the disk fails to mount at boot time. Consult your distribution's documentation for more information on these parameters.
@@ -212,7 +212,7 @@ sudo apt-get install util-linux
212212
sudo fstrim /datadrive
213213
```
214214

215-
# [Red Hat](#tab/rhel)
215+
# [RHEL](#tab/rhel)
216216

217217
```bash
218218
sudo yum install util-linux

0 commit comments

Comments
 (0)