Ovirt/RHEV Storage NFS EXPORT Domain Not Empty Troubleshooting

Assalamualaikum..

Issue: you try to add Export Domain (NFS) but getting the error The selected storage path is not empty (probably contains another Storage Domain). Either remove the existing Storage Domain from this path, or change the Storage path).

Cut short. Below is my solution.

Edit the storage metadata.

vi /path/to/export/domain/dom_md/metadata

Find and edit below line;
POOL_UUID
REMOTE_PATH
SDUUID
_SHA_CKSUM

CLASS=Backup
DESCRIPTION=ExportDomainDRC
IOOPTIMEOUTSEC=10
LEASERETRIES=3
LEASETIMESEC=60
LOCKPOLICY=
LOCKRENEWALINTERVALSEC=5
POOL_UUID=5a671dec-00ab-02de-0054-00000000018c (remove the value)
REMOTE_PATH=storage1:/nfs_exportdomain (adjust the correct path)
ROLE=Regular
SDUUID=92cb18f1-d60d-4766-b7e8-0bb8499590b9 (remove the value. But in my  case I just left it untouched. You can try to comment it instead of remove the value. In some cases it works)
TYPE=NFS
VERSION=0
_SHA_CKSUM=fd9535ae26ae4128ab2c6b5fb5febd3c1cce3156 (remove this line or comment it)

Now try to add/import the storage again. If it doesn’t work. Reboot your storage and try again.

Ref:
oVirt – https://goo.gl/rhzMGB
Youtube – https://goo.gl/XMC8Sw

chiow!

wassalam..

This entry was posted in oVirt, RHEV, RHV and tagged , , , , , . Bookmark the permalink.