Archive for September, 2008

endian firewall community default root password

I do not like to read whole documentation to get the default password, it is wasting of time, so I use google to do it. But it was rather hard do find the default password for endian firewall (Yes, I’ve just installed it for testing purposes). So:

login: root
password: endian

:)

Tags:

Thursday, September 25th, 2008 Uncategorized No Comments

re-add disk to mdadm array

Sometimes you can meet the situation when you lost a drive by accident from your mdadm configuration, as you can see below, two of my arrays has lost a drive:

# cat /proc/mdstat
Personalities : [raid1] [raid0]
md3 : active raid1 sdc2[0] hde2[1]
195358336 blocks [2/2] [UU]

md2 : active raid0 sdc1[0] hde1[1]
97675008 blocks 64k chunks

md1 : active raid1 sda1[0]
104320 blocks [2/1] [U_]

md6 : active raid1 sdb4[1] sda4[0]
958084352 blocks [2/2] [UU]

md0 : active raid1 sda3[0]
14659200 blocks [2/1] [U_]

to re-add it to array just:

# mdadm /dev/md1 -a /dev/sdb1
mdadm: re-added /dev/sdb1
# mdadm /dev/md0 -a /dev/sdb3
mdadm: re-added /dev/sdb3

now - my array is alive and kicking again :)

# cat /proc/mdstat
Personalities : [raid1] [raid0]
md3 : active raid1 sdc2[0] hde2[1]
195358336 blocks [2/2] [UU]

md2 : active raid0 sdc1[0] hde1[1]
97675008 blocks 64k chunks

md1 : active raid1 sdb1[1] sda1[0]
104320 blocks [2/2] [UU]

md6 : active raid1 sdb4[1] sda4[0]
958084352 blocks [2/2] [UU]

md0 : active raid1 sdb3[2] sda3[0]
14659200 blocks [2/1] [U_]
[>....................] recovery = 1.8% (272128/14659200) finish=2.6min speed=90709K/sec

unused devices:

Tags: ,

Tuesday, September 23rd, 2008 Linux, Tips No Comments

create vswitch from commandline

VMware ESX supports some comandline tools, and if you would like to create a new virtual switch without a lot of clicks at vmware infrastructure client, you can easly use:

esxcfg-vswitch -a testvswitch:80

where:
-a - means add
testvswitch - is name of your virtual switch
:80 - is number of port’s you would like to have

Tags: , , , ,

Tuesday, September 23rd, 2008 Linux, Tips, vmware No Comments

resolution: test every disk even if its state is NEW

Some time ago, I bought six samsung 1TB drives (P/N HD103UJ), and 3 of them has been damaged (they were pretty new, and I bought them directly from distributor!)!. Two of them has read-write errors (called bad sectors :) ) and one does not spin up (it has S.M.A.R.T error just at system boot). Why I chose Samsung? Because this was the only one which produced 1TB with 3 plates (6 heads). Now, because I do not trust Samsung at all I bought just a newness Seagate 1TB (P/N ST31000333AS) (same 6 heads). Samsung was a trauma for me, I wonder if Seagate has same problems. I tested this two drives, and just at start I found sth strange. One of disk does not start in one of SATA ports (another disk worked fine (I swapped them). Anyway after booting up the system, I started testing:

# smartctl -A /dev/sdf |grep On
9 Power_On_Hours 0×0032 100 100 000 Old_age Always - 0
# smartctl -A /dev/sdg |grep On
9 Power_On_Hours 0×0032 100 100 000 Old_age Always - 3

Why one of disks has 3 working hours and one has 0? Maybe because they were tested by support?

now is a time for whole surface test:

# badblocks -s -v /dev/sdf
Checking blocks 0 to 976762583
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.

# badblocks -s -v /dev/sdg
Checking blocks 0 to 976762583
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.

now - I am little bit more sure and I can use it :)

so maybe some performance test? because I do not have enought time to use bonnie++ I use a simple dd.
read:

# dd if=/dev/sdf of=/dev/null bs=1M count=8000
8000+0 records in
8000+0 records out
8388608000 bytes (8.4 GB) copied, 72.6436 s, 115 MB/s

# dd if=/dev/sdg of=/dev/null bs=1M count=8000
8000+0 records in
8000+0 records out
8388608000 bytes (8.4 GB) copied, 69.6747 s, 120 MB/s

write:

# dd if=/dev/zero of=/dev/sdg bs=1M count=8000
8000+0 records in
8000+0 records out
8388608000 bytes (8.4 GB) copied, 70.9014 s, 118 MB/s

