Software RAID vs Hardware RAID

28 stycznia 2010

Software RAID na oprogramowaniu  Mdadm. Przy jego instalacji trzeba się trochę nagimnastykować.

grubas:~#  mdadm –detail /dev/md0
/dev/md0:
Version : 00.90
Creation Time : Tue Jan 26 10:34:35 2010
Raid Level : raid1
Array Size : 485347584 (462.86 GiB 497.00 GB)
Used Dev Size : 485347584 (462.86 GiB 497.00 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Thu Jan 28 08:53:51 2010
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 4bcf1654:16de8364:c2ceef29:105c19d3
Events : 0.3792

Number   Major   Minor   RaidDevice State
0       8        5        0      active sync   /dev/sda5
1       8       21        1      active sync   /dev/sdb5

RAID sprzętowy na DELLU 2650.

Tutaj mamy większe pole do popisu. Dyski działają w trybie HOTSWAP.  Możemy je podmieniać w trakcie działania serwera.

Hotspoty hotele

25 stycznia 2010

Instalujemy hotspoty dla hoteli. Szyte na miarę.

Dmesg Iphone 3G 16GB

15 stycznia 2010

iPhone-Osuch:~/Library root# dmesg
not powered on (0×3)
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0×3)
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0×3)
AppleMRVL868x::setPOWER(): Flushing beacons!!
AppleMBXDevice(0xc0bbc800)::changePowerStateGated(0)
AppleMRVL868x::setPowerStateGated(): 1 -> 0, 0xc0c65800
[481.099684499]: AppleS5L8900XSDIO::sendCommand(): Timeout waiting for CMDRDY indication
0 [Time 1263527695] [Message System Sleep
pmu wake events: usb
AppleSynopsysOTGCore::sleepWakeNotification: System Powering on
System Wake
+ AppleMPVDDriver[0xc0b5c800]::setPowerStateGated()

AppleMBXDevice(0xc0bbc800)::setPowerState(1)
AppleMBXDevice(0xc0bbc800)::changePowerStateGated(1)
AppleMRVL868x::setPowerStateGated(): 0 -> 1, 0xc0c65800
AppleMRVL868x::wakeupSequence()
AppleS5L8900XSDIO::sendCommand(): CMD52 Failure – SDIO Cmd Timeout: arg(0x00000a00), error count(1), dsta register(0x0000c004)
AirPort: Enabled AppleMRVL868x (link 1, sys 0, user 1)
AppleMRVL868x::setPOWER() [kernel_task]: 1
AppleMultitouchZ2SPI: enabled power, scheduled bootloading
AppleSynopsysOTGDevice::handleUSBReset
AppleSynopsysOTGCore::setCurrentLimit: current:100, suspended:0
AppleSynopsysOTGDevice::handleUSBReset
AppleSynopsysOTGCore::setCurrentLimit: current:100, suspended:0
AppleSynopsysOTGCore::setCurrentLimit: current:100, suspended:0
AppleSynopsysOTGCore::setCurrentLimit: current:500, suspended:0
AppleSynopsysOTGCore::setCurrentLimit: current:500, suspended:0
AppleMRVL868x::setASSOCIATE() [configd]: lowerAuth = AUTHTYPE_OPEN, upperAuth = AUTHTYPE_WPA_PSK, key = CIPHER_PMK, flags = 0×2
AppleMRVL868x Joined AP: @ 0xc2cf5800, BSSID = 00:30:f1:db:39:86, rssi = -72, rate = 54 (100%), channel = 11, encryption = 0×4, ap = 1, failures = 0, age = 3, ssid[31] = „www.pokojepodstokiem.wbeskid.pl”
AirPort: Link Up on en0
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 0, flags = 0×4
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 2, flags = 0×0
AppleUSBEthernetDevice::message: kIOUSBDeviceInterfaceMessageTypeSetAlternateSetting, new alt-setting 1
AppleSerialMultiplexer: nif::ioctl: MTU set to 1450
AppleUSBEthernetDevice::setProperties: Link Status – 1
AppleUSBEthernetDevice::setProperties: Link Status – 0
AppleUSBEthernetDevice::message: kIOUSBDeviceInterfaceMessageTypeSetAlternateSetting, new alt-setting 0
AppleSynopsysOTGDevice::handleUSBSuspend
AppleSynopsysOTGCore::setCurrentLimit: current:100, suspended:1
AppleSynopsysOTGDevice::handleUSBCableDisconnect
virtual IOReturn AppleUSBDeviceMux::message(UInt32, IOService*, void*) – kMessageInterfaceWasDeActivated
AppleUSBDeviceMux::reportStats: USB mux statistics:
USB mux: 1207 reads / 0 errors, 1867 writes / 0 errors
USB mux: 0 short packets, 0 dups
AppleSynopsysOTGCore::setCurrentLimit: current:0, suspended:0
AppleSynopsysOTGDevice::handleUSBReset
AppleSynopsysOTGCore::setCurrentLimit: current:100, suspended:0
AppleSynopsysOTGDevice::handleUSBReset
AppleSynopsysOTGCore::setCurrentLimit: current:100, suspended:0
AppleSynopsysOTGCore::setCurrentLimit: current:100, suspended:0
AppleSynopsysOTGCore::setCurrentLimit: current:500, suspended:0
AppleSynopsysOTGCore::setCurrentLimit: current:500, suspended:0
AppleSynopsysOTGDevice::handleUSBSuspend
AppleSynopsysOTGCore::setCurrentLimit: current:100, suspended:1
AppleSynopsysOTGDevice::handleUSBCableDisconnect
virtual IOReturn AppleUSBDeviceMux::message(UInt32, IOService*, void*) – kMessageInterfaceWasDeActivated
AppleUSBDeviceMux::reportStats: USB mux statistics:
USB mux: 22490 reads / 0 errors, 12880 writes / 0 errors
USB mux: 0 short packets, 0 dups
AppleSynopsysOTGCore::setCurrentLimit: current:0, suspended:0
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 3, flags = 0×0
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 2, flags = 0×0
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 3, flags = 0×0
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 2, flags = 0×0
launchd[312] Builtin profile: MobileMaps (seatbelt)
iPhone-Osuch:~/Library root#

Wierchomla Bts Era,Orange, Plus

11 stycznia 2010

Btsy Orange, Era, Play.  Dane z Field Test Plusa i Ery.

NOWY HOTSPOT na Mikrotik RB 433 i MiniPCI Senao EMP-3602, 802.11b/g, 250mW

8 stycznia 2010

Wykonałem instalację Hotspota na platformie Mikrotik z kartą Senao. Sprzęt sprawdza się całkiem dobrze w lokalu 100 metrowym. System jest łatwy do administracji przez GUI Winbox.

Płyta główna Popcorn A-110

4 stycznia 2010

Dynamiczny DNS Mikrotik

3 stycznia 2010

Potrzebowałem mieć dostęp do Mikrotika zdalnie. Problem polegał na tym że IP ISP  było zmienne.   Ten skrypt działa na mikrotikach  klientów z OS 3.30.  Przy OS 3.24 miałem problem z działaniem tego skryptu (Zawieszał w dziwny sposób mt nie można było edytować i dodawać skryptów).

Do jego działania potrzebne jest nam:

  • Konto na serwerze changeip.com.
  • Poprawnie ustawiony skrypt.
  • Ustawiony „schedule” w MT

# Dynamic DNS Update / Simple Edition
# Written by Sam Norris, ChangeIP.com
# Copyright ChangeIP.com 2009-2010
# For support send mail to Support@ChangeIP.com
#
# 2009-06-22 RouterOS 3.25 Tested
# 2009-10-05 RouterOS 4.01rc1 Tested
#
# OVERVIEW:         %
#  This script will update a ChangeIP.com dynamic dns hostname
#  with an ip address located directly on an interface.
#                   %
# NOTES:            %
#  IF THIS SCRIPT DOES NOT PRODUCE ANY OUTPUT PLEASE COPY AND PASTE IT
#  AGAIN.  THERE PROBABLY IS A LINE BREAK IN THE WRONG PLACE! Once you
#  have created this script and tested that it works by running it
#  manually you can schedule it to run every few minutes.
#                   %
# CONFIGURATION FIELD DEFINITIONS:
#  ddnsuser:  Enter your ChangeIP.com user id.
#  ddnspass:  Enter your ChangeIP.com password.
#  ddnshost:  Enter the hostname (www.example.com) to update.
#  ddnsinterface:  Enter an interface name – case sensative.
#                   %
#                   %
#                   %
#                   %
#               %   %   %
#                %  %  %
#                 % % %
#                   %
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# EDIT YOUR DETAILS / CONFIGURATION HERE
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:global ddnsuser „xxxx”
:global ddnspass „xxxx”
:global ddnshost „xxxx”
:global ddnsinterface „pppoe-out1″
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# END OF USER DEFINED CONFIGURATION
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:global ddnssystem („mt-” . [/system package get [/system package find name=system] version] )
:global ddnsip [ /ip address get [/ip address find interface=$ddnsinterface] address ]
:global ddnslastip

:if ([:len [/interface find name=$ddnsinterface]] = 0 ) do={ :log info „DDNS: No interface named $ddnsinterface, please check configuration.” }

:if ([ :typeof $ddnslastip ] = „nothing” ) do={ :global ddnslastip 0.0.0.0/0 }

:if ([ :typeof $ddnsip ] = „nothing” ) do={

:log info („DDNS: No ip address present on ” . $ddnsinterface . „, please check.”)

} else={

:if ($ddnsip != $ddnslastip) do={

:log info „DDNS: Sending UPDATE!”
:log info [ :put [/tool dns-update name=$ddnshost address=[:pick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass ] ]
:global ddnslastip $ddnsip

} else={

:log info „DDNS: No changes necessary.”

}

}

# END OF SCRIPT

Antena WI-FI z puszki

26 grudnia 2009

Mam taką puszkę jak na foto. Szukam informacji jak zrobić z niej antenę WI-FI.

Mikrotik RouterBoard 433 + La Fonera 2200 DD-WRT + Linksys WRT54GL Tomato

25 grudnia 2009

Przetestowałem Mikrotik RB 433 z La Fonerą 2200 oraz Linksysem WRT54GL. Mikrotik ustawiłem w trybie ap bridge. La Fonera i WRT54GL działają w trybie Client Bridge.

Zabezpieczenie jakiego użyłem to WPA AES oraz WPA2 AES. La Fonera  potrafi połączyć się  zabezpieczeniem WPA oraz WPA2 z MT. WRT54GL działa w trybie Client Bridge z zabezpieczeniem WPA. Mosty da się szybko ustawić i bezproblemowo.

Dodatkowo na La Fonerze ustawiłem Wirtualny AP.

La Fonera dostała nową obudowę :)

Budowa strony www.pjz.com.pl

4 października 2009

Skończyliśmy stronę WWW firmy pjz.com.pl.  Został zainstalowana na silniku WordPress.

pjz