Asked by:
Change FriendlyName from UniqueID

Question
-
Summary: All disks have the same FriendlyName when using LSI 9210-8i in Server 2016
I have 3 Raid1 arrays set in LSI's Array Configuration, which Server 2016 can see. I was able to create a storage pool without issue. The FriendlyName for all disks are set to Adaptec Array, and Disk Type (Media Type) is set to Unknown. I've attempted to rename the disks, and set the disk type, through Powershell using the UniqueID as stated in this article: https://technet.microsoft.com/en-us/library/hh848651(v=wps.630).aspx
The change fails with the following:
PS C:\Users\Administrator> Get-PhysicalDisk | ft FriendlyName, UniqueId, Size –auto FriendlyName UniqueId Size ------------ -------- ---- Adaptec Array {3a76e346-2afd-a854-7d27-00810979d840} 99918807040 Adaptec Array {a0b13300-8976-afdc-f507-1658080cb088} 999385202688 Adaptec Array {f0b51eb9-a092-4835-7648-5194d1ed6eac} 127775277056 PS C:\Users\Administrator> Set-PhysicalDisk -UniqueId {3a76e346-2afd-a854-7d27-00810979d840} -MediaType SSD Set-PhysicalDisk : Cannot evaluate parameter 'UniqueId' because its argument is specified as a script block and there is no input. A script block cannot be evaluated without input. At line:1 char:28 + ... PhysicalDisk -UniqueId {3a76e346-2afd-a854-7d27-00810979d840} -MediaT ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : MetadataError: (:) [Set-PhysicalDisk], ParameterBindingException + FullyQualifiedErrorId : ScriptBlockArgumentNoInput,Set-PhysicalDisk
The storage pool has been created. I'm attempting to create a virtual disk with storage tiers, but with the disk type as unknown the check box is greyed out.
- Edited by Gurt89 Saturday, June 3, 2017 1:43 PM
Saturday, June 3, 2017 1:42 PM
All replies
-
Enclose in single quotes.
Set-PhysicalDisk -UniqueId '{3a76e346-2afd-a854-7d27-00810979d840}' -MediaType SSD
\_(ツ)_/
- Proposed as answer by Hello_2018 Thursday, June 8, 2017 10:15 AM
Saturday, June 3, 2017 2:16 PM -
Hi,
The uniqueid is a string:
-UniqueId Specifies the UniqueID of the physical disk on which to set attributes. Type: String Parameter Sets: ByUniqueId Aliases: Id Required: True Position: Named Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False
https://technet.microsoft.com/en-us/itpro/powershell/windows/storage/set-physicaldisk
Try this:
Set-PhysicalDisk -UniqueId "3a76e346-2afd-a854-7d27-00810979d840" -MediaType SSD
Or this:
Get-PhysicalDisk | select UniqueId | Set-PhysicalDisk -MediaType SSD
Best regards,
Andy
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- Proposed as answer by Hello_2018 Tuesday, June 13, 2017 4:07 AM
Tuesday, June 6, 2017 9:36 AM -
Hi,
Was your issue resolved?
If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
If no, please reply and tell us the current situation in order to provide further help.
Best Regards,
AndyPlease remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.Thursday, June 8, 2017 10:15 AM