perjantai 3. huhtikuuta 2015

I got Solaris 11.2 working on my Asrock C2550d4i board.

My m1015 pcie sas-card did not show disks using the format-command. It is flashed into IT mode. However, using scanpci it was shown as:

LSI Logic / Symbios Logic SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon]

I was able to connect 7 disks to the onboard sata-connectors:

Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c2t0d0
          /pci@0,0/pci1849,1f32@18/disk@0,0
       1. c2t1d0
          /pci@0,0/pci1849,1f32@18/disk@1,0
       2. c4t0d0
          /pci@0,0/pci1849,1f22@17/disk@0,0
       3. c4t1d0
          /pci@0,0/pci1849,1f22@17/disk@1,0
       4. c4t2d0
          /pci@0,0/pci1849,1f22@17/disk@2,0
       5. c4t3d0
          /pci@0,0/pci1849,1f22@17/disk@3,0
       6. c5t0d0
          /pci@0,0/pci8086,1f12@3/pci10b5,8608@0/pci10b5,8608@1/pci1849,9172@0/disk@0,0

Zfs scrubbing pefromance was not limited by the CPU. I got about 550MBps from the above setup of 3 pools.





maanantai 2. elokuuta 2010

How to lock / timeout / logout an idling session in bash/screen or close an idling ssh-connection

SSH 
If you wish to close idling ssh-connections you may do so by just adding two lines into your sshd_config-file. The lines would be as followed:


ClientAliveInterval 10
ClientAliveCountMax 1


The ClientAliveInterval means seconds to wait before sending first ClientAliveCountMax. So, the connection will close after ClientAliveInterval*ClientAliveCountMax=10*1=10 seconds.

Bash

In bash (and similar) you may define an enviroment variable TMOUT, which defines idle time in seconds after which the bash session will log out. You may do so just by typing export TMOUT=300 into your bash or putting it in your .profile-file at ~/.profile.


export TMOUT=300

screen

This I love the most. By editing your screenrc (debian: in /etc/screenrc , freebsd: in /usr/local/etc/screenrc) you can define an idle time after which your active screen will go blank and lock itself up asking for your password to continue.  

So, the config goes as:


idle 900 lockscreen

where the 900 defines idle time in seconds before locking the screen up.