Posts in category alp’s notes
Deleted files in directory
I was just refreshing my knowledge about filesystems... In FreeBSD it is definately easier to investigate fs behavior. You can just do a hexdump of a directory. In Solaris and Linux this does not work. Hexdump of zfs directory is not very interesting. However, in ufs dump we can see that deleted files persist in directory listing: # zfs crea [...]
Amazing new world with pkgng
I really like it. It\'s a pure magic... It\'s pkgng. So, my task is to deploy about 20-30 servers (jails) for practical courses in PostgreSQL. So, every student will have its own unique DBMS to crack and crash. Two years ago I said students to do: # cd /usr/ports/databases/postgresql84-server/ && make install So, for half a lesson we [...]
Redmine/Webrick rc script
I\'ve just installed redmine 1.3.2 on FreeBSD server and met several inconviniences. It is not in ports It depends on old versions of different ruby gems, which are already not in ports.In particular, it didn\'t want to work with rack 1.4.1 and I had to do # gem install rake -v=1.1.0It doesn\'t have rc script to startup Webrick (Read more. [...]
French symbols without azerty
So, sometimes I have to type some text in French. And I dislike AZERTY layout, it\'s too unfamiliar. So, what should I do? Right, to use altgr-intl US layout. To do this you just need to set XKB Variant to \"altgr-intl\" (something like this in hal policy file - /usr/local/etc/hal/fdi/policy/x11-input.fdi on my FreeBSD system):<?xml versio [...]
One thing I hate in FreeBSD…
One thing I hate in FreeBSD - is the speed of maintainence operations. To install (or upgrade) one port you have to wait half an hour... To update system with custom kernel/userland parameters, you should wait several hours... Then you call mergemaster, which asks you a dozen questions about config files (and most of changes doesn\'t impact o [...]
PostgreSQL: server closed connection
Today I got a ton of messages DBI connect(\'dbname=xxx;host=yyy\',\'username\',...) failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. at....from our network statistic collector. I spent some time trying to understand what had happened (besides yesterd [...]
Adding vdev to raidz pool
There is one fundamental flaw in raidz ZFS pools: you can\'t add devices to raidz (as opposed to usual raid5). So, could we do anything to expand our pool without full rebuilding? Yes, if we are ready to sacrifice one more disk. From zpool man page: A pool can have any number of virtual devices at the top of the (Read more...)
Change user password in script on Fre...
Changing user password in script on FreeBSD host turned out to be very simpe. Use \"pw\" for this purpose:
echo \"user_password\" | pw usermod -V /jails/myjail/etc -h 0 username
Weird boot0 behavior
Weird boot0 behavior
It seems I\'ve found one interesting bug in FreeBSD boot0. The long story is the following. We deploy new systems on IBM blade servers. After some local fixes made by Oleg we made FreeBSD gmultipath work with our EMC Clarion storage. However, we observed strange behavior. Periodically systems refused to boot. We could see only black screen an [...]
FreeBSD, Java plugin and Firefox 3.6
I\'ve just found out, that java plugin is working on FreeBSD with Firefox 3.6 and OpenJDK (openjdk6-b21_3). You just need to compile openjdk port with WEB option and later doln -s /usr/local/openjdk6/jre/lib/IcedTeaPlugin.so ~/.mozilla/plugins/I can\'t determine the quality of plugin - all my admin applications work strange (don\'t work seems [...]
FreeBSD, Java plugin and Firefox 3.6
Read UPDATING, Luck…
I spent weekend updating my desktop system. I\'ve built 8.2, updated Xorg, KDE and different trifles. Finally I reinstalled autoconf,automake,libltdl,libtool, because portmaster couldn\'t update them (ports moved). Periodically I had to kill grep during port install, because I forgot to update portmaster. These two problems could be solved if [...]
Read UPDATING, Luck…
Finally wine is fixed…
Finally one irritating wine bug was fixed. Now I\'ve just updated my wine to 1.3.3 (I had this in my port tree) with applied suggested patch. Some windows applications still don\'t work on my desktop (FreeBSD 8.1, xf86-video-ati-6.13.2, wine-1.3.3). However, they work on Linux and Intel integrated video adapter, but it seems I should blame a [...]
Finally wine is fixed…
Looking for virtualization solution
Now I\'m looking something to replace VMware ESXi... So far I looked at XCP (xen cloud platform). It has issues running OpenIndiana, so it was not a best choice for me. Then I looked at OpenNode. But satisfactory WebUI was available only for latest beta version, and I didn\'t manage to make it working. Maybe I should look at Aeolus (Read mor [...]
Looking for virtualization solution
repmgr FreeBSD port
repmgr FreeBSD port
I\'ve just managed to create initial prototype of repmgr port for FreeBSD. Port compiles, but repmgrd dumps core for unknown reason... Need to investigate. Shell archive of the port is provided.Updated: repmgrd works fine with included patch.# This is a shell archive. Save it in a file, remove anything before# this line, and then unpack it b [...]