swap files......

Status
Not open for further replies.

leenux_tux

Patron
Joined
Sep 3, 2011
Messages
238
Hello forum,

Not sure if this is the right place to post this question.......

Spotted something I think is a little odd regarding swap files on one of my freenas boxes...

I have two freenas systems (testing different methods of backing up an freenas box to another freenas box). When I run "swapctl -l" on my main freenas box I get this...

[root@freenas01] ~# swapctl -l
Device: 1024-blocks Used:
[root@freenas01] ~#

When I run the same command on my backup freenas system I get this.....
[root@freenas02] ~# swapctl -l
Device: 1024-blocks Used:
/dev/ada0p1 2097152 0
/dev/ada1p1 2097152 0
/dev/ada2p1 2097152 0
/dev/ada3p1 2097152 0

This seems a little odd to me...
On my main systems (freenas01) I have 4 X 2TB hard drives and 8GB RAM. On my secondary freenas box (freenas02) I have 4 X 1TB hard drives and 8GB of RAM.

I thought that ZFS/Freenas automatically created a swap file on each drive that was part of the pool ?

In "Settings/Advanced" freenas is set to use 2GB of swap on each drive and has never been set to zero.

Interested to see what other folks are seeing and wondering if I have a "bad" system for some reason.

leenux_tux
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Your pool in freenas01 was probably imported from an existing pool created in another system or with swap size set to 0.

Paste "gpart show"
 

leenux_tux

Patron
Joined
Sep 3, 2011
Messages
238
Hello William,

Thanks for the response.

The system was created from scratch. I had some strange issues with a previous set of drives (the ones that are now in my backup box, long story) so I backed everything off to a USB drive, purchased 4x2TB drives, installed them, re-created the pool, all the datasets, users, shares, (CIFS/NFS), everything. Then restored all my data.

Here is the top part of the gpart show out put. I have only shown the top part (plus one snapshot) as I have loads of snapshots listed as well...

----------------------------------------------------------------------------------------------------------------------------------------
[root@freenas01] ~# gpart show | more
=> 63 7821249 da0 MBR (3.7G)
63 1930257 1 freebsd (942M)
1930320 63 - free - (31k)
1930383 1930257 2 freebsd [active] (942M)
3860640 3024 3 freebsd (1.5M)
3863664 41328 4 freebsd (20M)
3904992 3916320 - free - (1.9G)

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

=> 0 1930257 da0s2 BSD (942M)
0 16 - free - (8.0k)
16 1930241 1 !0 (942M)

=> 34 2097151933 zvol/TANK/VMS-ISCSI@auto-20121221.0900-2w GPT (1T)
34 2014 - free - (1M)
2048 2097149919 1 !aa31e02a-400f-11db-9590-000c2911d1b8 (1T)
----------------------------------------------------------------------------------------------------------------------------------------

It's seems odd I am not getting any out for my 2TB drives, just the thumbdrive where freenas is installed....

Here is "camcontrol" output, just in case it's of any use..

[root@freenas01] ~# camcontrol devlist
<WDC WD20EURS-63S48Y0 51.0AB51> at scbus0 target 0 lun 0 (pass0,ada0)
<ST2000DL004 HD204UI 1AQ10001> at scbus1 target 0 lun 0 (pass1,ada1)
<SAMSUNG HD204UI 1AQ10003> at scbus4 target 0 lun 0 (pass2,ada2)
<ST2000DL004 HD204UI 1AQ10001> at scbus5 target 0 lun 0 (pass3,ada3)
<SanDisk Cruzer Edge 1.20> at scbus8 target 0 lun 0 (pass4,da0)

Also, not sure if this is important, when I do a "gpart show da0" I get some output, this is my thumbdrive where freenas is installed. When I do "gpart show adaX" (where X is 0,1,2,3) I get this "gpart: No such geom: ada0."

Leenux_tux
 

leenux_tux

Patron
Joined
Sep 3, 2011
Messages
238
Just done a quick look at my other freenas box (freenas02)....

When I do a gpart show I get information about all of the drives, not just the thumbdrive, with information about the swap space. Also, if I do a "gpart show ada0" (for example) I get output for that specific drive, which I don't on freenas01.

Looks like I have a problem !!!
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Like I said, the pool in freenas01 was not originally created with FreeNAS GUI, it was probably created using CLI or something, using the entire disk.
 
Status
Not open for further replies.
Top