Unable to see volume in GUI auto import

Status
Not open for further replies.

Dooldeniya

Dabbler
Joined
Jan 18, 2012
Messages
32
I had a crash when I was exporting the volume from the GUI and now can't import it back. I am able to import/export from the CLI but the GUI doesn't show the volume at all. See below for zpool status from CLI

[chanaka@freenas] /# zpool status
pool: vault
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
vault ONLINE 0 0 0
mirror ONLINE 0 0 0
ada0p2 ONLINE 0 0 0
ada1 ONLINE 0 0 0

errors: No known data errors

Camcontrol devlist:
[chanaka@freenas] /# camcontrol devlist
<SAMSUNG HD204UI 1AQ10001> at scbus0 target 0 lun 0 (ada0,pass0)
<SAMSUNG HD204UI 1AQ10001> at scbus1 target 0 lun 0 (ada1,pass1)
<Lexar USB Flash Drive 1100> at scbus6 target 0 lun 0 (da0,pass2)
[chanaka@freenas] /#

I am currently running FreeNAS 8.03 multimedia

Any ideas on solutions would be appreciated.

Thanks,
-Chanaka
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
To use auto-import within the GUI the pool must be exported... So:

# zpool export vault

Then go to GUI
 

Dooldeniya

Dabbler
Joined
Jan 18, 2012
Messages
32
I have exported the pool from the CLI as suggested but the GUI still doesn't show it for import. I think a reset to default configuration might fix the issue but would like to avoid if possible as I haven't backed up the config file -- lesson learned.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
What does the following commands says:

# sqlite3 /data/freenas-v1.db "select * from storage_volume"
# sqlite3 /data/freenas-v1.db "select * from storage_mountpoint"
 

Dooldeniya

Dabbler
Joined
Jan 18, 2012
Messages
32
sqlite3 /data/freenas-v1.db "select * from storage_volume" -- output

1|vault|ZFS

sqlite3 /data/freenas-v1.db "select * from storage_mountpoint" -- output
there was no output for this select statement
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Ok, run:

# sqlite3 /data/freenas-v1.db "delete from storage_volume"

Then try to auto-import, it should succeed this time...
 

Dooldeniya

Dabbler
Joined
Jan 18, 2012
Messages
32
I did the delete and it deleted the entry in the database. However, I am still unable to auto import via the GUI. The GUI doesn't show the volume as available. Below are the steps that I followed.

1) sqlite3 /data/freenas-v1.db "delete from storage_volume"
2) zpool export vault
3) Autor import via GUI -- no disks available in the drop down
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
sqlite3 /data/freenas-v1.db "delete from storage_diskgroup"
sqlite3 /data/freenas-v1.db "delete from storage_disk"
 

lxr2k

Cadet
Joined
Jul 3, 2013
Messages
2
Hi William, I need a favour. I am having a similar issue like dooldeniya except that : I have 2 volumes. one of them shows fine in the gui whereas, another does not.
i.e. I have internal disks configured via software raid 0 (4x600GB) with 1 spare. This is a single volume called "DATA"
Second, I have a external HDD connected to the freenas system, the volume is called "external"

sqlite3 /data/freenas-v1.db "select * from storage_volume"
there was no output for this select statement

Whereas,

sqlite3 /data/freenas-v1.db "select * from storage_mountpoint"
/mnt/DATA|0|rw|1|1
/mnt/DATA/AIS|1|rw,late|1|2

sqlite3 /data/freenas-v1.db "select * from storage_diskgroup"
1|DATAraidz|raidz|1
2|DATAspare|spare|1
3|externalstripe|stripe|2

sqlite3 /data/freenas-v1.db "select * from storage_disk"
Disabled|Always On|{uuid}5be8b59f-7cc6-11e0-bcfa-441ea13e2268|1|Disabled|Auto|Member of DATA raidz|1||1|da0
Disabled|Always On|{uuid}5c553eb8-7cc6-11e0-bcfa-441ea13e2268|1|Disabled|Auto|Member of DATA raidz|1||2|da1
Disabled|Always On|{uuid}5d4f0db1-7cc6-11e0-bcfa-441ea13e2268|1|Disabled|Auto|Member of DATA spare|2||4|da3
Disabled|Always On|{uuid}569eb54d-9702-11e1-86c0-441ea13e2268|1|Disabled|Auto|Member of external stripe|3||5|da5
Disabled|Always On|{uuid}ea2037dc-994c-11e1-8335-441ea13e2268|1|Disabled|Auto|Member of DATA raidz|1||6|da2


Any help would be highly appreciated....
 

lxr2k

Cadet
Joined
Jul 3, 2013
Messages
2
Looks like you're running a very ancient version of FreeNAS, I cannot help you, sorry.

Hi William, I am running FreeNAS ver 8.0.4 Is this a primitive version ? Well, I would like to upgrade it so I attached an external USB drive to it and took the backups of all the drives that are attached. I am able to mount it via ssh however it does not mount via the gui. Any help would be greatly appreciated.
 
Status
Not open for further replies.
Top