Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

VSphere Client virtual machine online add disk linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Right-click the virtual machine, and click "Edit Settings", as shown in the following figure:

2. Click "add", as shown in the following figure:

3. In the add hardware interface, find the item "hard disk" and click "hard disk", as shown in the following figure:

4. According to your own situation, I choose "create a new virtual disk" here, and click "next"

5. Add a new disk capacity. I will give 200g here, and select "thick backup delay zero".

6. Default value, click "next"

7. In this interface, you can see the information you just added. Click "finish".

8. This is to see one more hard disk, "New hard disk (being added)". Click "OK" to complete the final step. If you click cancel here, the hard disk will not be added successfully.

9. Then ssh to the virtual machine

View / sys/class/scsi_host/ has several hostx to identify the disk online in the following ways

[root@localhost ~] # echo "--> / sys/class/scsi_host/host2/scan # CentOS add hard disk and rescan bus

10. Create a new partition

[root@localhost ~] # fdisk-l # View partitions

[root@localhost ~] # fdisk / dev/sdc # create partition

[root@localhost ~] # cat / proc/partitions # View Partition

[root@localhost ~] # mkfs.ext4 / dev/sdc1 # format

[root@localhost /] # mkdir data1 # create a directory

[root@localhost /] # mount / dev/sdc1 / data1/ # mount

[root@localhost /] # df-ah # View

11. Add boot auto mount

[root@localhost ~] # blkid / dev/sda1 # View the device number or volume label of the device, that is, the file system or storage device that needs to be mounted

[root@localhost ~] # vim / etc/fstab

UUID=67ac3c6e-c0ea-43c5-8ce9-537598e2db6e / data1 xfs defaults 0 0

It's done. I hope to help you.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report