Sunday, December 8, 2013

Mikrotik RouterBOARD

Mikrotik (www.mikrotik.com) provides an interesting platform for creating a custom router/switch/wireless access point, the RouterBOARD.

The Mikrotik RouterBOARD RB493G includes the following:

  • Atheros AR7161 SOC with 256MB RAM
  • 9 port Gigabit switch
  • 3 mini-PCI slots. You can add a wifi N card and switch to AC later on.
  • 1 USB port, but it’s fairly non standard as explained in http://wiki.openwrt.org/toh/mikrotik/rb493g .
  • 1 microSD slot.

It can be bought for 130 € at LandaTel (LandaShop): http://landashop.com/catalog/mikrotik-routerboard-rb493g-gigabit-ethernet-p-1880.html

Sunday, December 1, 2013

Growing a ZFS pool

Growing a two disk mirror zpool by replacing disks is easy:

  1. Replace the first disk with a higher capacity disk (we're going from 2TB to 3TB disks): zpool replace -f pool ata-WDC_WD20EARS-00MVWB0_WD-xxxxxxxxxxxx ata-Hitachi_HDS5C3030BLE630_xxxxxxxxxxxx
  2. Wait for the resilver to complete (about 5h).
  3. Replace the second disk: zpool replace pool ata-ST2000DL003-xxxxxxxxxxxx ata-ST3000DM001-xxxxxxxxxxxx
  4. Wait for the resilver to complete again.
  5. Expand the pool by telling it to use the extra space: zpool online -e pool ata-Hitachi_HDS5C3030BLE630_xxxxxxxxxxxx
  6. Just in case, tell the pool to expand also the other disk: zpool online -e pool ata-ST3000DM001-xxxxxxxxxxxx
Thanks to the following links for describing the procedure:

Tuesday, November 5, 2013

Windows 7 BSOD while starting as a VM [Solved]

  • Create RDM disks:
#cd /vmfs/volumes/local/
#vmkfstools -z /vmfs/devices/disks/t10.ATA_____Samsung_SSD_840_Series__________________S14GNEBCB62239V____
_ rdm/Samsung_SSD_840_Series-S14GNEBCB62239V.vmdk -a lsisas
# vmkfstools -z /vmfs/devices/disks/t10.ATA_____ST3640323AS_________________________________________5VK045H
3 rdm/ST3640323AS-5VK045H3.vmdk -a lsisas

Note: RDMs cannot be stores on a NFS datastore, see http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1001856 .


"If in doubt, turn on all possible required services e.g. set both intelide = 0/pciide = 0 and msahci = 0, or set all of these to 0 and it will still boot with the correct driver/s:
   aliide, amdide, atapi, cmdide, iastorv, intelide, msahci, pciide, viaide and LSI_SAS."


  • Start VM... no BSOD :)
  • Let Windows install and update drivers for virtual environment and reboot
  • Install VMware tools and reboot
  • VM is ready

Monday, October 28, 2013

Using ESX 5.1 NIC drivers on ESX 5.5

My ASUS M5A88-M EVO motherboard has a Realtek RTL8111E onboard NIC. I also have a D-Link 528T NIC on a PCI slot. Neither NIC is supported out of the box on ESXi 5.5 :(.

However, you can use the drivers that came with ESXi 5.1 on the current version (5.5). Check the following links for the procedure:

http://www.vladan.fr/realtek-8169-nics-not-detected-under-esxi-5-5/
http://www.bussink.ch/?p=1228
http://aubreykloppers.wordpress.com/2013/06/03/d-link-528t-on-esxi-55-1-procedure-and-driver/

Saturday, June 29, 2013

Encode FLAC audio to MP3

Low quality encoding:
128Kbps CBR + 2 channels + 44100Hz sampling frequency.
It should be good enough for listening on your car, on the bus with your smartphone and headphones, etc. avconv -i input.flac -ab 128k -ac 2 -ar 44100 output.mp3

High quality encoding:
 avconv -i input.flac -ab 196k -ac 2 -ar 48000 output.mp3

Sunday, May 12, 2013

AIRBET​​​​ Serveis aeronĂ utics​, S.L.

AIRBET es una empresa que engloba todos los servicios que puedan necesitar nuestros Clientes. Formamos pilotos, vendemos ultraligeros y autogiros. Mantenemos, reparamos todo tipo de aeronaves. las guardamos en nuestra base. Usted no debe preocuparse por nada, solo de VOLAR.
http://airbet1965.wix.com/airbet

ClamAV tips

https://raymii.org/s/tutorials/ClamAV.html

Sunday, April 7, 2013

Interesting ARM computers for Linux

CUBOX:
$119    
* Linux based distributions like Ubuntu, Debian and others
* Android
* 800 MHz dual issue ARM PJ4 processor, VFPv3, wmmx SIMD and 512KB L2 cache.
* 1080p Video Decode Engine
* OpenGL|ES 2.0 graphic engine
* HDMI 1080p Output (with CEC function)
* 1GByte DDR3 at 800MHz
* Gigabit Ethernet, SPDIF (optical audio), eSata 3Gbps, 2xUSB 2.0, micro-SD, micro-USB (console)
* Standard Infra-red receiver for 38KHz based IR controllers.
* No JTAG required. Unbrickable for Developers!**

CUBOX PRO:
$159
Same specifications as CUBOX except for RAM, 2GB instead of 1GB.

ODROID-X2:
$135
* Low-cost development platform
* 1.7GHz Quad core ARM Cortex-A9 MPCore
* 2GB Memory
* 6 x High speed USB2.0 Host port
* 10/100Mbps Ethernet with RJ-45 LAN Jack
* Android 4.x & Ubuntu BSP
* Community-driven projects & supports

Saturday, March 2, 2013

ZFS + NFS: sharing files for XBMC

The NFS - XBMC page says that NFS has a lower protocol overhead than SMB, so let's try it and see if file sharing performance improves.
# 1. Install required package
jordi@topper:~$ sudo aptitude install nfs-kernel-server

# 2. Modify zfs configuration
jordi@topper:~$ sudo nano /etc/default/zfs:
  [...]
  # Run `zfs share -a` during system start?
  # nb: The shareiscsi, sharenfs, and sharesmb dataset properties.
  ZFS_SHARE='yes'
  
  # Run `zfs unshare -a` during system stop?
  ZFS_UNSHARE='yes'
  [...]

# 3. Set nfs configuration for our pools
jordi@topper:~$ sudo zfs set sharenfs='rw=@10.0.0.0/24,no_subtree_check,all_squash,insecure,anonuid=1000,anongid=100' tank
jordi@topper:~$ sudo zfs set sharenfs='rw=@10.0.0.0/24,no_subtree_check,all_squash,insecure,anonuid=1000,anongid=100' pool

# 4. Share everything
jordi@topper:~$ sudo zfs share -a

# Unshare everything (when needed)
jordi@topper:~$ sudo zfs unshare -a