Skip to content

Instantly share code, notes, and snippets.

View snajpa's full-sized avatar

Pavel Snajdr snajpa

  • vpsFree.cz
  • Brno, Czech Republic
View GitHub Profile
[root@build-pkg.bts.relbit.com]
/tmp # cd /tmp && fpm --no-auto-depends --no-depends -s gem -t rpm -v 3.2.14 --iteration 1 -n rubygem-rails-3.2.14 -p rubygem-rails-3.2.14.x86_64.rpm rails
no value for epoch is set, defaulting to nil {:level=>:warn}
no value for epoch is set, defaulting to nil {:level=>:warn}
Created rpm {:path=>"rubygem-rails-3.2.14.x86_64.rpm"}
[root@build-pkg.bts.relbit.com]
/tmp # rpm -qpl rubygem-rails-3.2.14.x86_64.rpm
/usr/bin
/usr/lib/ruby/gems/1.8/cache/rails-3.2.14.gem
/usr/lib/ruby/gems/1.8/doc
[root@build-pkg.bts.relbit.com]
/tmp # gem fetch rails -v 3.2.14
Downloaded rails-3.2.14
[root@build-pkg.bts.relbit.com]
/tmp # ls -lah rails-3.2.14.gem
-rw-r--r-- 1 root root 3.5K Oct 22 05:29 rails-3.2.14.gem
make[2]: Leaving directory `/root/zfs'
test -n "" \
|| find "zfs-0.6.2" -type d ! -perm -755 \
-exec chmod u+rwx,go+rx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec /bin/sh /root/zfs/config/install-sh -c -m a+r {} {} \; \
|| chmod -R a+r "zfs-0.6.2"
tardir=zfs-0.6.2 && /bin/sh /root/zfs/config/missing --run tar chof - "$tardir" | GZIP=--best gzip -c >zfs-0.6.2.tar.gz
{ test ! -d "zfs-0.6.2" || { find "zfs-0.6.2" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr "zfs-0.6.2"; }; }
9 0 0x01 15 1680 7310475806 4060892742692
txg birth state ndirty nread nwritten reads writes otime qtime wtime stime
4936572 3759036866273 C 3796480 50176 2082304 1 631 295782168 6624 216002083 192842824
4936573 3759332648441 C 3588608 14848 3440128 3 711 216026242 4863 192830085 245106974
4936574 3759548674683 C 268468224 478208 389728768 23 9897 17794880136 5334 19741 1656046719
4936575 3777343554819 C 255990272 149504 67457024 6 14132 29999491228 4958 18644 941125765
4936576 3807343046047 C 268677632 0 27743744 0 4256 13373662042 4339 32344 496922836
4936577 3820716708089 C 268676096 0 49349120 0 3603 8196439386 6334 21332 706202629
4936578 3828913147475 C
snajpa@snajpabook:~$ for node in $VPSFREE_NODES; do echo -en "$node: "; ssh $node "uname -r && uptime"; done
node1.brq.vpsfree.cz: 2.6.32-042stab085.17
15:08:30 up 6 days, 23:41, 2 users, load average: 0.08, 0.14, 0.23
node2.brq.vpsfree.cz: 2.6.32-042stab084.26
15:08:31 up 32 days, 3:08, 2 users, load average: 4.05, 4.34, 4.55
node1.prg.vpsfree.cz: 2.6.32-042stab078.28
15:08:31 up 260 days, 5:29, 1 user, load average: 8.59, 17.92, 16.32
node2.prg.vpsfree.cz: 2.6.32-042stab084.20
15:08:31 up 44 days, 11:43, 1 user, load average: 7.24, 7.68, 8.05
node3.prg.vpsfree.cz: 2.6.32-042stab085.17
[root@node8.prg.vpsfree.cz]
/etc/quagga # cat zebra.conf
hostname node8.prg.vpsfree.cz
password censored
enable password censored
interface bond200
interface venet0
[root@node8.prg.vpsfree.cz]
/etc/quagga # cat ospfd.conf
hostname node8.prg.vpsfree.cz
snajpa@snajpabook:~$ time wget http://www.gamesquest.co.uk/media/dz_banners/toys_sale.png
--2014-05-18 18:45:30-- http://www.gamesquest.co.uk/media/dz_banners/toys_sale.png
Resolving www.gamesquest.co.uk (www.gamesquest.co.uk)... 37.205.8.137
Connecting to www.gamesquest.co.uk (www.gamesquest.co.uk)|37.205.8.137|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 338246 (330K) [image/png]
Saving to: ‘toys_sale.png.3’
100%[=========================================>] 338,246 622KB/s in 0.5s
[root@node2.prg.vpsfree.cz]
~ # smartctl -a /dev/sdb
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-042stab085.20] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Black
Device Model: WDC WD1002FAEX-00Z3A0
Serial Number: WD-WCATRA602715
LU WWN Device Id: 5 0014ee 25cc2f14f
Jul 24 18:06:20 vz1 kernel: [837124.325318] zfs D ffff8802ab8b2900 0 802700 802699 0 0x00000080
Jul 24 18:06:20 vz1 kernel: [837124.325321] ffff8804a8e8d348 0000000000000086 ffff8804a8e8d2a8 ffffffff81060032
Jul 24 18:06:20 vz1 kernel: [837124.325325] ffff8804a8e8d2f8 0000000000000000 ffff882078568180 ffff8804a8e8d334
Jul 24 18:06:20 vz1 kernel: [837124.325330] ffff8804a8e8d318 ffffffffa01c3e3f ffff8802ab8b2ec8 000000000001ec80
Jul 24 18:06:20 vz1 kernel: [837124.325334] Call Trace:
Jul 24 18:06:20 vz1 kernel: [837124.325337] [<ffffffff81060032>] ? default_wake_function+0x12/0x20
Jul 24 18:06:20 vz1 kernel: [837124.325349] [<ffffffffa01c3e3f>] ? taskq_find+0x16f/0x290 [spl]
Jul 24 18:06:20 vz1 kernel: [837124.325358] [<ffffffffa01c4705>] taskq_wait_id+0x65/0xa0 [spl]
Jul 24 18:06:20 vz1 kernel: [837124.325362] [<ffffffff810a1bb0>] ? autoremove_wake_function+0x0/0x40
Jul 24 18:06:20 vz1 kernel: [837124.325389] [<ffffffffa02b1960>] ? dump_bytes_strategy+0x0/0xc0 [zfs]