Network-Wide Scheduler/Cron

( Central server, list o clients clients connect, and wait for status/command )

| Network-Wide Scheduler/Cron | | 2010.08.22-20:48.00

Top Ten Ways To Bork Your TSM Installation

  1. Upgrade your client from 6.1.0 to 6.2.0 ( it changes the location of dsmclientV3.cat, which causes backup db to fail with esoteric error message )

| Top Ten Ways To Bork Your TSM Installation | | 2010.07.30-18:43.00

LZMA vs GZ

983M    amavisd.log.1.gz
389M    amavisd.log.1.lzma

recompress:
real    626m58.615s
user    617m24.011s
sys     1m44.899s

gzip compress: ~50m

| LZMA vs GZ | | 2010.06.25-10:31.00

dd - writespeed

Start of disk: 12xSAS 10k 148G 2.5", RAID5: 65333kB/s 11xSATA 7200 1TB 3.5", RAID5: 96502kB/s 12xSATA 7200 1TB 3.5", RAID5: 95000kB/s

| dd - writespeed | | 2010.05.15-10:18.00

TSM 6.1.2 install fails with: java.lang.UnsatisfiedLinkError: java/awt/Component.initIDs()V

Preparing to install... Extracting the JRE from the installer archive... Unpacking the JRE... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... Launching installer... Preparing CONSOLE Mode Installation... Exception in thread "main" Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX) Stack Trace: java.lang.UnsatisfiedLinkError: java/awt/Component.initIDs()V at java.awt.Component.(Component.java:597) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:194) at java.lang.J9VMInternals.initialize(J9VMInternals.java:159) at java.lang.J9VMInternals.initialize(J9VMInternals.java:159) at com.zerog.ia.installer.util.BidiUtilImpl.setDefaultLocale(DashoA10*..) at ZeroGaz.a(DashoA10*..) at com.zerog.ia.installer.LifeCycleManager.j(DashoA10*..) at com.zerog.ia.installer.LifeCycleManager.e(DashoA10*..) at com.zerog.ia.installer.LifeCycleManager.a(DashoA10*..) at com.zerog.ia.installer.LifeCycleManager.a(DashoA10*..) at com.zerog.ia.installer.Main.main(DashoA10*..) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at com.zerog.lax.LAX.launch(DashoA10*..) at com.zerog.lax.LAX.main(DashoA10*..) This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX) Fix: yum install libXtst

| TSM 6.1.2 install fails with: java.lang.UnsatisfiedLinkError: java/awt/Component.initIDs()V | | 2010.05.14-20:18.00

Red Screen - Illegal Opcode on DL380G6 with USB booting ( Centos 5.4 )

No solution, booting from grub, grml works, fixable by booting into grml, and running chrooted grub there.

| Red Screen - Illegal Opcode on DL380G6 with USB booting ( Centos 5.4 ) | | 2010.05.14-17:24.00

Debian - runsv after upgrade changes SVDIR to /etc/service from /var/service

Debian - runsv after upgrade changes SVDIR to /etc/service from /var/service, which results in:
# sv -v d dsnscan4
fail: dsnscan4: runsv not running
to fix - stop all runing sv's:
# SVDIR=/var/service sv -v d dsnscan4
ok: down: dsnscan4: 1s, normally up

# SVDIR=/var/service sv -v d prom
ok: down: prom: 1s, normally up

and kill old runsv:
killall runsv-dir
killall runsv
and start new runsv ( all services will be up, because those 'sv d $service' are stored in different dir )

| Debian - runsv after upgrade changes SVDIR to /etc/service from /var/service | | 2010.05.14-08:57.00

High accuracy time, and why we don't support it

High accuracy time, and why we don't support it"

| High accuracy time, and why we don't support it | | 2010.04.13-09:38.00

SVN Negotiate request ignored

.subversion/servers: [groups] yourdomain = *.yourdomain.pl [yourdomain] http-auth-types = Negotiate

| SVN Negotiate request ignored | | 2010.01.11-12:27.00

ADWS 9389 perl

ADWS 9389 perl

| ADWS 9389 perl | | 2009.12.16-11:38.00

BTRFS with compression crash on 2.6.30.5

------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:4158! invalid opcode: 0000 [#1] SMP last sysfs file: /sys/module/zlib_deflate/initstate CPU 1 Modules linked in: btrfs crc32c libcrc32c nls_iso8859_1 nls_cp437 vfat fat usb_storage ub i915 drm i2c_algo_bit i2c_core binfmt_misc ppdev lp parport bridge stp bnep sco rfcomm l2cap vboxnetadp vboxnetflt vboxdrv kvm_intel kvm tun acpi_cpufreq cpufreq_ondemand cpufreq_powersave cpufreq_userspace cpufreq_stats freq_table microcode deflate zlib_deflate ctr twofish twofish_common camellia serpent blowfish cast5 des_generic cbc cryptd aes_x86_64 aes_generic xcbc rmd160 sha256_generic sha1_generic md5 hmac crypto_null af_key ext3 jbd mbcache fuse dm_crypt dm_snapshot dm_mirror dm_region_hash dm_log pata_pcmcia ide_cs snd_hda_codec_analog snd_hda_intel snd_hda_codec snd_pcm_oss snd_mixer_oss pcmcia snd_pcm arc4 snd_seq_dummy ecb snd_seq_oss snd_seq_midi snd_rawmidi iwlagn joydev yenta_socket snd_seq_midi_event iwlcore btusb snd_seq rsrc_nonstatic snd_timer bluetooth snd_seq_device pcmcia_core rfkill hp_accel mac80211 wmi rtc_cmos lis3lv02d rtc_core snd cfg80211 rtc_lib pcspkr soundcore battery processor snd_page_alloc psmouse irda serio_raw ac button container crc_ccitt evdev xfs exportfs dm_mod sd_mod crc_t10dif ide_cd_mod cdrom ata_generic pata_acpi ata_piix uhci_hcd ide_pci_generic sdhci_pci sdhci ahci mmc_core led_class ricoh_mmc e1000e ehci_hcd usbcore piix ide_core intel_agp libata scsi_mod video output thermal fan thermal_sys [last unloaded: scsi_wait_scan] Pid: 22723, comm: du Tainted: G W 2.6.30.5 #1 HP Compaq 6910p (RH241AV) RIP: 0010:[] [] run_one_delayed_ref+0x18f/0x482 [btrfs] RSP: 0018:ffff880037705be8 EFLAGS: 00010286 RAX: 00000000ffffffe4 RBX: ffff880055a20000 RCX: ffff88001f74c870 RDX: 0000000000000000 RSI: ffff88001f74c870 RDI: 00000000865361f4 RBP: ffff880037705c88 R08: 0000000000000006 R09: ffffffff805a86a7 R10: 000000000000000f R11: 0000000000003e20 R12: 0000000000000001 R13: ffff88001f74c870 R14: ffff88007de37b40 R15: ffff88007de37b40 FS: 00007f0dc7bbc6f0(0000) GS:ffff88000102c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb65df26000 CR3: 000000007dfe6000 CR4: 00000000000026e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process du (pid: 22723, threadinfo ffff880037704000, task ffff88006fb00000) Stack: 0000000000000000 00000000865361f4 ffff880037705c18 ffffffff802eb921 ffff8800049c7800 ffff88002196d000 0000000000000005 0000000000000000 0000000000000000 00000000a09a9a54 0000000024e47000 00000000001000a8 Call Trace: [] ? virt_to_head_page+0x1c/0x51 [] run_clustered_refs+0x25c/0x2af [btrfs] [] ? btrfs_find_ref_cluster+0x107/0x162 [btrfs] [] btrfs_run_delayed_refs+0xdc/0x199 [btrfs] [] __btrfs_end_transaction+0x6c/0x128 [btrfs] [] btrfs_end_transaction+0x1e/0x34 [btrfs] [] btrfs_dirty_inode+0x58/0x77 [btrfs] [] __mark_inode_dirty+0x42/0x1bd [] ? filldir+0x0/0xe3 [] touch_atime+0x11b/0x13a [] vfs_readdir+0xa1/0xd5 [] ? fd_install+0x43/0x89 [] sys_getdents+0x8c/0xec [] system_call_fastpath+0x16/0x1b Code: 00 08 48 8d 4d b0 48 8b 73 20 41 b9 01 00 00 00 c7 45 c4 33 00 00 00 4c 8d 45 c4 48 89 c2 48 8b 7d 88 e8 1e 95 ff ff 85 c0 74 04 <0f> 0b eb fe 4d 8b 65 00 49 63 75 40 4c 89 e7 48 6b f6 19 48 83 RIP [] run_one_delayed_ref+0x18f/0x482 [btrfs] RSP ---[ end trace 830eb32434834c21 ]---

| BTRFS with compression crash on 2.6.30.5 | | 2009.09.23-21:50.00

DX7400 only 3.2G ram even in 64bit OS

supposedly BIOS 1.08 fixes RAM problem, but in 1.09 the problem exists, that even though there is >4G ram in machine, OS can see only 3.2G. (lshw reports correctly installed memory though). Problem can be solved by downgrading to 1.08 or upgrading to 1.14. (1.10 supossedly is not enough)

| DX7400 only 3.2G ram even in 64bit OS | | 2009.09.23-20:49.00

krb5 Negative cache rejected lookup for

"Negative cache rejected lookup for" on MacOSX (Snow Leopard), fixed by restart

| krb5 Negative cache rejected lookup for | | 2009.09.23-15:14.00

iP4600 on 64-bit debian with duplex printing

go to http://software.canon-europe.com/products/0010649.asp download debian .tar, unpack and:
dpkg -i --force-architecture cnijfilter-common_3.00-1_i386.deb        cnijfilter-ip4600series_3.00-1_i386.deb

| iP4600 on 64-bit debian with duplex printing | | 2009.09.13-16:01.00

openssl Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz

model name : Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz ( @ 1600Mhz ) sign verify sign/s verify/s rsa 512 bits 0.000471s 0.000035s 2124.9 28527.1 rsa 1024 bits 0.002158s 0.000094s 463.3 10623.4 rsa 2048 bits 0.011599s 0.000289s 86.2 3464.4 rsa 4096 bits 0.070851s 0.000953s 14.1 1049.2 sign verify sign/s verify/s dsa 512 bits 0.000359s 0.000422s 2785.9 2372.5 dsa 1024 bits 0.000946s 0.001123s 1057.3 890.2 dsa 2048 bits 0.002879s 0.003503s 347.3 285.5 vs AMD Phenom(tm) 9950 Quad-Core Processor sign verify sign/s verify/s rsa 512 bits 0.000568s 0.000035s 1759.7 28305.3 rsa 1024 bits 0.001966s 0.000086s 508.6 11630.0 rsa 2048 bits 0.009823s 0.000250s 101.8 4004.4 rsa 4096 bits 0.058824s 0.000834s 17.0 1199.0 sign verify sign/s verify/s dsa 512 bits 0.000369s 0.000401s 2707.1 2496.5 dsa 1024 bits 0.000841s 0.000979s 1189.4 1021.8 dsa 2048 bits 0.002415s 0.002877s 414.0 347.6

| openssl Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz | | 2009.08.30-20:47.00

Moving Roles in Postgresql ( with passwords )

pg_dumpall -g

| Moving Roles in Postgresql ( with passwords ) | | 2009.08.22-22:41.00

Debian Squeeze Python

Traceback (most recent call last): File "/usr/bin/update-gconf-defaults", line 161, in shutil.copyfile(tmp_gconf+'/'+treefile,options.dest_dir+'/'+treefile+'.tmp') AttributeError: 'module' object has no attribute 'copyfile'

| Debian Squeeze Python | | 2009.08.10-10:47.00

Colours....

Watermellon Picnic -- Red, Apple Green, White, Pink, Black, White, Pink Mermaid Magic -- White, Maize, Blue, Mint, Capri Blue Flag Girl -- Red, White, Dark Navy Jungle Gem -- Brown, Aquamarine, Lemonade, Creamsicle, Festive Fuschia, Lemongrass Spring Sparkle -- Turquoise, aquamarine, azalea, orange, shocking pink, pink passion Pretty Lady -- Shocking Pink, Pink, Yellow, Lemongrass, White Flower Garden -- Turquoise, Apple Green, Pistachio, Wild Orchid, Pink, Hot Pink, White Social Butterfly -- White, Yellow, Creamsicle, Lemongrass, Pink Passion, Tomato Happy Rainbow -- Yellow, Turquoise, White, Watermellon, Light Pink, Pink, Apple Green Fashion Flower -- White, Aquamarine, Lime, Light Navy, Dark Royal, Apple Green Daisy Days -- Yellow, White, Dark Navy, Emerald, Creamsicle, Neon Orange Full Of Heart -- White, Red, Hot Pink, Shocking Pink Wild One -- Black, Light Ivory, Shocking Pink, Zebra Print Candy Shoppe -- Dark Navy, Light Ivory, Pansy, Orange, Shocking Pink, Pistachio>BR> Dots of Fun -- Brown, light Ivory, Pistachio, Wild Orchid, Festive Fuchsia Winter Snowflake -- Light Ivory, Pink, Light Blue, Cranberry, Brown Sweeter Than Chocolate -- Baby Pink, Hot Pink, Shocking Pink, Brown, Light Ivory Central Park Skater -- Millennium Silver, Light Blue, Blue, White Holiday Friend -- Millennium Silver, Grey, Black, Light Ivory, Cranberry Holiday Pictures -- Cranberry, Black, Light Ivory City Sparkle -- Gold Metallic, Brown, Light Ivory Fall Forest - Light Ivory, Baby Pink, Shocking Pink, Creamsicle, Rust, Lemongrass, Moss, Dark Navy Rising Star - Rose Pink, Old Rose, Silver Metallic, Deep Purple Lots of Dots - Brown, Light Blue, Blueberry, Pink, Shocking Pink, Lemonade, Light Ivory, Apple Green Classroom Kitty -- Millennium Silver, Grey, Flannel Grey, Shocking Pink, Baby Pink, Celadon, Light Ivory Prep School -- Baby Pink, Dark Navy, Red, Emerald, Light Ivory Petite Mademoiselle -- Dark Navy, Lavender, Celadon, Millennium Blue Uniform Shop -- Khaki, Dark Navy, White Beach Shack -- Pistachio, Dusty Rose, Creamsicle, Light Navy, Moss, Light Ivory, Light Pink Palm Springs -- Lemongrass, Shocking Pink, Wild Orchid, Turquoise, Light Blue, White, Celadon Red, White & Blue -- Cranberry, Dark Navy, White Lady Daisy -- Yellow, White, Black, Neon Green Cherry Baby -- Red, Hot Pink, Yellow, White, Apple Green Tropical Garden -- Aquamarine, White, Apricot, Old Rose, Light Pink, Creamsicle, Neon Green, Coral, Moss Tennis Match -- White, Shocking Pink, Hot Pink, Misty Turquoise, Blue, Apple Green, Neon Green Ice Cream Social -- White, Brown, Rose Pink, Blue, Oatmeal Spring Rainbow -- Banana, Turquoise, White, Light Blue -- Red, White Tomato, Red, Lime, Capri Blue, Light Ivory, Dark Navy Tres Chic -- Rose Pink, Black, White, Hot Pink, Shocking Pink Cupcake Cutie -- Apple Green, Robins Egg Blue, Rose Pink, Orange, Red, White, Shocking Pink, Brown, Sapphire The Ballet -- Light Ivory, Rose Pink, Grey Snow Princess -- Rose Pink, Pink, Blue, Blueberry, Light Ivory, Celadon, Emerald Winter Glam -- Brown, Light Ivory, Rose Pink, Light Pink Mountain Cabin -- Cranberry, Millennium Blue, Lemonade, Tomato, Evergreen, Olive Glamour Kitty -- Black, Taupe, Oatmeal, Cranberry (the best match) Holiday Classics -- Black, Light Ivory, Cranberry, Dark Navy, Evergreen Beautiful Luxe -- Light Ivory, Gold Metallic Girl Detective -- Mauve, Rose Pink, Light Ivory, Celadon, Brown, Taupe City Girl -- Light Ivory, Dark Navy Harvest Leaves -- Cranberry, Maroon, Orange, Light Ivory, Light Pink, Celadon, Olive, Gold Equestrian Club -- Lemonade, Brown, Light Blue, Olive, Evergreen, Pecan Schoolgirls Rock -- Cranberry, Light Pink, Dark Navy, White, Millennium Silver Royal Gardens -- Olive, Festive Fuchsia, Light Ivory, Rose Pink, Gold Metallic Bon Voyage -- Dark Navy, Red, Light Ivory, Grey, Millennium Silver Savanna Sunset -- Rust, Orange, Brown, Turftan, Taupe, Olive, Celadon, Festive Fuchsia, Light Ivory Strawberry Farm -- Red, Millennium Blue, Blue, Banana, White, Rose Pink Coral Reef -- Mauve, Coral

| Colours.... | | 2009.08.07-09:24.00

DM device being kept opened by pvscan:

host4:/var/lib/mlocate# dmsetup info 36006016022b21c00d6cdb73f8635de11 Name: 36006016022b21c00d6cdb73f8635de11 State: SUSPENDED Read Ahead: 256 Tables present: LIVE Open count: 0 Event number: 2 Major, minor: 254, 15 Number of targets: 1 UUID: mpath-36006016022b21c00d6cdb73f8635de11 host4:/var/lib/mlocate# dmsetup info 36006016022b21c00ea321cae6c0dde11 Name: 36006016022b21c00ea321cae6c0dde11 State: SUSPENDED Read Ahead: 256 Tables present: LIVE Open count: 47 Event number: 3 Major, minor: 254, 4 Number of targets: 1 UUID: mpath-36006016022b21c00ea321cae6c0dde11 host4:/var/lib/mlocate# dmsetup suspend --noflush 36006016022b21c00ea321cae6c0dde11 host4:/var/lib/mlocate# w 15:21:34 up 40 days, 4:56, 11 users, load average: 44.24, 65.58, 159.46 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT eyck pts/1 172.17.1.55:S.0 21Mar09 6:15m 44:29 0.06s /bin/bash eyck pts/2 172.17.1.55:S.1 21Mar09 1:09 2:23 0.07s /bin/bash eyck pts/3 172.17.1.55:S.2 21Mar09 3:47 0.65s 0.06s /bin/bash eyck pts/4 172.17.1.55:S.3 21Mar09 3:45 42.23s 0.06s /bin/bash eyck pts/5 172.17.1.55:S.4 21Mar09 29:27m 31.35s 0.08s /bin/bash eyck pts/6 172.17.1.55:S.5 21Mar09 29:29m 1.35s 0.07s /bin/bash eyck pts/7 172.17.1.55:S.6 21Mar09 0.00s 0.63s 0.09s /bin/bash root pts/8 192.168.190.89 20Apr09 10days 0.07s 0.00s -bash eyck pts/9 172.17.1.55 23Apr09 2days 0.23s 0.08s -bash eyck pts/10 172.17.1.55:S.7 14:56 22:49 0.09s 0.07s /bin/bash eyck pts/11 172.17.1.55:S.8 14:58 8:21 0.27s 0.07s /bin/bash host4:/var/lib/mlocate# w 15:21:35 up 40 days, 4:56, 11 users, load average: 44.24, 65.58, 159.46 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT eyck pts/1 172.17.1.55:S.0 21Mar09 6:15m 44:29 0.06s /bin/bash eyck pts/2 172.17.1.55:S.1 21Mar09 1:10 2:23 0.07s /bin/bash eyck pts/3 172.17.1.55:S.2 21Mar09 3:48 0.65s 0.06s /bin/bash eyck pts/4 172.17.1.55:S.3 21Mar09 3:46 42.23s 0.06s /bin/bash eyck pts/5 172.17.1.55:S.4 21Mar09 29:27m 31.35s 0.08s /bin/bash eyck pts/6 172.17.1.55:S.5 21Mar09 29:29m 1.35s 0.07s /bin/bash eyck pts/7 172.17.1.55:S.6 21Mar09 0.00s 0.62s 0.09s /bin/bash root pts/8 192.168.190.89 20Apr09 10days 0.07s 0.00s -bash eyck pts/9 172.17.1.55 23Apr09 2days 0.23s 0.08s -bash eyck pts/10 172.17.1.55:S.7 14:56 22:50 0.09s 0.07s /bin/bash eyck pts/11 172.17.1.55:S.8 14:58 8:22 0.27s 0.07s /bin/bash host4:/var/lib/mlocate# dmsetup resume 36006016022b21c00ea321cae6c0dde11 host4:/var/lib/mlocate# dmsetup suspend --noflush 36006016022b21c00ea321cae6c0dde11 host4:/var/lib/mlocate# dmsetup info 36006016022b21c00ea321cae6c0dde11 Name: 36006016022b21c00ea321cae6c0dde11 State: SUSPENDED Read Ahead: 256 Tables present: LIVE Open count: 0 Event number: 3 Major, minor: 254, 4 Number of targets: 1 UUID: mpath-36006016022b21c00ea321cae6c0dde11 (what to look for: open count)

| DM device being kept opened by pvscan: | | 2009.04.30-15:23.00

Insufficient suitable contiguous allocatable extents for logical volume pvmove0: 404479 more required

time pvmove /dev/dm-0
  Insufficient suitable contiguous allocatable extents for logical volume pvmove0: 404479 more required
    Unable to allocate temporary LV for pvmove.
Fix:
 time pvmove -v /dev/dm-0:1-3000
    Wiping cache of LVM-capable devices
    Finding volume group "spool"
    Archiving volume group "spool" metadata (seqno 96).
    Creating logical volume pvmove0
    Moving 1 extents of logical volume spool/ebic
    Found volume group "spool"
    Updating volume group metadata
    Creating volume group backup "/etc/lvm/backup/spool" (seqno 97).
    Found volume group "spool"
    Found volume group "spool"
    Suspending spool-ebic (254:11)
    Found volume group "spool"
    Creating spool-pvmove0
    Loading spool-pvmove0 table
    Resuming spool-pvmove0 (254:15)
    Found volume group "spool"
    Loading spool-pvmove0 table
    Resuming spool-pvmove0 (254:15)
    Loading spool-ebic table
    Resuming spool-ebic (254:11)
    Checking progress every 15 seconds
  /dev/dm-0: Moved: 00.0%

| Insufficient suitable contiguous allocatable extents for logical volume pvmove0: 404479 more required | | 2009.01.28-11:14.00

Hot-add Hot-remove: linux scsi subsystem

We've got erroneous scsi entry, remove it:
for n in `seq 0 0`; do echo $n; echo "scsi remove-single-device 1 0 0 $n" > /proc/scsi/scsi ; echo "scsi remove-single-device 0 0 0 $n" > /proc/scsi/scsi ; done
Now, we attached new FC LUN as 0:0:0:0 and 1:0:0:0
for n in `seq 0 0`; do echo $n; echo "scsi add-single-device 1 0 0 $n" > /proc/scsi/scsi ; echo "scsi add-single-device 0 0 0 $n" > /proc/scsi/scsi ; done
now, multipath -ll will show you, that multipath deteceted deviced with extra path to it, and created new device for it:
360060160e0b11c00d846a76e4be6dd11dm-12 DGC,VRAID
[size=140G][features=1 queue_if_no_path][hwhandler=1 emc]
\_ round-robin 0 [prio=1][active]
 \_ 1:0:0:0 sda 8:0   [active][ready]
 \_ round-robin 0 [prio=0][enabled]
  \_ 0:0:0:0 sde 8:64  [active][ready]

| Hot-add Hot-remove: linux scsi subsystem | | 2009.01.19-18:22.00

linux software raid get's marked as 'auto-ready-only', and resync stays PENDING indefinitely...

(This happened after changing kernel from the one that saw raid members as /dev/sdb5 and /dev/sdc5, to one that saw it as /dev/sda5 and /dev/sdb5.)
Personalities : [raid1]
md1 : active(auto-read-only) raid1 sdb5[1] sda5[0]
      234372160 blocks [2/2] [UU]
     resync = PENDING
it will stay PENDING until the end of time, or until you do:
mdadm --readwrite /dev/md1
then it starts syncing:
cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb5[1] sda5[0]
      234372160 blocks [2/2] [UU]
      [===============>.....]  resync = 75.4% (176734976/234372160) finish=12.2min speed=78556K/sec

| linux software raid get's marked as 'auto-ready-only', and resync stays PENDING indefinitely... | | 2008.12.24-22:25.00

Upgrading Postgresql from 8.1 to 8.3 (debian lenny transition)

apt-get install postgresql ( this install postgresql-8.3 ) pg_dropcluster --stop 8.3 main kakofonix:/var/backups/pg# pg_upgradecluster -v 8.3 8.1 main Creating new cluster (configuration: /etc/postgresql/8.3/main, data: /var/lib/postgresql/8.3/main)... Moving configuration file /var/lib/postgresql/8.3/main/postgresql.conf to /etc/postgresql/8.3/main... Moving configuration file /var/lib/postgresql/8.3/main/pg_hba.conf to /etc/postgresql/8.3/main... Moving configuration file /var/lib/postgresql/8.3/main/pg_ident.conf to /etc/postgresql/8.3/main... Configuring postgresql.conf to use port 5433... Disabling connections to the old cluster during upgrade... Disabling connections to the new cluster during upgrade... Re-enabling connections to the old cluster... Re-enabling connections to the new cluster... Creating globals... Fixing hardcoded library paths for stored procedures... Upgrading database agenericdatabase... Analyzing database agenericdatabase... Fixing hardcoded library paths for stored procedures... Upgrading database anotherdb... Analyzing database anotherdb... Fixing hardcoded library paths for stored procedures... Upgrading database postgres... Analyzing database postgres... Fixing hardcoded library paths for stored procedures... Upgrading database template1... pg_restore: [archiver (db)] Error while PROCESSING TOC: pg_restore: [archiver (db)] Error from TOC entry 1502; 1262 1 DATABASE template1 postgres pg_restore: [archiver (db)] could not execute query: ERROR: database "template1" already exists Command was: CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII'; WARNING: errors ignored on restore: 1 Analyzing database template1... Copying old configuration files... Copying old start.conf... Stopping target cluster... Stopping old cluster... Disabling automatic startup of old cluster... Configuring old cluster to use a different port (5433)... Starting target cluster on the original port... Success. Please check that the upgraded cluster works. If it does, you can remove the old cluster with pg_dropcluster 8.1 main

| Upgrading Postgresql from 8.1 to 8.3 (debian lenny transition) | | 2008.11.05-21:08.00

Comprehensive Guide To Life for Geeks, Aliens and Artificial Lifeforms

Chapter 7: Driving.

| Comprehensive Guide To Life for Geeks, Aliens and Artificial Lifeforms | | 2008.06.25-14:58.00

DCPromo - upgrade from 2000 to 2003 and Beyond

Domain: 2003 Functional Level: - universal groups - group nesting - group type conversion - SID history - Constrained delegation - lastLogoTimestamp updates (updated and replicated) - ability to set userPassword attribute as the effective password on inetOrgPerson and user objects - ability to redirect Users and Computers containers 2008 Functional Level: - DFS replication support for SYSVOL - AES 128 and AES256 support for Kerberos - Last Interactive Logon information (last successful interactive logon for a user, number of failed logons ) - Fine-grained password policies ( password/account lockout policies for users and global security groups)

| DCPromo - upgrade from 2000 to 2003 and Beyond | | 2008.05.14-19:39.00

Tai Ji Quan - Long Form

1. Taiji 2. Wróbel Prawy ( You Lan Que Wei ) 3. Wróbel Lewy (Zuo Lan Que Wei) 4. Odparowanie (Peng-) 5. Sciagniecie (-Lu-) 6. Nacisk (-Ji-) 7. Pchniecie (-An) 8. Bicz (Dan Bian) 9. Uniesienie Rak(Ti Shou Shang Shi) 10. Zuraw (Bai He Liang Chi) 11. Zgarniecie Z Kolana, Lewo (Zuo Lou Xi Yao Bu) 12. Lutnia (Shou Hui Pi Pa) 13. Zgarniecie z kolana, lewo (Zuo Lou Xi Yao Bu) 14. Zgarniecie z kolana, prawo (You Lou Xi Yao Bu) 15. Zgarniecie z kolana, lewo (Zou Lou Xi Yao Bu) 16. Lutnia (Shou Hui Pi Pa) 17. Zgarniecie z kolana, lwo ( Zuo Lou Xi Yao Bu) 18. Uderzenie piescia z gory (Pie Shen Chui) 19. yada yada cios (Jin Bu Ban Lan Chui) 20. Ciasne Zapieczetowanie(Ru Feng Si Bi) 21. Objecie tygrysa, powrot do gory (Bao Hu Gui Shan) ... Part 2: .... 23. Peng-Lu-Ji-An 24. Bicz 25. Piesc pod lokiec (Zhou Di Kan Chui) 26. Malpa lewo (Zuo Dao Nian Hou) 27. Malpa prawo (You Dao Nian Hou) 28. Malpa lewo (Zuo Dao Nian Hou) 29. Lot ukosny (Xie Fei Shi) 30. Uniesienie rak (TI Shou Shang Shi) 31. Zuraw (Bai He Liang Chi) 32. Zgarniecie z kolana, lewo (Zou Lou Xi Yao Bu) 33. Igla na dnie morza (Hai Di Lao Zhen 34. Wachlarz przez plecy (Shan Tong Bei) 35. piescia z gory (Zhuan Shen Pie Shen Chui) 36. Przechwycenie i uderzenie (Jin Bu Ban Lan Chui) 37. ... Shan Bu, Peng-Lu-Ji-An ( blok, obrot stopy, pchniecie... ) 38. Dan Bian (Bicz) 39. Dlonie-Chmury-Prawo (You Yun Shou) 40. Dlonie-Chmury-Lewo (Zuo Yun Shou) 41. Dlonie-Chmury-Prawo (You Yun Shou) 42. Dan Bian (Bicz) 43. stan wysoko szukaj konia (Gao Tan Ma) 44. Kopniecie Rozdzielajace Prawo (You Fen Jiao) 45. Kopniecie Rozdzielajace Lewo (Zuo Fen Jiao) 46. Obrot(90) i kopniecie lewa pieta (Zhuan Shen Deng Jiao) 47. Zgarniecie z kolana lewo (Zuo Lou Xi Yao Bu) 48. Zgarniecie z kolana prawo (You Lou Xi Yao Bu) 49. Krok, cios piescia w ziemie (Jin Bu Zai Chui)

| Tai Ji Quan - Long Form | | 2008.04.14-14:05.00

Create Degraded Raid1

Sep  5  2007
gnoll2:~# mdadm --create /dev/md1 --level 1 --raid-devices=2 missing /dev/hdh5
mdadm: array /dev/md1 started.
gnoll2:~# cat /proc/mdstat 
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md1 : active raid1 hdh5[1]
      77152064 blocks [2/1] [_U]
            
unused devices: <none>

gnoll2:/fs/tmp# mdadm --add /dev/md1 /dev/hde5 
mdadm: added /dev/hde5
gnoll2:/fs/tmp# cat /proc/mdstat 
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md1 : active raid1 hde5[2] hdh5[1]
      77152064 blocks [2/1] [_U]
            [>....................]  recovery =  0.0% (18560/77152064) finish=414.6min speed=3093K/sec
	          
unused devices: <none>
gnoll2:/fs/tmp# 

pokurcz:/home/eyck# mdadm  --create /dev/md1 -a yes --level 1 --raid-devices=2 missing /dev/sdb5
mdadm: array /dev/md1 started.

pokurcz:/home/eyck# cat /proc/mdstat 
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md1 : active raid1 sdb5[1]
      50002176 blocks [2/1] [_U]
            
unused devices: <none>
pokurcz:/home/eyck# 

pokurcz:/home/eyck# mdadm --add /dev/md1 /dev/sda5
mdadm: added /dev/sda5
pokurcz:/home/eyck# cat /proc/mdstat 
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md1 : active raid1 sda5[2] sdb5[1]
      50002176 blocks [2/1] [_U]
      [>....................]  recovery =  0.2% (139392/50002176) finish=11.9min speed=69696K/sec
	          
unused devices: <none>

| Create Degraded Raid1 | | 2008.03.13-13:32.00

VMWare Server on debian etch requirements

ii libx11-6 1.0.3-7 X11 client-side library ii libx11-data 1.0.3-7 X11 client-side library ii libxau6 1.0.1-2 X11 authorisation library ii libxcomposite1 0.3-3 X11 Composite extension library ii libxdmcp6 1.0.1-2 X11 Display Manager Control Protocol library ii libxext6 1.0.1-2 X11 miscellaneous extension library ii libxfixes3 4.0.1-5 X11 miscellaneous 'fixes' extension library ii libxi6 1.0.1-4 X11 Input extension library ii libxrender1 0.9.1-3 X Rendering Extension client library ii libxt6 1.0.2-2 X11 toolkit intrinsics library ii libxtst6 1.0.1-5 X11 Testing -- Resource extension library

| VMWare Server on debian etch requirements | | 2008.03.12-17:27.00

Replacing disk with larger - Vista vs Linux

  1. Linux:
    cfdisk /dev/sdb
    pvcreate /dev/sdb6
    vgextend system /dev/sdb6
    pvmove /dev/sdb6
    vgreduce system /dev/sdb6
    pvremove /dev/sdb6
    
    mkfs.xfs -Lboot /dev/sdb5
    time xfsdump - /dev/sda5|xfsrestore - /fs/sdb5
    
    grub: root (hd1,5),setup(hd1)
    
    Voile'a.
  2. Vista: ntfsclone --overwrite /dev/sdb1 /dev/sda1 restart -> Vista Install Disk -> Repair 2 additional restarts to install disk driver(sic!)

    | Replacing disk with larger - Vista vs Linux | | 2008.03.07-11:09.00

    T/TCP for FTP transfers

    using T/TCP for FTP transfers turns FTP from ideal 'File Transfer Protocol', into ideal 'Files Transfer Protocol' (by reducing cost(bandwidth and time) of transfering multiple files (RFC 1379) Similiar effect half-closing tcp might have...(??)

    | T/TCP for FTP transfers | | 2008.02.24-00:06.00

    Installing fairly featurefull perl on win32

    1) get openssl-win32 2) install strawberry perl 3) (if your openssl include Crypt::SSLeay with correct perl version, go for it, if not - perl -MCPAN -e shell install Crypt::SSLeay - fails. go to cpan build dir, perl Makefile.PL;dmake => works. dmake install Next, Net::SSLeay - repeat, it fails, because it forgets about ssleay.a files.. copy their paths from Makefile for Crypt::SSLeay (EXTRALIBS vs LDLOADLIBS) install Tk, Net::SSLeay::Handle, Win32::Process... and voilea..

    | Installing fairly featurefull perl on win32 | | 2008.02.15-01:30.00

    Upgrading postgres from 8.1 to 8.3 on debian etch:

    
    root@test64:/var/backups/pg# pg_upgradecluster 8.1 main
    Creating new cluster (configuration: /etc/postgresql/8.3/main, data: /var/lib/postgresql/8.3/main)...
    Moving configuration file /var/lib/postgresql/8.3/main/postgresql.conf to /etc/postgresql/8.3/main...
    Moving configuration file /var/lib/postgresql/8.3/main/pg_hba.conf to /etc/postgresql/8.3/main...
    Moving configuration file /var/lib/postgresql/8.3/main/pg_ident.conf to /etc/postgresql/8.3/main...
    Configuring postgresql.conf to use port 5433...
    Disabling connections to the old cluster during upgrade...
    Disabling connections to the new cluster during upgrade...
    Re-enabling connections to the old cluster...
    Re-enabling connections to the new cluster...
    Creating globals...
    Fixing hardcoded library paths for stored procedures...
    Upgrading database bazkadb-user07...
    Analyzing database bazkadb-user07...
    Fixing hardcoded library paths for stored procedures...
    Upgrading database bazkadbep...
    pg_restore: [archiver (db)] Error while PROCESSING TOC:
    pg_restore: [archiver (db)] Error from TOC entry 1617; 2606 562236 FK CONSTRAINT fkad166f893bd6f4d7 bazka
    pg_restore: [archiver (db)] could not execute query: ERROR:  foreign key constraint "fkad166f893bd6f4d7" cannot be implemented
    DETAIL:  Key columns "id_endpoint" and "id_endpoint" are of incompatible types: character varying and integer.
        Command was: ALTER TABLE ONLY user_endpoint
        ADD CONSTRAINT fkad166f893bd6f4d7 FOREIGN KEY (id_endpoint) REFERENCES endpoint(id_endpoi...
    WARNING: errors ignored on restore: 1
    Analyzing database bazkadbep...
    Fixing hardcoded library paths for stored procedures...
    Upgrading database postgres...
    Analyzing database postgres...
    Fixing hardcoded library paths for stored procedures...
    Upgrading database bazkadbep2...
    Analyzing database bazkadbep2...
    Fixing hardcoded library paths for stored procedures...
    Upgrading database bazkadb...
    Analyzing database bazkadb...
    Fixing hardcoded library paths for stored procedures...
    Upgrading database xwiki...
    Analyzing database xwiki...
    Fixing hardcoded library paths for stored procedures...
    Upgrading database scheduler...
    Analyzing database scheduler...
    Fixing hardcoded library paths for stored procedures...
    Upgrading database template1...
    Analyzing database template1...
    Copying old configuration files...
    Copying old start.conf...
    Stopping target cluster...
    Stopping old cluster...
    Disabling automatic startup of old cluster...
    Configuring old cluster to use a different port (5433)...
    Starting target cluster on the original port...
    Success. Please check that the upgraded cluster works. If it does,
    you can remove the old cluster with
    
      pg_dropcluster 8.1 main
    
    
    root@test64:/var/backups/pg# pg_dropcluster 8.1 main
    

    | Upgrading postgres from 8.1 to 8.3 on debian etch: | | 2008.02.11-12:48.00

    maja:/shit# pvscan PV /dev/cciss/c0d0p5 VG gucio lvm2 [270.08 GB / 0 free] PV /dev/cciss/c0d1p1 VG gucio lvm2 [33.91 GB / 1.98 GB free] PV /dev/sda5 VG gucio lvm2 [318.09 GB / 318.09 GB free] Total: 3 [622.07 GB] / in use: 3 [622.07 GB] / in no VG: 0 [0 ] maja:/shit# pvmove /dev/cciss/c0d1p1 /dev/cciss/c0d1p1: Moved: 1.1% /dev/cciss/c0d1p1: Moved: 1.9% /dev/cciss/c0d1p1: Moved: 2.7% /dev/cciss/c0d1p1: Moved: 4.3% /dev/cciss/c0d1p1: Moved: 6.6% /dev/cciss/c0d1p1: Moved: 8.6% maja:/shit# pvmove /dev/cciss/c0d1p1 /dev/cciss/c0d1p1: Moved: 1.1% /dev/cciss/c0d1p1: Moved: 1.9% /dev/cciss/c0d1p1: Moved: 2.7% /dev/cciss/c0d1p1: Moved: 4.3% /dev/cciss/c0d1p1: Moved: 6.6% /dev/cciss/c0d1p1: Moved: 8.6% /dev/cciss/c0d1p1: Moved: 10.0% /dev/cciss/c0d1p1: Moved: 11.4% /dev/cciss/c0d1p1: Moved: 13.2% /dev/cciss/c0d1p1: Moved: 15.4% /dev/cciss/c0d1p1: Moved: 17.3% /dev/cciss/c0d1p1: Moved: 18.7% /dev/cciss/c0d1p1: Moved: 20.2% /dev/cciss/c0d1p1: Moved: 21.5% /dev/cciss/c0d1p1: Moved: 22.8% /dev/cciss/c0d1p1: Moved: 25.2% /dev/cciss/c0d1p1: Moved: 27.5% /dev/cciss/c0d1p1: Moved: 29.5% /dev/cciss/c0d1p1: Moved: 31.4% /dev/cciss/c0d1p1: Moved: 32.8% /dev/cciss/c0d1p1: Moved: 34.3% /dev/cciss/c0d1p1: Moved: 35.6% /dev/cciss/c0d1p1: Moved: 37.7% /dev/cciss/c0d1p1: Moved: 40.0% /dev/cciss/c0d1p1: Moved: 42.0% /dev/cciss/c0d1p1: Moved: 43.4% /dev/cciss/c0d1p1: Moved: 44.7% /dev/cciss/c0d1p1: Moved: 46.7% /dev/cciss/c0d1p1: Moved: 49.1% /dev/cciss/c0d1p1: Moved: 51.3% /dev/cciss/c0d1p1: Moved: 52.8% /dev/cciss/c0d1p1: Moved: 54.2% /dev/cciss/c0d1p1: Moved: 55.8% /dev/cciss/c0d1p1: Moved: 57.9% /dev/cciss/c0d1p1: Moved: 59.3% /dev/cciss/c0d1p1: Moved: 60.7% /dev/cciss/c0d1p1: Moved: 62.8% /dev/cciss/c0d1p1: Moved: 64.5% /dev/cciss/c0d1p1: Moved: 65.8% /dev/cciss/c0d1p1: Moved: 67.4% /dev/cciss/c0d1p1: Moved: 69.5% /dev/cciss/c0d1p1: Moved: 71.4% /dev/cciss/c0d1p1: Moved: 72.9% /dev/cciss/c0d1p1: Moved: 74.4% /dev/cciss/c0d1p1: Moved: 75.7% /dev/cciss/c0d1p1: Moved: 77.0% /dev/cciss/c0d1p1: Moved: 78.4% /dev/cciss/c0d1p1: Moved: 79.7% /dev/cciss/c0d1p1: Moved: 81.6% /dev/cciss/c0d1p1: Moved: 83.3% /dev/cciss/c0d1p1: Moved: 84.7% /dev/cciss/c0d1p1: Moved: 86.1% /dev/cciss/c0d1p1: Moved: 87.8% /dev/cciss/c0d1p1: Moved: 89.7% /dev/cciss/c0d1p1: Moved: 91.3% /dev/cciss/c0d1p1: Moved: 92.6% /dev/cciss/c0d1p1: Moved: 94.0% /dev/cciss/c0d1p1: Moved: 95.7% /dev/cciss/c0d1p1: Moved: 97.6% /dev/cciss/c0d1p1: Moved: 99.4% /dev/cciss/c0d1p1: Moved: 100.0% maja:/shit#

    | | | 2008.02.01-19:51.00

    Backups with snapshots

    pokurcz:/home/ftp# xfs_freeze -f /fs/tmpptc/     
    pokurcz:/home/ftp# lvcreate -l 500 -s -n tsnap /dev/dat/tmpptc 
      Logical volume "tsnap" created
    pokurcz:/home/ftp# mkdir /fs/snapt
    pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/tmp
    tmpf    tmpptc  
    pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/tmp
    tmpf    tmpptc  
    pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/   
    bck      devetch  fs       ftp      tmpf     tmpptc   tsnap    
    pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/tsnap /fs/snapt/
    pokurcz:/home/ftp# xfs_freeze -u /fs/tmpptc
    pokurcz:/home/ftp# 
    
    
    
    pokurcz:/home/ftp# cd /fs/tmpptc/
    pokurcz:/fs/tmpptc# ls
    TL1_6-install.pdf                        
    VMware-VMvisor-InstallerCD-3.5.0-67921.i386.iso  conieface.xfsdump.gz  hypervisor_performance_comparison_1_0_5_with_esx-data.pdf  ldap.pem         q                     testy
    pokurcz:/fs/tmpptc# touch HELLO.WORLD
    pokurcz:/fs/tmpptc# ls /fs/snapt/
    VMware-VMvisor-InstallerCD-3.5.0-67921.i386.iso  conieface.xfsdump.gz  hypervisor_performance_comparison_1_0_5_with_esx-data.pdf  ldap.pem         q                     testy
    pokurcz:/fs/tmpptc# 
    
    
    Clean up:
    
    pokurcz:/fs/tmpptc# umount /fs/snapt/
    pokurcz:/fs/tmpptc# lvremove -f /dev/dat/   
          tmpf     tmpptc   tsnap    
    pokurcz:/fs/tmpptc# lvremove -f /dev/dat/tsnap 
      Logical volume "tsnap" successfully removed
    
    

    | Backups with snapshots | | 2008.01.25-19:33.00

    Remove disks from lvm

    HN:/home/eyck# pvscan 
      PV /dev/dm-10          VG systems   lvm2 [65.00 GB / 5.93 GB free]
      PV /dev/dm-9           VG cdb       lvm2 [70.00 GB / 1.89 GB free]
      PV /dev/dm-8           VG spool     lvm2 [797.47 GB / 81.70 GB free]
      PV /dev/cciss/c0d0p5                lvm2 [32.98 GB]
      PV /dev/cciss/c1d0p5                lvm2 [67.83 GB]
      PV /dev/cciss/c1d1p5                lvm2 [67.83 GB]
      PV /dev/cciss/c1d2p5                lvm2 [273.45 GB]
      PV /dev/cciss/c1d3p1                lvm2 [279.39 GB]
      Total: 8 [1.62 TB] / in use: 3 [932.46 GB] / in no VG: 5 [721.49 GB]
    HN:/home/eyck# pvremove  /dev/cciss/c1d3p1
      Labels on physical volume "/dev/cciss/c1d3p1" successfully wiped
    HN:/home/eyck# pvremove  /dev/cciss/c1d2p5
      Labels on physical volume "/dev/cciss/c1d2p5" successfully wiped
    HN:/home/eyck# pvremove  /dev/cciss/c1d1p5
      Labels on physical volume "/dev/cciss/c1d1p5" successfully wiped
    HN:/home/eyck# pvremove  /dev/cciss/c0d0p5
      Labels on physical volume "/dev/cciss/c0d0p5" successfully wiped
    HN:/home/eyck# pvremove  /dev/cciss/c1d0p5
      Labels on physical volume "/dev/cciss/c1d0p5" successfully wiped
    HN:/home/eyck# 
    
    HN:/home/eyck# pvscan 
      PV /dev/dm-10   VG systems   lvm2 [65.00 GB / 5.93 GB free]
      PV /dev/dm-9    VG cdb       lvm2 [70.00 GB / 1.89 GB free]
      PV /dev/dm-8    VG spool     lvm2 [797.47 GB / 81.70 GB free]
    Total: 3 [932.46 GB] / in use: 3 [932.46 GB] / in no VG: 0 [0   ]
    
    

    | Remove disks from lvm | | 2008.01.22-12:28.00

    Kerberos and k5start

    kadmin -k -p eyck@DOMAIN

    | Kerberos and k5start | | 2008.01.22-11:03.00

    PowerDNS on PostgreSQL

    
    CREATE TABLE domains (
        id serial NOT NULL,
        name character varying(255) NOT NULL,
        master character varying(20),
        last_check integer,
        "type" character varying(6) NOT NULL,
        notified_serial integer,
        account character varying(40)
    );
    
    
    CREATE TABLE records (
        id serial NOT NULL,
        domain_id integer,
        name character varying(255),
        "type" character varying(6),
        content character varying(255),
        ttl integer,
        prio integer,
        change_date integer
    );
    
    CREATE TABLE supermasters (
        ip character varying(25) NOT NULL,
        nameserver character varying(255) NOT NULL,
        account character varying(40)
    );
    
    
    
    COPY domains (id, name, master, last_check, "type", notified_serial, account) FROM stdin;
    1       kuszelas.eu    \N      \N      NATIVE  \N      \N
    \.
    
    
    --
    -- Data for TOC entry 22 (OID 17153)
    -- Name: records; Type: TABLE DATA; Schema: public; Owner: postgres
    --
    
    COPY records (id, domain_id, name, "type", content, ttl, prio, change_date) FROM stdin;
    2       1       localhost.kuszelas.eu  A       127.0.0.1       120     \N      \N
    20      1       kuszelas.eu    MX      mail2.kuszelas.eu      300     10      \N
    21      1       mail2.kuszelas.eu      A       212.182.115.24  120     \N      \N
    1       1       kuszelas.eu    SOA     localhost user.kuszelas.eu 1   86400   \N      \N
    17      1       kuszelas.eu    NS      ns.kuszelas.eu 300     \N      \N
    18      1       kuszelas.eu    MX      mail.kuszelas.eu       300     5       \N
    12      1       _jabber._tcp.jabber.kuszelas.eu        SRV     0 5269 kuszelas.eu     300     10      \N
    13      1       _xmpp-server._tcp.jabber.kuszelas.eu   SRV     0 5269 kuszelas.eu     300     10      \N
    14      1       _xmpp-client._tcp.jabber.kuszelas.eu   SRV     0 5222 kuszelas.eu     300     10      \N
    16      1       kuszelas.eu    TXT     Serwer  300     \N      \N
    3       1       www.kuszelas.eu        A       195.242.124.71  120     \N      \N
    5       1       dns.kuszelas.eu        A       195.242.124.71  120     \N      \N
    6       1       ftp.kuszelas.eu        A       195.242.124.71  120     \N      \N
    7       1       poczta.kuszelas.eu     A       195.242.124.71  120     \N      \N
    8       1       pop3.kuszelas.eu       A       195.242.124.71  120     \N      \N
    9       1       smtp.kuszelas.eu       A       195.242.124.71  120     \N      \N
    10      1       ssh.kuszelas.eu        A       195.242.124.71  120     \N      \N
    11      1       jabber.kuszelas.eu     A       195.242.124.71  120     \N      \N
    4       1       mail.kuszelas.eu       A       195.242.124.71  120     \N      \N
    \.
    
    
    
    Audit trail:
    CREATE TABLE audit_domains (
        operation         char(1)   NOT NULL,
        stamp             timestamp NOT NULL,
        userid            text      NOT NULL,
        id serial NOT NULL,
        name character varying(255) NOT NULL,
        master character varying(20),
        last_check integer,
        "type" character varying(6) NOT NULL,
        notified_serial integer,
        account character varying(40)
    );
    
    
    CREATE TABLE audit_records (
        operation         char(1)   NOT NULL,
        stamp             timestamp NOT NULL,
        userid            text      NOT NULL,
        id serial NOT NULL,
        domain_id integer,
        name character varying(255),
        "type" character varying(6),
        content character varying(255),
        ttl integer,
        prio integer,
        change_date integer
    );
    
    CREATE OR REPLACE FUNCTION process_audit_domains() RETURNS TRIGGER AS $audit_domains$
        BEGIN
            --
            -- Create a row in audit_domains to reflect the operation performed on domains,
            -- make use of the special variable TG_OP to work out the operation.
            --
            IF (TG_OP = 'DELETE') THEN
                INSERT INTO audit_domains SELECT 'D', now(), user, OLD.*;
                RETURN OLD;
            ELSIF (TG_OP = 'UPDATE') THEN
                INSERT INTO audit_domains SELECT 'U', now(), user, NEW.*;
                RETURN NEW;
            ELSIF (TG_OP = 'INSERT') THEN
                INSERT INTO audit_domains SELECT 'I', now(), user, NEW.*;
                RETURN NEW;
            END IF;
            RETURN NULL; -- result is ignored since this is an AFTER trigger
        END;
    $audit_domains$ LANGUAGE plpgsql;
    
    CREATE TRIGGER audit_domains
    AFTER INSERT OR UPDATE OR DELETE ON domains
        FOR EACH ROW EXECUTE PROCEDURE process_audit_domains();
    
    --
    
    CREATE OR REPLACE FUNCTION process_audit_records() RETURNS TRIGGER AS $audit_records$
        BEGIN
            --
            -- Create a row in audit_records to reflect the operation performed on records,
            -- make use of the special variable TG_OP to work out the operation.
            --
            IF (TG_OP = 'DELETE') THEN
                INSERT INTO audit_records SELECT 'D', now(), user, OLD.*;
                RETURN OLD;
            ELSIF (TG_OP = 'UPDATE') THEN
                INSERT INTO audit_records SELECT 'U', now(), user, NEW.*;
                RETURN NEW;
            ELSIF (TG_OP = 'INSERT') THEN
                INSERT INTO audit_records SELECT 'I', now(), user, NEW.*;
                RETURN NEW;
            END IF;
            RETURN NULL; -- result is ignored since this is an AFTER trigger
        END;
    $audit_records$ LANGUAGE plpgsql;
    
    CREATE TRIGGER audit_records
    AFTER INSERT OR UPDATE OR DELETE ON records
        FOR EACH ROW EXECUTE PROCEDURE process_audit_records();
    
    
    
    

    | PowerDNS on PostgreSQL | | 2007.12.14-17:28.00

    dd_rescue /dev/zero test

    host:/fs/t# dd_rescue /dev/zero test
    dd_rescue: (info): ipos:   5831680.0k, opos:   5831680.0k, xferd:   5831680.0k
                       errs:      0, errxfer:         0.0k, succxfer:   5831680.0k
    		                +curr.rate:   493402kB/s, avg.rate:   141304kB/s, avg.load: 34.6%
    
    host:/fs/t# dd_rescue /dev/zero test
    dd_rescue: (info): ipos:  22496256.0k, opos:  22496256.0k, xferd:  22496256.0k
                       errs:      0, errxfer:         0.0k, succxfer:  22496256.0k
    		                +curr.rate:   366322kB/s, avg.rate:   150428kB/s, avg.load: 38.7%
    
    IO/s: 590 Write BW: 148MB/s
    host:/fs/t# time dd_rescue -w /dev/zero test
    dd_rescue: (info): ipos: 535740416.0k, opos: 535740416.0k, xferd: 535740416.0k
                       errs:      0, errxfer:         0.0k, succxfer: 535740416.0k
    +curr.rate:    28755kB/s, avg.rate:   151774kB/s, avg.load: 41.6%
    
    real    58m53.858s
    user    0m25.982s
    sys     24m2.210s
    

    | dd_rescue /dev/zero test | | 2007.12.13-18:51.00

    Vista ReadyBoost requirements

    : 5MB/s(2.5M/s?) for random reads (4k) 3MB/s(1.75M/s?) for random writes (512k) Limits defined in: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EMDMgmt for example: Device Status 0x02 ReadSpeedKBs 0x1000 WriteSpeedKBs 0x1000 (you need to click 'do-not-retest', otherwise it will otherwrite your changes in registy)

    | Vista ReadyBoost requirements | | 2007.12.08-14:18.00

    Compaq 6910p on debian lenny

    • kernel >=2.6.22 (for sound, intel x3100 graphics)
    • xorg >=7.2
    • alsaconfig -> snd_hda_intel
    • iwlwifi-4965-ucode -> /lib/firmware/
    • iwlwifi 1.2.22 (1.2.20 doesn't work)
    • s2ram -f --vbe_save --vbe_post --vbe_mode  I don't know half of you half as well as I should like; and I like less than half of you half as well as you deserve. -- J. R. R. Tolkien