Observer fdisk -l output before and after adding/scanning disk to get a new disk name.įor our example, I am using the AWS EC2 server and I added 5GB disk to my server.Click the name of your server and then scroll down to the Boot disk section and click on the disk name: On the following page, click Edit in the menu at the top: You now edit your disk space size. Match timestamp of file and disk addition time. Now that you have a Snapshot, navigate to Compute -> VM Instances. Here's an example from the lvextend man page: Extends the size of logical volume 'vg01/lvol01' by the amount of free space on physical volume /dev/sdk3. Check newly created disk files in /dev filesystem. I'm guessing you'll have to 'lvextend' your logical volume, then resize the ext4 filesystem to use the newly added space.You can observer lsblk output before and after adding/scanning disk to get a new disk name. Right click the VM and select Edit Settings Select the hard disk you would like to extend On the right side, make the provisioned size as large as you need it Click OK Power on the VM Connect to.Mostly it’s done now automatically by the kernel in new versions.įirst thing is to identify the newly added disk and its name in the kernel. Identifying newly added disk in LinuxĪfter the attachment of the raw disk, you need to ask the kernel to scan a new disk. Now once the disk is attached to the Linux machine physically/virtually, it will be identified by the kernel and then our rally starts. If you are running a physical rack-mount/blade server then adding disk will be a physical task. (VM) > Edit virtual machine settings > Hardware > Hard Disk (SCSI) > Utilities > Expand > Maximum disk size. If you are on VMware Linux VM you will have a different set of steps to follow to add disk. To expand the Hard Disk, Right Click on your Virtual Machine>Click on Settings>Select SCSI>Select the Virtual Hard Drive that you want to. The Vmware utility ( Vmware Workstation or Vsphere ) provides a dialog to change the size of the Vmware virtual disk. After that you can change the disk sapce by editing the settings of the VM (right click > Settings). If you are using the AWS EC2 Linux server, you may follow these steps to add raw disk. Increase Disk Space in Linux VMware VM Before Increasing the disk size you need to shutdown your VM. Objective: Add a new 10GB disk to the server and create a 5GB mount point out of it using LVM and newly created volume group. Adding a raw disk to the Linux machine may vary depending upon the type of server you have but once the disk is presented to the machine, the procedure of getting it to mount points is almost the same. You can still use that extra Virtual Disk to increase your LVM size, so dont worry. In this article, we will walk you through steps to add a new disk in the Linux machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |