Last week, I was asked by a client if the mode of a PVS vDisk access could be changed through PowerShell. After some research and trial and error, I have understood the command will allow you to perform this task via the command line or a script.
mcli-disc set diskLocatorId -p = '06831ee-80DF-4ec7-A52C-bc25efedcd28' diskLocatorName = vDiskName, siteId = b576df60-A895 -4fdb-0b7-738f363102db, storeId = 7d80b5ca-162f-41d7-93b8-60129931f5c6 WriteCacheType r = 0
command Anatomy:
mcli-disc set -p: this is the command that allows you to change the recording property of a vDisk. The switch 'p' specifies that the following values are what will be used to locate the record vDisk to be changed. The parameters required to locate the vDisk are: DiskLocatorID, DiskLocatorName, SiteID and StoreID. The switch 'r', you can then modify a specific value for this record vDisk coming specified by the switch 'p'. In this case, the name and the value of that value is' WriteCacheType = 0
DiskLocatorID :. The alphanumeric value assigned to the object of disklocator. The disklocator is the terminology used to identify the PVS vDisk in PVS
DiskLocatorName: .. The name of the vDisk
SiteID: the alphanumeric value assigned to the site in the PVS Console. This number is used to refer to their configuration via the graphical interface. Each site in the console has a unique ID
StoreID :. The alphanumeric value assigned to the store in the PVS Console. This number is used to refer to the store's configuration via the graphical interface. Each store in the console has a unique ID
WriteCacheType: .. This property and digital codes assigned at any given time are what specifies the access mode for the vDisk
Image of record Disk / image DiskLocator record, respectively:
code WriteCacheType (PVS 6.1): ..
0 = privately
1 = standard image cache on the server
3 = standard image, hiding in the RAM of the device.
= 4 standard image cache on the hard disk device.
7 = standard image cache on the server (persistent).
8 = standard image cache on the device hard drive persisted (NT 6.1 and later).
0 Komentar