• Elastic Volume Service

evs
  1. Help Center
  2. Elastic Volume Service
  3. User Guide
  4. FAQs
  5. Attachment
  6. Why I Cannot View the Attached Disk on the Server?

Why I Cannot View the Attached Disk on the Server?

Disk Has Not Been Initialized Yet

A disk cannot be viewed on the server and used right away after you attach it to a server on the management console. You must initialize the disk on the server before using it.

For details, see Introduction to Data Disk Initialization Scenarios and Partition Styles.

Server Has Not Set Automatic Disk Mounting at System Start

On a Linux server, if you have not set automatic disk mounting at system start, disks cannot be viewed after a server restart, and you need to run the mount command to mount the disk. For example, run mount /dev/xvdb1 /mnt/sdc.

To set automatic disk mounting at system start, perform the following steps:

  1. Run the following command to query the partition UUID:

    blkid Disk partition

    For example, run the following command to query the UUID of /dev/xvdb1:

    blkid /dev/xvdb1

    Information similar to the following is displayed:

    [root@ecs-b656 test]# blkid /dev/xvdb1
    /dev/xvdb1: UUID="1851e23f-1c57-40ab-86bb-5fc5fc606ffa" TYPE="ext4"

    The UUID of /dev/xvdb1 is displayed.

  2. Run the following command to open the fstab file using the vi editor:

    vi /etc/fstab

  3. Press i to enter the editing mode.
  4. Move the cursor to the end of the file and press Enter. Then add the following information:

    UUID=1851e23f-1c57-40ab-86bb-5fc5fc606ffa /mnt/sdc      ext4 defaults     0   2

  5. Press Esc, enter :wq, and press Enter.

    The system saves the configurations and exits the vi editor.