HPE Ezmeral Software platform
1823369 Members
2962 Online
109654 Solutions
New Discussion юеВ

"File exists" while adding disk.

 
SOLVED
Go to solution
CBENilsson
Occasional Contributor

"File exists" while adding disk.

I had an issue with a disk that was marked as possibly bad after an incident. I removed the disk with mrconfig and ran fsck on it. Now when I'm trying to add it back I get the error message "Failed operation for disk /dev/sdj, File exists" which doesn't really point me to what I'm supposed to do to resolve the issue.

3 REPLIES 3
Shishir_Prakash
HPE Pro
Solution

Re: "File exists" while adding disk.

 check /opt/mapr/conf/disktab file . If there is a line with /dev/sdj then remove it. 

Also,  I assume you have created SPs with only one disk. If in case your SP consist of three disk or more then you will need to remove the relevent disks for that SP from disktab file. 

Run below command to check what are the disks belongs to SP where disk /dev/sdj is attached.  You will need to remove those disks entries from disktab file.

/opt/mapr/server/mrconfig sp list -v  

 

=== Example===

In the output below I only have one SP (named as SP1) . This has only one disk /dev/sdb.  

# /opt/mapr/server/mrconfig sp list -v
ListSPs resp: status 0:1
No. of SPs (1), totalsize 88667 MB, totalfree 74317 MB

SP 0: name SP1, Online, size 88667 MB, free 74317 MB, path /dev/sdb, log 200 MB, port 5660, guid 4ccb3788053b9c440060fcab1d01731a, clusterUuid -6819087817328921874--5199606154060414735, disks /dev/sdb, dare 0, label ssd:1

 

 



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
CBENilsson
Occasional Contributor

Re: "File exists" while adding disk.

It worked great. Doesn't retain any data though, but that's what backups are for.

tdunning
HPE Pro

Re: "File exists" while adding disk.

The replaced disks won't have any data, but the data will have been replicated elsewhere in the cluster.

Backups are still good, but not necessary in such a simple failure scenario.

I work for HPE