Solved

VMWare - add virtual disks to a VM

Posted on 2013-06-25
11
347 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 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
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
Comment Utility
Tks.
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
no problems
0
 

Author Comment

by:joaotelles
Comment Utility
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 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:joaotelles
Comment Utility
Im not finding it...

See attachment...
disk-settings.jpg
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
scsi id
0
 

Author Comment

by:joaotelles
Comment Utility
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 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
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
Comment Utility
Tks for the help once again! :)
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
no probs!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
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…

762 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

12 Experts available now in Live!

Get 1:1 Help Now