Solved

VMWare - add virtual disks to a VM

Posted on 2013-06-25
11
352 Views
Last Modified: 2013-06-25
Hi,

Sorry for the dummy question, first time doing it...

I have a VM that I want to assign three virtual disks to it 3x150G, and 2x500g. (so its 5)

In VMware I have this datastores assigned to my VMs - datastores file attached and VM summary attached

So, can I go ahead and Create New Virtual disks with the sizes I want? (split it), (using the datastore that I have "ds_local")

By doing this will it appear in the fdisk command in my VM the disk?

In the VM (that runs RHEL) what I have now is this:

[root@otadp9app ~]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00097b50

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        3917    30944256   8e  Linux LVM

Disk /dev/mapper/vg_sysomostst-lv_root: 27.5 GB, 27455913984 bytes
255 heads, 63 sectors/track, 3337 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
datastores.jpg
vm-summary.jpg
create-VD.jpg
0
Comment
Question by:joaotelles
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39276088
Yes, when you create a virtual disk, you have the option to specify size, and which datastore it's located on, also you have the choice, of which SCSI ID on the SCSI Bus the disk is associated, assuming a SCSI disk.

this will then be

/sdb
/sdd
/sde
/sdf

etc
0
 

Author Closing Comment

by:joaotelles
ID: 39276101
Tks.
0
 
LVL 120
ID: 39276105
no problems
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:joaotelles
ID: 39276130
I can see the LUNs there but they dont have the SCSI UID....

[root@otadp9db /]# ls -ltr /dev/sd[b-z]
brw-rw----. 1 root disk 8, 16 Jun 25 16:03 /dev/sdb
brw-rw----. 1 root disk 8, 32 Jun 25 16:03 /dev/sdc
brw-rw----. 1 root disk 8, 48 Jun 25 16:03 /dev/sdd
brw-rw----. 1 root disk 8, 64 Jun 25 16:03 /dev/sde
brw-rw----. 1 root disk 8, 80 Jun 25 16:03 /dev/sdf


[root@otadp9db /]# /sbin/scsi_id -g -u /dev/sdc
[root@otadp9db /]#


Am I missing anything?
0
 
LVL 120
ID: 39276142
SCSI ID is shown, at the VM Settings, it's not likely to be shown to VM, because it's a virtual scsi id, for a virtual scsi disk
0
 

Author Comment

by:joaotelles
ID: 39276158
Im not finding it...

See attachment...
disk-settings.jpg
0
 
LVL 120
ID: 39276177
scsi id
0
 

Author Comment

by:joaotelles
ID: 39276198
The ID is '2' ??? I didnt understand.. I was hoping to get something like this:

[root@agi4 ~]# scsi_id -g -u -s /block/sdb
36000c295c6b7b66cac7736df6b7cc1b3
0
 
LVL 120
ID: 39276209
SCSI ID is shown in VM Settings for the disk.

Yes, the SCSI ID for the disk on the bus is 2.

it will not be shown in the VM. (it's virtual aka does not exist!)

scsi_id queries a SCSI device via the SCSI INQUIRY, but these disks are not true scsi disks, that only happens in the real physical world!

this is virtual.
0
 

Author Comment

by:joaotelles
ID: 39276393
Tks for the help once again! :)
0
 
LVL 120
ID: 39276530
no probs!
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question