Solved

VMWare - add virtual disks to a VM

Posted on 2013-06-25
11
348 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
  • 6
  • 5
11 Comments
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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 118
ID: 39276105
no problems
0
 

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 118
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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

Author Comment

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

See attachment...
disk-settings.jpg
0
 
LVL 118
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 118
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 118
ID: 39276530
no probs!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now