Can't Find devices

Status
Not open for further replies.

jwimsett

Dabbler
Joined
May 14, 2012
Messages
11
Hello All.
Let me start by staying I am a total noob at this. A co-worker introduced me to Freenas, and I liked it until today. So here is my problem.

Two days ago I set up two 360Gb drives as mirror and UFS. They were working great and I could access them from both my PC and Mac. Today I tried to add a third drive to be independent of that volume. So two volumes: 1 mirror and 1 stand alone.

I don't know what happened after that. Once the system booted up, one of the two mirrored drives was degraded. Though after an hour or two it re-synced and all was well. So at the active volume window it shows 2 active volumes just as I had wanted. The problem is when I try to share them. When I go to CIFS share or AFP share it doesn't show either of them in the path section. I can't figure out why. I tried formatting my usb and reinstalling freenas. Exporting volume and destroying data. Ive been at it for about 5 hours with no luck. Is there anything I can type in the shell to completly wipe everything out and start fresh?

Any advice?

Thanks!

FreeNAS-8.0.4-RELEASE-p1-x86 (11059)
My main pc is Windows 7 64 bit
 

Attachments

  • active volumes.jpg
    active volumes.jpg
    10.1 KB · Views: 271
  • path.jpg
    path.jpg
    15 KB · Views: 262

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Can you post the output of these two commands?

camcontrol devlist

gpart show



Do you have any data that you care about on any of the disks?
 

jwimsett

Dabbler
Joined
May 14, 2012
Messages
11
Can you post the output of these two commands?

camcontrol devlist

gpart show



Do you have any data that you care about on any of the disks?

No. All the data can be wiped out clean.
Photo May 15, 6 16 23 AM.jpg Photo May 15, 6 16 53 AM.jpg
I don't know how to transfer the output of those two commands to this computer so I just took 2 photos.
Hopefully you can read them.

Edit: It seems to be working now, but when I access it from my home PC, it doesn't specifiy which volume I'm looking at. It just says "folder is empty." If I right click it, it's the size of the stand alone drive. How can I access both the stand alone drive and the mirrored drives?

I created two CIFS shares, one for each volume, both with guest access.

Any Ideas?
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
If you enable SSH you can access your FreeNAS box from your home PC via Putty or whatever client you prefer. Then you can copy/paste the output.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Once we figure out what is wrong. Enabling SSH makes accessing the cli of the FreeNAS box much easier. Try running from the cli/ssh session:
Code:
geom mirror list
protosd is better with UFS volumes than I am, among other things.
 

jwimsett

Dabbler
Joined
May 14, 2012
Messages
11
Once we figure out what is wrong. Enabling SSH makes accessing the cli of the FreeNAS box much easier. Try running from the cli/ssh session:
Code:
geom mirror list
protosd is better with UFS volumes than I am, among other things.

Is there a way to access the cli from Windows so I can copy/paste the output?
 

jwimsett

Dabbler
Joined
May 14, 2012
Messages
11
I have no problem starting over from scratch if that is easier. I just don't know how to "format" my hard drives.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Sorry for the late reply, I was in my sleep cycle ;), and I've got to get ready to go out soon.

I would like to have access to both volumes via windows explorer. Is that possible?

YES

Is there a way to access the cli from Windows so I can copy/paste the output?

YES, see what paleoN said about enabling ssh (services in FreeNAS GUI), and install Putty in Windows. Putty is a free app you can use to ssh into FreeNAS, it's here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

The output from "gpart show" was either missing some disks or the info scrolled off the screen. I see your 3 disks are ada0, ada1, ada2,
but only ada1 appears in the output of gpart show. If there was a mirror, it would have shown which disks were being used for that.


PaleoN, thanks for jumping in a following through! ;) I'm preparing to leave town for the summer and things will be touch and go here for me.
 

jwimsett

Dabbler
Joined
May 14, 2012
Messages
11
The output from "gpart show" was either missing some disks or the info scrolled off the screen. I see your 3 disks are ada0, ada1, ada2,
but only ada1 appears in the output of gpart show. If there was a mirror, it would have shown which disks were being used for that..

How can I fix this?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
You can try running gpart show for each individual disk:

gpart show ada0

gpart show ada1

gpart show ada2


Once I can see the output for all the disks, I can suggest what else to do. If you used Putty, you would be able to capture the output instead of taking pictures, but whatever is easier for you.
 

jwimsett

