• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 363
  • Last Modified:

VMWare - add virtual disks to a VM

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
joaotelles
Asked:
joaotelles
  • 6
  • 5
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
 
joaotellesAuthor Commented:
Tks.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
no problems
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
joaotellesAuthor Commented:
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
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
 
joaotellesAuthor Commented:
Im not finding it...

See attachment...
disk-settings.jpg
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
scsi id
0
 
joaotellesAuthor Commented:
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
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
 
joaotellesAuthor Commented:
Tks for the help once again! :)
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
no probs!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now