目錄

簡介

問題

解決方案

簡介

本文檔介紹確定當前安裝了用於UC的NFVIS的卷所需的步驟。

問題

需要確定當前安裝了用於UC的NFVIS的卷。

解決方案

步驟1.對主機的CIMC運行RedFish API查詢，以確定通過哪些方式存在多少虛擬驅動器 https://<CIMC IP Address>/redfish/v1/Systems/<CIMC Serial Number>/Storage/MRAID/Volumes

輸出範例

{

"@odata.id": "/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes",

"@odata.type": "#VolumeCollection.VolumeCollection",

"@odata.context": "/redfish/v1/$metadata#VolumeCollection.VolumeCollection",

"Description": "Collection of Volumes for this system",

"Name": "Volume Collection",

"Members@odata.count": 4,

"Members": [

{

"@odata.id": "/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/0"

},

{

"@odata.id": "/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/1"

},

{

"@odata.id": "/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/2"

},

{

"@odata.id": "/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/3"

}

]

}

步驟2.查詢每個卷的API，其中Number是步驟1輸出中顯示的卷編號。https://<CIMC IP Address>/redfish/v1/Systems/<CIMC Serial Number>/Storage/MRAID/Volumes/Number

VD-0輸出示例

... Obmitted Output ...

"Id": "0",

"Name": "NA",

"Encrypted": false,

"CapacityBytes": 1494996746240,

"BlockSizeBytes": 512,

"OptimumIOSizeBytes": 131072,

"Identifiers": [

{

"DurableNameFormat": "UUID",

"DurableName": "60027e370b077b003179502a9dc8b57a"

}

],

"Status": {

"Health": "OK",

"State": "Enabled"

},

"Actions": {

"#Volume.Initialize": {

"target": "/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/0/Actions/Volume.Initialize",

"InitializeType@Redfish.AllowableValues": [

"Fast",

"Slow"

]

},

"#Volume.CheckConsistency": {

"target": "/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/0/Actions/Volume.CheckConsistency"

},

"Oem": {

"#Cisco.StartReconstruction": {

"target": "/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/0/Actions/Oem/Cisco.StartReconstruction",

"@odata.type": "#CiscoUCSExtensions.v1_0_0.StartReconstruction",

"ReconstructionOp@Redfish.AllowableValues": [

"add",

"remove",

"none"

]

}

}

},

"RAIDType": "RAID5",

"Oem": {

"Cisco": {

"VolumeAccessPolicy": "ReadWrite",

"RequestedWriteCachePolicy": "WriteBack",

"ConfiguredWriteCachePolicy": "WriteBack",

"VolumeDriveCachePolicy": "NoChange",

"VolumeReadAheadPolicy": "ReadAhead",

"VolumeIoPolicy": "DirectIo",

"VolumeState": "Optimal",

"AvailableSizeMiBytes": 0,

"Bootable": true,

"FullDiskEncryptionCapable": false

}

}

}

步驟3.從輸出捕獲中，為每個對象的DurableName值都是UUID。

"Identifiers": [

{

"DurableNameFormat": "UUID",

"DurableName": "60027e370b077b003179502a9dc8b57a"  <<- This is the UUID you copy

}

步驟4.通過SSH或控制檯連線到NFVIS-for-UC，並執行支援show list-units | include Volume-UUID。

步驟5.安裝NFVIS-for-UC的卷包含裝置以及裝置分割槽。

安裝了NFVIS-for-UC OS的卷的輸出示例。

BE7KH2-NFVIS# support show list-units | include 60027e370b077b003179502a9dc8b57a

dev-disk-by\x2did-scsi\x2d360027e370b077b003179502a9dc8b57a.device                loaded    active   plugged   UCSC-RAID12GP-4G

dev-disk-by\x2did-scsi\x2d360027e370b077b003179502a9dc8b57a\x2dpart1.device       loaded    active   plugged   UCSC-RAID12GP-4G 1

dev-disk-by\x2did-scsi\x2d360027e370b077b003179502a9dc8b57a\x2dpart2.device       loaded    active   plugged   UCSC-RAID12GP-4G 2

dev-disk-by\x2did-scsi\x2d360027e370b077b003179502a9dc8b57a\x2dpart3.device       loaded    active   plugged   UCSC-RAID12GP-4G 3

dev-disk-by\x2did-wwn\x2d0x60027e370b077b003179502a9dc8b57a.device                loaded    active   plugged   UCSC-RAID12GP-4G

dev-disk-by\x2did-wwn\x2d0x60027e370b077b003179502a9dc8b57a\x2dpart1.device       loaded    active   plugged   UCSC-RAID12GP-4G 1

dev-disk-by\x2did-wwn\x2d0x60027e370b077b003179502a9dc8b57a\x2dpart2.device       loaded    active   plugged   UCSC-RAID12GP-4G 2

dev-disk-by\x2did-wwn\x2d0x60027e370b077b003179502a9dc8b57a\x2dpart3.device       loaded    active   plugged   UCSC-RAID12GP-4G 3

非NFVIS-for-UC OS安裝的卷的輸出示例。

BE7KH2-NFVIS# support show list-units | include 60027e370b077b0031790987dc596ab8

dev-disk-by\x2did-scsi\x2d360027e370b077b0031790987dc596ab8.device                loaded    active   plugged   UCSC-RAID12GP-4G

dev-disk-by\x2did-wwn\x2d0x60027e370b077b0031790987dc596ab8.device                loaded    active   plugged   UCSC-RAID12GP-4G

{

"@odata.id":"/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes",

"@odata.type":"#VolumeCollection.VolumeCollection",

"@odata.context":"/redfish/v1/$metadata#VolumeCollection.VolumeCollection",

"說明":"此系統的卷集合",

"名稱":"卷收集",

"Members@odata.count":4,

"成員":[

{

"@odata.id":"/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/0"

},

{

"@odata.id":"/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/1"

},

{

"@odata.id":"/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/2"

},

{

"@odata.id":"/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/3"

}

]

}

{

"@odata.id":"/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes",

"@odata.type":"#VolumeCollection.VolumeCollection",

"@odata.context":"/redfish/v1/$metadata#VolumeCollection.VolumeCollection",

"說明":"此系統的卷集合",

"名稱":"卷收集",

"Members@odata.count":4,

"成員":[

{

"@odata.id":"/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/0"

},

{

"@odata.id":"/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/1"

},

{

"@odata.id":"/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/2"

},

{

"@odata.id":"/redfish/v1/Systems/SERIALNUMBER/Storage/MRAID/Volumes/3"

}

]

}