# dd if=/dev/zero of=/dev/sdf bs=1M count=8000
8000+0 records in
8000+0 records out
8388608000 bytes (8.4 GB) copied, 71.8908 s, 117 MB/s

nice :P

Tags: , ,

Wednesday, September 17th, 2008 Linux, considers 4 Comments

enabling interrupts - vmware esx 3.5i hangs at this

After making my magic usb key with vmware :) I was trying to install vmware esx 3.5i at HP ProLiant DL160 G5 (two quadcore processors, a lot of ram, and 4 sata 1TB disks). But with no success… The problem was that installer hanged up at “enabling interrupts” screen.
The solution I found here you should just add acpi=off to your bootloader promt, as it is said in the vmware communities:

to enable installing ESX on HP Proliant DL160 G5 you should:

1. Press Tab on very first screen of ESXi install
2. Move cursor just after first tgz filename and write “acpi=off”
3. press Enter and ESXi successfully install on DL160G5
4. Be careful because after this setting is lost and problem appears again - solution:
a) disconnect HDD, connect to computer with Win XP (Marti: or another else!), then edit boot.cfg on second partition andin second line set “kernelopt=acpi=off”
b) after starting ESX go to console (Alt-F1, see also “usupported” mode and “enable SSH in ESX” topics) type vi /bootbank/boot.cfg and set “kernelopt=acpi=off”

Tags: , , ,

Tuesday, September 16th, 2008 Linux, cribs, vmware No Comments

vmware esx 3.5i at usb drive with sata support

Yes, it is unsupported, but who cares? As you can read even microsoft does not support windows at vmware :). The VMware ESX 3.5i is free for some time. It is VMware answer for Microsoft’s Hyper-V - I think. Because the system compatybility is rather thin, and I would love to repleace my VMware Server machines with this top product! Because I have just two scsi disks, and a lot of others (sata for example) I would love to make use of it at this machine. What I need is: vmware esx 3.5i iso and a big (1GB is minimum!) pendrive. Let’s rock!

mount the vmware iso

# mount -o loop /storage/VMware-VMvisor-InstallerCD-3.5.0_Update_2-110271.i386.iso /mnt/vmCD/

then copy a install.tgz file to some place and extract it:

# cp install.tgz /storage/
# tar xvzf install.tgz

then take a look at file usr/lib/vmware/installer/VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd.bz2 “unbzip” it!

# bunzip2 VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd.bz2

then you will have one file, which is a disk image (yes, it’s bigger than 32MB thin install of esx, but it has much more drivers):

# ls -al VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd
-rwxr-xr-x  1 root root 786432000 sie 13 05:00 VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd

now we are going to write the image at the thumbdrive… it is at /dev/sda in my system

# dd if=VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd of=/dev/sda

after this, you have a bootable USB key (look if your bios support it!)! thanks to: vm-help for its tutorial

Tags: , , , ,

Tuesday, September 16th, 2008 Linux, Tips, vmware 2 Comments

unscrew the IBM U320 disks screw, and connect it to simple u320 controller

I have two unused U320 SCSI drives from IBM (73GB 15 000 rpm), and would like to use it in server which does not supply the hot swap IBM U320 scsi 80 pin backplane. What is more, I have a controler which has just 68 pin u320 plug. If you have a problem how to connect hot swap drive into standard 68 pin u320 scsi this is the solution:

First: buy the adapter like this:

Connect one side to power plug and 68pin cable, and the disk to another side, and that’s all, your drive should be seen by your contoller.

Next thing is to uscrew this strange screws! To do this you will need a T10 TORX with a hole iside of it - that is all!

Tags: , , , ,

Friday, September 12th, 2008 IBM, Tips, cribs No Comments

changes

As you can see, the theme is changed. The old one was not so cool as this one :), for me of course, but if you have different opinion - share it in -> NEW comment system. I finally made captcha filter (this is second reason for changing the skin of my blog). I was borred with moderating the comments, and delete the spam (I deleted some users comments by accident). Today I said STOP. Feel free in commenting, and whatever you want to do.

Tags: , ,

Friday, September 12th, 2008 Personal No Comments

Failed dependencies while installing Kerio mail server at centos 5

while installing kerio mail server 6.5.2 at fresh centos 5 install (CentOS release 5.2 (Final)) i got sth like this:

