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

Linux system proof for VM virtual machine to add disk

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

Share

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

This article introduces the knowledge of "adding disks to the linux system of the VM virtual machine". In the operation of practical cases, many people will encounter this dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Today, when I installed oracle 11g database, I found that there was not enough disk space. Here are some simple steps to add a disk:

Adding a new hard disk requires shutting down the operating system

Click "Edit Virtual Machine Settings" to add the disk, go to the next step, add finished.

After adding, you can see the added disk, turn on the virtual machine, and execute the fdisk-l command to view the path of the added disk.

Execute mkfs.ext4 / dev/sdb format disk

[root@yang-rac1 ~] # mkfs.ext4 / dev/sdb

Mount the disk to / U01 after formatting

[root@yang-rac1] # mount-t ext4 / dev/sdb / U01

Add to the file / ect/fstab, enable automatic startup, and add the following:

/ dev/sdb/u01ext4 defaults 0 0

This is the end of the content of "linux system proof of adding disk for VM virtual machine". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for 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