In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Vmware how to use workstation to create shared disk groups, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
1. Create an arbitration disk
Enter the VMware Workstation software installation directory and type the following command at the command prompt:
Vmware-vdiskmanager.exe-c-s 500Mb-a lsilogic-t 2 e:\ viros\ share\ quorum.vmdk
2. Create a shared disk
Enter the VMware Workstation software installation directory and type the following command at the command prompt:
Vmware-vdiskmanager.exe-c-s 10Gb-a lsilogic-t 0e:\ viros\ share\ sharedisk01.vmdk
Vmware-vdiskmanager.exe-c-s 10Gb-a lsilogic-t 0e:\ viros\ share\ sharedisk02.vmdk
Vmware-vdiskmanager.exe-c-s 10Gb-a lsilogic-t 0e:\ viros\ share\ sharedisk03.vmdk
3. Attach shared disk
Through the previous operation, we have successfully created the shared disk required by the cluster. Next, attach the virtual disk file to NodeA and NodeB.
Edit the .vmx (VMware configuration file) of the two machines, open it in notepad, and add the following record:
Disk.locking = "false"
DiskLib.dataCacheMaxSize = "0"
Scsi1.present = "TRUE"
Scsi1.virtualDev = "lsilogic"
Scsi1:1.present = "TRUE"
Scsi1:1.fileName = "E:\ viros\ share\ quorum.vmdk"
Scsi1:2.present = "TRUE"
Scsi1:2.fileName = "E:\ viros\ share\ sharedisk01.vmdk"
Scsi1:3.present = "TRUE"
Scsi1:3.fileName = "E:\ viros\ share\ sharedisk02.vmdk"
Scsi1:4.present = "TRUE"
Scsi1:4.fileName = "E:\ viros\ share\ sharedisk03.vmdk"
Close the VMware Workstation software and open it again, and you will find that the previously created shared disks are attached to NodeA and NodeB.
4. How to use vmware-vdiskmanager:
Vmware-vdiskmanager
Command syntax:
Vmware-vdiskmanager [options]
VMware Virtual Disk Manager-build 44356.
Usage: vmware-vdiskmanager [options]
The name of the virtual disk file.
# Virtual disk files must be .vmdk with an extension. You can specify a path to the virtual disk file you want to store. If you map a network share in your host, you can also provide the exact path information of the virtual disk file to create a virtual disk in this network share.
-c
Create a virtual disk.
# you must use-a,-s and-t and specify the option parameters, and then you need to specify the file name of the virtual disk file you want to create.
-r
Converts the type of virtual disk that has been specified.
# the result will be output to create a new virtual disk. You must use the-t option to specify the type of disk you want to convert to and specify the file name of the destination virtual disk.
Once the conversion is complete, you can test the virtual disk to make sure it works as you want, and then delete the original virtual disk file.
# in order for the virtual machine to re-recognize the converted virtual disk, you should use the virtual machine settings editor to remove the pre-existing virtual disk from the virtual machine, and then add the converted virtual disk to the virtual machine.
-x [GB | MB]
Increase the virtual disk to the specified capacity. You must specify new and larger virtual disks to be marked in GB or MB units. You cannot change the size of the physical disk.
Before you run the virtual disk management software, you should back up the virtual disk files. Because vmware-vdiskmanager will write the new configuration to your virtual machine configuration file
-d
Defragment the specified virtual disk.
# you can only defragment virtual disks that can grow. You cannot defragment pre-allocated virtual disks.
-p
Prepare to shrink the disk.
# if the virtual disk is divided into multiple partitions, each partition must be prepared separately. Partitions (such as / email or / storage) must be mapped using the VMware DiskMount tool.
# after you are ready to process the partition, unmap the partition. Continue to map each other partition of the virtual disk to prepare for shrinking the disk until all partitions on the virtual disk are ready.
# you can only map one partition of a virtual disk with VMware DiskMount at a time. You can only prepare the shrinking partition of the virtual disk on the host.
-k
Shrinks the specified virtual disk. You can only shrink the growable disk. You can only shrink the virtual disk in this way in the host.
# you cannot shrink virtual disks with virtual machine snapshots. You can keep the existing virtual disk in its state and use the snapshot manager to delete all snapshots. You can also discard the changes made to the virtual disk since the snapshot and return to the state at the time of the snapshot.
-a [ide | buslogic | lsilogic]
Specifies the type of disk adapter. You must specify the type of new virtual disk when you create it.
# Select one of the following types:
# ide-IDE Interface Adapter
# buslogic-BusLogic SCSI Interface Adapter
# lsilogic-LSI Logic SCSI Interface Adapter
-s [GB | MB]
Specifies the size of the virtual disk. Determine the size in GB or MB units. You must specify the size of the disk when you create it.
# although you have to specify the size of the virtual disk, you cannot use the-s option when you increase its size.
# the disk size that can be specified is specified: both IDE and SCSI adapters are the minimum 100MB and the maximum 950GB.
-t [0 | 1 | 2 | 3]
You must specify the type of virtual disk when you create a new virtual disk or reconfigure a virtual disk.
# specify one of the following types:
# 0-create a growable virtual disk contained in a single virtual file
# 1-create a growable virtual disk that is split into each file 2GB size
# 2-create a pre-allocated virtual disk contained in a single virtual file
# 3-create a pre-allocated virtual disk that is split into each file 2GB size
-Q
Prohibit the virtual disk manager from writing logs
# if you allow logging, the log will be generated and stored by the virtual disk manager. After the virtual disk manager runs, the name and location of the log will appear on the command line or terminal.
-n
Renames the specified virtual disk. You need to specify a named virtual disk name.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.