Dabbler
Joined
May 14, 2012
Messages
11
I tried using putty, but it wouldn't take my password. Here is a photo. It only sees ada1

Photo May 15, 4 24 02 PM.jpg

Edit:
Figured Putty out

Welcome to FreeNAS
[root@freenas] ~# gpart show ada0
gpart: No such geom: ada0.
[root@freenas] ~# gpart show ada1
=> 34 390721901 ada1 GPT (186G)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 386527503 2 freebsd-ufs (184G)

[root@freenas] ~# gpart show ada2
gpart: No such geom: ada2.
 

jwimsett

Dabbler
Joined
May 14, 2012
Messages
11
I tried using putty, but it wouldn't take my password. Here is a photo. It only sees ada1

View attachment 834

Edit:
Figured Putty out

Welcome to FreeNAS
[root@freenas] ~# gpart show ada0
gpart: No such geom: ada0.
[root@freenas] ~# gpart show ada1
=> 34 390721901 ada1 GPT (186G)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 386527503 2 freebsd-ufs (184G)

[root@freenas] ~# gpart show ada2
gpart: No such geom: ada2.

Ok so now it's working fine. I havent touched anything, but when I looked up the ip address, there they were. Both of them! I don't know what to think. Can I trust them with my data?

I re-ran the commands you gave me earlier with the same results as above.

Thoughts?
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Ok so now it's working fine. I havent touched anything, but when I looked up the ip address, there they were. Both of them!
I don't know what this means. What ip address and what both was there?

In Putty try re-running
Code:
camcontrol devlist

gpart show
If you put the results from Putty between [code][/code] tags it will preserve the formatting.

How are your drives installed? Are they all internal or are some of them USB?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
I know it's hard to trust stuff with your data when stuff like this happens.

What do you see if you do "zpool status -v"? (without quotes)
 

jwimsett

Dabbler
Joined
May 14, 2012
Messages
11
I don't know what this means. What ip address and what both was there?

In Putty try re-running
Code:
camcontrol devlist

gpart show
If you put the results from Putty between [code][/code] tags it will preserve the formatting.

How are your drives installed? Are they all internal or are some of them USB?

I meant I typed in the IP address I assigned to the freenas server and saw both volumes that I had created. The same two volumes that I couldn't see 12 hours prior. They are all internal.

Code:
 Welcome to FreeNAS
[root@freenas] ~# camcontrol devlist
<TSSTcorp CD/DVDW TS-H552B GA05>   at scbus1 target 0 lun 0 (pass0,cd0)
<LITE-ON CD-ROM LTN-4891S NGS3>    at scbus1 target 1 lun 0 (pass1,cd1)
<TOSHIBA MK3256GSY LH013C>         at scbus3 target 0 lun 0 (ada0,pass2)
<ST3200822AS 3.02>                 at scbus3 target 1 lun 0 (ada1,pass3)
<ST9320423AS 0006HPM1>             at scbus4 target 0 lun 0 (ada2,pass4)
<Generic Flash Disk 8.07>          at scbus5 target 0 lun 0 (da0,pass5)
<Generic USB SD Reader 1.00>       at scbus6 target 0 lun 0 (da1,pass6)
<Generic USB CF Reader 1.01>       at scbus6 target 0 lun 1 (da2,pass7)
<Generic USB SM Reader 1.02>       at scbus6 target 0 lun 2 (da3,pass8)
<Generic USB MS Reader 1.03>       at scbus6 target 0 lun 3 (da4,pass9)
[root@freenas] ~#
[root@freenas] ~# gpart show
=>     63  4116357  da0  MBR  (2.0G)
       63  1930257    1  freebsd  [active]  (943M)
  1930320       63       - free -  (32K)
  1930383  1930257    2  freebsd  (943M)
  3860640     3024    3  freebsd  (1.5M)
  3863664    41328    4  freebsd  (20M)
  3904992   211428       - free -  (103M)

=>       34  390721901  ada1  GPT  (186G)
         34         94        - free -  (47K)
        128    4194304     1  freebsd-swap  (2.0G)
    4194432  386527503     2  freebsd-ufs  (184G)

=>      0  1930257  da0s1  BSD  (943M)
        0       16         - free -  (8.0K)
       16  1930241      1  !0  (943M)


I know it's hard to trust stuff with your data when stuff like this happens.

What do you see if you do "zpool status -v"? (without quotes)
Code:
[root@freenas] ~# zpool status -v
no pools available
[root@freenas] ~#
 
Status
Not open for further replies.
Top