# rpm -Uv /home/users/mrybak/kerio-kms-6.5.2-6426.linux.i386.rpm
error: Failed dependencies:
libstdc++.so.5 is needed by kerio-kms-6.5.2-6426.linux.i386
libstdc++.so.5(CXXABI_1.2) is needed by kerio-kms-6.5.2-6426.linux.i386
libstdc++.so.5(GLIBCPP_3.2) is needed by kerio-kms-6.5.2-6426.linux.i386
libstdc++.so.5(GLIBCPP_3.2.2) is needed by kerio-kms-6.5.2-6426.linux.i386

but I had libstdc++ libraries as you can see:

# rpm -qa |grep libstdc
libstdc++-devel-4.1.2-42.el5
libstdc++-4.1.2-42.el5

but:

# locate libstdc
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.8

so i have newer version that is needed, so:

# yum search libstdc
Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile
* base: ftp.cvut.cz
* updates: ftp.cvut.cz
* addons: ftp.cvut.cz
* extras: ftp.cvut.cz
libstdc++-devel.i386 : Header files and libraries for C++ development
compat-libstdc++-33.i386 : Compatibility standard C++ libraries
libstdc++-devel.i386 : Header files and libraries for C++ development
libstdc++.i386 : GNU Standard C++ Library
libstdc++.i386 : GNU Standard C++ Library
compat-libstdc++-296.i386 : Compatibility 2.96-RH standard C++ libraries

this is what I need, and after:

# yum install compat-libstdc++-33
Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile
* base: ftp.fi.muni.cz
* updates: ftp.fi.muni.cz
* addons: ftp.fi.muni.cz
* extras: ftp.fi.muni.cz
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
–> Running transaction check
—> Package compat-libstdc++-33.i386 0:3.2.3-61 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
compat-libstdc++-33 i386 3.2.3-61 base 232 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 232 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): compat-libstdc++-3 100% |=========================| 232 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: compat-libstdc++-33 ######################### [1/1]

Installed: compat-libstdc++-33.i386 0:3.2.3-61
Complete!

everything goes well…

[root@msuno ~]# rpm -Uv /home/users/mrybak/kerio-kms-6.5.2-6426.linux.i386.rpm
Preparing packages for installation…
kerio-kms-6.5.2-6426.linux

Thank you for installing Kerio MailServer 6.5.2!

THANK YOU :P

Tags: , ,

Wednesday, September 10th, 2008 Linux, Tips 1 Comment

pcl5 and pcl6 difference

Yeah… today is a printer day :) :]

Almost every printer in my printerhood has avaliable to download driver pcl5 and pcl6 version… so what is the difference, and what driver I should use. There is an answer in hp docs.

and followed by this site:

Descriptions of the different drivers
PCL drivers
HP to provide an efficient way to control printer features across many different printing devices created PCL. PCL was originally devised for the HP Dot Matrix and Inkjet series printers. The first printer HP LaserJet series printer was released in 1984 with the PCL 3 language.
PCL commands are compact escape sequence codes that are embedded in the print job before being sent to the printer. HP PCL formatters and fonts are designed to quickly translate application output into high-quality, device-specific, raster print images.
The PCL printer language is common to all HP printers and provided the commands needed to support color printing. There are six versions (1 thru 6) of PCL. Each subsequent version of the language includes commands not found in older versions as well as the older PCL commands. As a result, printers with more recent versions of PCL are backwards compatible with software that supports older versions of the language.
There are currently two versions of PCL that are used:
PCL 6 driver - PCL 6 uses a new modular architecture that can be easily modified for future HP printers and exhibits the following characteristics:
  • Returns faster to the application after spooling data
  • Prints complex graphics faster
  • Data streams are more efficient for reduced network traffic
  • Better WYSIWYG printing
  • Improved print quality
  • Truer document fidelity
  • Complete backward compatibility
The PCL 6 language is very different from the earlier versions of PCL. One significant difference is the manner in which the commands are sent to the printer. Use the PCL 6 driver to take full advantage of the printer features. The PCL 6 driver is recommended unless backward compatibility with previous PCL drivers or older printers is necessary.
PCL 5 drivers - The PCL 5c driver provided the commands needed to support printing in color. Use the PCL 5e driver to preserve compatibility with documents created for older printers.
PS drivers - The PostScript (PS) was originally designed by Adobe® and is an interpretive programming language with powerful graphic capabilities. A program in this language communicates a description of a document to an output device (such as a printer). Generally, PostScript is recommended for use when the following are necessary:
  • Matching font styles with other users in an organization
  • When printing in a Macintosh environment
  • When rendering graphics in a specific manner
  • When printing with PostScript specific applications

Tags: ,

Thursday, September 4th, 2008 cribs No Comments