To add a datastore to a VM:
- Right-click the VM and click Edit Settings.
- Click Add Device.
- Select New Hard Disk.
- Browse to the location of the datastore and select the datastore.
- Change the disk capacity to 900 GB.
- Change the sharing to No Sharing.
- Change the disk mode to Independent Persistent.
- Change the SCSI controller to New SCSI Controller.
- Click OK.
- Repeat the preceding steps for the remaining volumes.
Discovering LUNs within the RHEL guest operating system
To discover LUNs within the RHEL guest operating system:
- Start the VM and verify that all the virtual disks that are attached to the VM are visible as devices in the RHEL guest operating system.
Device names appear as /dev/sda, /dev/sdb, and so on.
- Run the following command to see the devices:
Cat /proc/partitions
- Change the disk label to GPT:
parted /dev/sdb mklabel gpt
- Create the partition using the fdisk/parted command.
- Create an ext4 file system on the partition:
mkfs.ext4 /dev/sdg1 2>/dev/null
- Check the UUID for the device:
blkid /dev/sdg1
/dev/sdb1: UUID="9e4d449e-62df-4c8d-bc21-d1d7f732f953" TYPE="ext4"
- Add the UUID in fstab:
UUID=9e4d449e-62df-4c8d-bc21-d1d7f732f953 /log ext4 auto,user,rw 0 0
- Create the target directory for data and log files:
Mkdir /data
Mkdir /log
- Change the owner and group of the directory to the mssql user:
chown mssql /data
chgrp mssql /log
- Mount the directory:
Mount /data
Mount /log
- Repeat the preceding steps for the remaining volumes.
Discovering LUNs within the Windows guest operating system
To discover LUNs within the Windows guest operating system:
- Open the Run dialog and enter diskmgmt.msc to open the disk management application.
- In Disk Management, right-click the disk that you want to initialize, and then click Initialize Disk.
If the disk is listed as Offline, first right-click it and select Online.
- In the Initialize Disk dialog box, ensure that the correct disk is selected and then click OK to accept the default partition style.
- Right-click the disk and select New Simple Volume.
- Select the maximum disk space, click Next, assign a drive letter, and click Next.
- From the list menu, select ReFS, select 64Kb for the allocation unit size, and then click Next.