vinobad.blogg.se

Ubuntu server vmdk
Ubuntu server vmdk









ubuntu server vmdk

Run fdisk /dev/sdb and carry out these steps:

ubuntu server vmdk

Step 5a – This first method, using fdisk, is the preferred option since disks without partitions can be a source of confusion. Note that there are instances where a disk in use does not have any partitions so try something like df -h to see if the drive is in use.

ubuntu server vmdk

Step 4 – Just to be sure that we got the correct drive, run fdisk /dev/sdb to verify that it has no partitions as per the device does not contain a recognized partition table message. echo "-" > /sys/class/scsi_host/host2/scan Fdisk is used to list all the available drives on the machine. If the newly added drive is not discovered, reboot the VM. grep mpt /sys/class/scsi_host/host?/proc_name The first command returns the SCSI host in use which in this case is host2. TIP: You can add and scan for new drives without the need to reboot the VM. Given the next screenshot, this means that sdb is the newly added drive. In my case, I began with one disk sda partitioned as sda1 and sda2. This allows you to easily spot the name of the new device. Ideally, you’d do this prior to creating the new disk so you can compare outputs later. Step 3 – Run ls /dev/sd* to list the disks and associated partitions. Log in as root or one with similar privileges. Step 2– Console to the VM or SSH to it using putty or similar.

ubuntu server vmdk

As per the next screenshot, I’ve created a 1GB drive which is thick provisioned and residing on an iSCSI datastore.Ĭreating a new disk using the vSphere Web Client Step 1 – Add the new hard disk (VMDK) from the VM’s settings. How to add a new disk to a Linux Centos VM Throughout this post, I’m using the vSphere Web client that comes installed with vCenter Server 6.5. Having said that, LVM has some major benefits, so do your homework when selecting a filesystem for Linux. I chose not to use LVM selecting ext4 as the file system to keep things simple. I’ll be using a Centos VM as a test case to which I’ll add a second disk and expand it at a later stage. In today’s topic, we’ll explore how to manage disk space on a Linux VM. You need to factor in the Linux flavor, the file system type, whether LVM is used or not, mount points, boot persistence and so on. With Windows, it’s a simple matter of creating or expanding a VMDK and you’re a couple of clicks away from completing the task. Managing disk space on a VMware Linux VM, such as expanding existing drives, can turn out to be a complicated matter if Linux is not your thing.











Ubuntu server vmdk