Reader small image

You're reading from  Mastering PowerCLI

Product typeBook
Published inOct 2015
Reading LevelIntermediate
PublisherPackt
ISBN-139781785286858
Edition1st Edition
Languages
Right arrow
Author (1)
Sajal Debnath
Sajal Debnath
author image
Sajal Debnath

Sajal Debnath is a highly certified Cloud computing technocrat with more than 12 years of experience in virtualized data center design, Cloud computing, and BC/DR solutions. He is an EMCISA, VCAP-DCD/DCA, VCAP-CID/CIA, RHCE 4/5/6, RHCVA, Openstack, and ITIL certified person. He is presently associated with VMware Software India Pvt. Ltd. as a senior system engineer. Previously, he worked with France Telecom, Hewlett Packard, and many more in multiple roles. He is involved in prestigious Indian government projects, such as National Cloud, Digital Locker, and so on.
Read more about Sajal Debnath

Right arrow

Using Raw Device Mapping


Though Raw Device Mapping (RDM) disks are added to a VM, we will cover this topic here as we are discussing storage-related topics here. A RDM is a pointer mapping file, which is kept in a VMFS datastore that acts as a proxy for a raw physical storage device. By using RDM, a virtual machine can directly access the raw physical device. Typically, we use RDM disks when we need to access raw disks—for example, configuring an OS cluster inside a guest OS, configuring database clusters, and so on. To add a device as a RDM disk to a VM, let's first get a list of devices available to a host. We do this using a list of SCSI devices available per host using the Get-SCSILun cmdlet:

PS C:\> Get-ScsiLun -VmHost ESXi1.lab.com | Select ConsoleDeviceName | Sort ConsoleDeviceName

The result of the preceding command is shown in the following screenshot:

From the device list shown in the preceding screenshot, we will take /vmfs/devices/disks/t10.FreeBSD_iSCSI_Disk______000c2905f550005_________________...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering PowerCLI
Published in: Oct 2015Publisher: PacktISBN-13: 9781785286858

Author (1)

author image
Sajal Debnath

Sajal Debnath is a highly certified Cloud computing technocrat with more than 12 years of experience in virtualized data center design, Cloud computing, and BC/DR solutions. He is an EMCISA, VCAP-DCD/DCA, VCAP-CID/CIA, RHCE 4/5/6, RHCVA, Openstack, and ITIL certified person. He is presently associated with VMware Software India Pvt. Ltd. as a senior system engineer. Previously, he worked with France Telecom, Hewlett Packard, and many more in multiple roles. He is involved in prestigious Indian government projects, such as National Cloud, Digital Locker, and so on.
Read more about Sajal Debnath