Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell VxRail: Så här identifierar du oassocierade vSAN-objekt.

Summary: Instruktioner om hur du identifierar oassocierade vSAN-objekt med hjälp av RVC och ESXi objtool.

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

Steg 1. Identifiera objekten med hjälp av RVC:
* ssh till vcsa
 
# rvc administrator@vsphere.local@localhost
> cd /localhost//computers/
 vsan.obj_status_report . --print-uuids --print-table
* Fungerar endast med avsnittet Unassociated Objects
+------------------------------------------+---------+---------------------------+
| Unassociated objects                     | 18      |                           |
|    a338b560-78bc-e6fa-f520-e4434b18d1d4  |         | 3/3                       |
|    7ac9ae60-b8d3-9711-b67d-e4434b18d264  |         | 3/3                       |
|    a23af760-da61-cc14-95e2-e4434b18cea0  |         | 4/4                       |
|    47227361-b0a5-c91a-a2bf-e4434b18d264  |         | 8/8                       |
|    9f1ca860-b2b8-5524-8168-e4434b18d1d4  |         | 4/4                       |
|    9f1ca860-5e29-1038-90e5-e4434b18d264  |         | 4/4                       |
|    4ae5d960-72f3-2d41-7a79-e4434b12dd68  |         | 3/3                       |
|    ef217361-c80c-8e5a-5b31-e4434b18d264  |         | 8/8                       |
|    4c463b62-02ab-af5f-ef70-e4434b18d1d4  |         | 3/3                       |
|    e113a460-ee57-b166-64bd-e4434b18d264  |         | 4/4                       |
|    0c628961-a8f6-dc67-3b02-e4434b18cea0  |         | 4/4                       |
|    48d29e60-428b-3879-6bc7-e4434b18d1d4  |         | 3/3                       |
|    5d227361-468d-21a2-a530-e4434b18d264  |         | 8/8                       |
|    783af760-a0cf-d2a9-9a7f-e4434b12dd68  |         | 4/4                       |
|    5de3de61-04c4-09b2-2a35-e4434b12dd68  |         | 3/3                       |
|    74227361-786a-43b9-edf6-e4434b18d264  |         | 8/8                       |
|    09e7de61-4a21-18da-e1b8-e4434b12dd68  |         | 5/5                       |
|    9639f760-584a-e5df-898f-e4434b18cea0  |         | 4/4                       |
+------------------------------------------+---------+---------------------------+

Steg 2. Skapa en tom fil på en ESXi-värd med uuid-informationen.
 
vi unassociated.txt

Klistra sedan in endast detta:
|    a338b560-78bc-e6fa-f520-e4434b18d1d4  |         | 3/3                       |
|    7ac9ae60-b8d3-9711-b67d-e4434b18d264  |         | 3/3                       |
|    a23af760-da61-cc14-95e2-e4434b18cea0  |         | 4/4                       |
|    47227361-b0a5-c91a-a2bf-e4434b18d264  |         | 8/8                       |
|    9f1ca860-b2b8-5524-8168-e4434b18d1d4  |         | 4/4                       |
|    9f1ca860-5e29-1038-90e5-e4434b18d264  |         | 4/4                       |
|    4ae5d960-72f3-2d41-7a79-e4434b12dd68  |         | 3/3                       |
|    ef217361-c80c-8e5a-5b31-e4434b18d264  |         | 8/8                       |
|    4c463b62-02ab-af5f-ef70-e4434b18d1d4  |         | 3/3                       |
|    e113a460-ee57-b166-64bd-e4434b18d264  |         | 4/4                       |
|    0c628961-a8f6-dc67-3b02-e4434b18cea0  |         | 4/4                       |
|    48d29e60-428b-3879-6bc7-e4434b18d1d4  |         | 3/3                       |
|    5d227361-468d-21a2-a530-e4434b18d264  |         | 8/8                       |
|    783af760-a0cf-d2a9-9a7f-e4434b12dd68  |         | 4/4                       |
|    5de3de61-04c4-09b2-2a35-e4434b12dd68  |         | 3/3                       |
|    74227361-786a-43b9-edf6-e4434b18d264  |         | 8/8                       |
|    09e7de61-4a21-18da-e1b8-e4434b12dd68  |         | 5/5                       |
|    9639f760-584a-e5df-898f-e4434b18cea0  |         | 4/4                       |
Obs! Det här är ett exempel. Du bör använda de värden du får från kommandokörningen som beskrivs ovan.
Spara filen.

