Unable to recreate SVM root volume after its aggregate was destroyed
Applies to
- ONTAP 9
- Storage Virtual Machine (SVM)
- SVM root volume
Issue
- An SVM root volume is in an unrecoverable state:
cluster1::> volume show svm1_root
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
svm1 svm1_root - - RW - - -
- The SVM root volume cannot be deleted because the vserver still has other data volumes:
cluster1::*> volume delete svm1_root -vserver svm1
Error: command failed: Cannot delete root volume because the Vserver has volumes.
- Attempt to create a new volume for that vserver fails with the following error:
cluster1::> volume create -volume test -vserver svm1 -size 1GB -aggregate cluster1_01_SSD_1
Error: command failed: Unable to get default security-style from the root volume of the Vserver due to root volume offline. Provide security-style.
- Attempt to create a new root volume fails using the
-vsroot true
option:
cluster1::*> volume create -vserver svm1 -volume svm1_root_1 -aggregate cluster1_02_SSD_1 -size 1GB -vsroot true -security-style ntfs
[Job 238] Job is queued: Create svm1_root_1.
Error: command failed: [Job 238] Job failed: Failed to create the volume in Volume Location Database. Reason: VLDB found an existing Vserver root volume.