Skip to content

Commit 8e65376

Browse files
committed
add steps to list contents of /dev/disk/azure to identify LUN
1 parent 68f4d42 commit 8e65376

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,17 @@ 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'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.
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. Another option is to list the contents of the `/dev/disk/azure/scsi1` directory:
77+
78+
```bash
79+
ls -l /dev/disk/azure/scsi1
80+
```
81+
82+
The output should be similar to the following example:
83+
84+
```output
85+
lrwxrwxrwx 1 root root 12 Mar 28 19:41 lun0 -> ../../../sdc
86+
```
7787

7888

7989
### Format the disk

0 commit comments

Comments
 (0)