Kör det här kommandot för att endast hämta uuids.

cat unassociated.txt | awk '{print $2}' > UUID.txt

* Det här är innehållet i UUID.txt
a338b560-78bc-e6fa-f520-e4434b18d1d4
7ac9ae60-b8d3-9711-b67d-e4434b18d264
a23af760-da61-cc14-95e2-e4434b18cea0
47227361-b0a5-c91a-a2bf-e4434b18d264
9f1ca860-b2b8-5524-8168-e4434b18d1d4
9f1ca860-5e29-1038-90e5-e4434b18d264
4ae5d960-72f3-2d41-7a79-e4434b12dd68
ef217361-c80c-8e5a-5b31-e4434b18d264
4c463b62-02ab-af5f-ef70-e4434b18d1d4
e113a460-ee57-b166-64bd-e4434b18d264
0c628961-a8f6-dc67-3b02-e4434b18cea0
48d29e60-428b-3879-6bc7-e4434b18d1d4
5d227361-468d-21a2-a530-e4434b18d264
783af760-a0cf-d2a9-9a7f-e4434b12dd68
5de3de61-04c4-09b2-2a35-e4434b12dd68
74227361-786a-43b9-edf6-e4434b18d264
09e7de61-4a21-18da-e1b8-e4434b12dd68
9639f760-584a-e5df-898f-e4434b18cea0

Steg 3. Skaffa associationen.
 
Kör kan köra antingen detta för att få en lista över filer som är kopplade till dessa objekt.
 
cat UUID.txt | while read UUID ; do echo -e "\nUUID: $UUID" ; /usr/lib/vmware/osfs/bin/objtool getAttr -u $UUID | grep -i 'friend\|class\|path'; done > uuid_status.txt
 
cat uuid_status.txt
UUID: a338b560-78bc-e6fa-f520-e4434b18d1d4
Object class:vmnamespace
Object path:/vmfs/volumes/vsan:52421672ff38ca9a-375c1dfd23d48f51/.vsan.stats
User friendly name:.vsan.stats

UUID: 7ac9ae60-b8d3-9711-b67d-e4434b18d264
Object class:vmnamespace
Object path:/vmfs/volumes/vsan:52421672ff38ca9a-375c1dfd23d48f51/upgradeBundles
User friendly name:upgradeBundles

UUID: a23af760-da61-cc14-95e2-e4434b18cea0
Object class:vdisk
Object path:/vmfs/volumes/vsan:52421672ff38ca9a-375c1dfd23d48f51/9f1ca860-b2b8-5524-8168-e4434b18d1d4/Some-file.vmdk
Eller detta för att filtrera ytterligare:
 
awk '/UUID: /{if (x)print x;x="";}{x=(!x)?$0:x","$0;}END{print x;}' uuid_status.txt |sed 's/UUID: //g' |sed 's/User friendly name://g' |sed 's/Object class: //g' | sed 's/Object path: //g' | sed 's/,$//g' > uuid_status.csv
 
 
cat uuid_status.csv

a338b560-78bc-e6fa-f520-e4434b18d1d4,Object class:vmnamespace,Object path:/vmfs/volumes/vsan:52421672ff38ca9a-375c1dfd23d48f51/.vsan.stats,.vsan.stats
7ac9ae60-b8d3-9711-b67d-e4434b18d264,Object class:vmnamespace,Object path:/vmfs/volumes/vsan:52421672ff38ca9a-375c1dfd23d48f51/upgradeBundles,upgradeBundles
a23af760-da61-cc14-95e2-e4434b18cea0,Object class:vdisk,Object path:/vmfs/volumes/vsan:52421672ff38ca9a-375c1dfd23d48f51/9f1ca860-b2b8-5524-8168-e4434b18d1d4/Some-file.vmdk 
Obs! Oassocierat betyder inte nödvändigtvis oanvända/onödiga – vSAN-objekt som inte är associerade med en registrerad virtuell maskin visas som "Unassociated".

Article Properties


Affected Product

VxRail Appliance Family, VxRail Appliance Series

Last Published Date

12 May 2023

Version

7

Article Type

How To