How do you delete an invalid dataset name that appears in web GUI?

Status
Not open for further replies.

Nabber

Dabbler
Joined
Jun 1, 2011
Messages
10
Hi all...

Using the web GUI in RC4 I was able to create a dataset named "/mnt/NASDat01/TV\ Shows" (note the '\' and space in the name). The dataset does appear in the left pane of the GUI, however, it does not appear when using the CLI (zfs list).

When attempting to view the storage tab or permissions, I get the following error:
"Sorry, an error occurred".

I have since updated to RC5 but still have the problem. My guess is the dataset was never really created because of the invalid character in the name (the CLI balks when trying to use a '\' ) but the web GUI allowed the character and some internal database was updated.

So the question is, how do you fix the database to remove the offending dataset name from appearing in the GUI (and rendering the storage tab useless)?

Just for reference, this started as a post in the storage forum.

Thanks in advance!
 

Nabber

Dabbler
Joined
Jun 1, 2011
Messages
10
Thanks all... I got it. It appears I just had to delete the offending row from the mountpoint table. If anyone is interested this is how:

Find the id of the offending row:
sqlite> Select * from storage_mountpoint;

and then:
sqlite> Delete from storage_mountpoint WHERE id='7';
 
Status
Not open for further replies.
Top