dash blogja

Ext3 online resize over LVM

$ sudo lvextend -L+100G /dev/VGHITACHI80/VPS1LV
Extending logical volume VPS1LV to 120.00 GiB
Logical volume VPS1LV successfully resized
$ sudo resize2fs /dev/VGHITACHI80/VPS1LV
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/VGHITACHI80/VPS1LV is mounted on /var/lib/vz; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 8
Performing an on-line resize of /dev/VGHITACHI80/VPS1LV to 31457280 (4k) blocks.
The filesystem on /dev/VGHITACHI80/VPS1LV is now 31457280 blocks long.

Működik. Az egyetlen követelmény hogy legyen szabad hely a kötetcsoportban.

The Debian Administrator’s Handbook

Nemsokára megjelenik.

Like several months now, most of my time has been directed towards the Debian Administrator’s Handbook. The big news is that the liberation fund has been completed… this means that the book will be published under DFSG-free licenses from the start (GPL-2+ / CC-BY-SA 3.0).

We hope to publish the book next week (i.e. between May 7th and May 11th). The PDF output for the printed book is almost ready. There’s some work left for the HTML/EPUB output and we have to prepare for the release of the sources as well…

Hopefully everything will work out like planned. Stay tuned!

Írott DVD - Win7 Ultimate dobozos 90.000HUF

Ad1) A történetnek a privát információk el lettek távolítva továbbá hangsúlyozottan nem kívánom sem a kiskereskedő, sem a Microsoft sem más jóhírét csorbítani. Ez a bejegyzés csak arról szól, hogy ilyen is van, ne lepődjetek meg.

Ad2) Tudom hogy a számla és a licensz megléte a lényeg, nem a média.

Ad3) Kéretik nem etetni a trollokat.

Ha a féllábú RAID1...

a másik diszk hozzadása és a resync végeztével REBOOT után ismét degraded lesz, mert bár az mdX ugyan elindul, de az új diszk fd hexa kódú partíciója nem létezik a /dev alatt:

mdadm --misc --zero-superblock /dev/sdY

A partíciók:


fdisk -uc /dev/sdY

d
o
w

sfdisk -d /dev/[aktiv_diszk_a_tombben] | sfdisk --force /dev/sdY

Ezekután már perzisztens lesz az

mdadm --manage /dev/md1 --add /dev/sdY1

folyamat végeztével létrejövő normális állapot.

Freedns update with TLS (get proper certificate for wget)

Bocs, jegyzet magamnak.

echo QUIT | \
openssl s_client -connect freedns.afraid.org:443 2> /dev/null | \
sed '/BEGIN CERT/,/END CERT/!d' > /etc/ssl/private/freedns.afraid.org.pem 

wget --secure-protocol=TLSv1 \
          --ca-certificate=/etc/ssl/private/freedns.afraid.org.pem \
          --read-timeout=0 --tries=10 --wait=10 -qO /dev/null \
          https://freedns.afraid.org/dynamic/update.php?************************************

TL-WR1043ND + OpenWrt 10.03.1-RC4: WiFi interfész (wlan0) eltávolítása a br-lan (LAN & WiFi) bridgeből

echo "config 'interface' 'wlan'" >> /etc/config/network
uci set network.wlan.proto=static
uci set network.wlan.ipaddr=192.168.2.1
uci set network.wlan.netmask=255.255.255.0
uci commit network
uci set wireless.@wifi-iface[0].network=wlan
uci commit wireless

Ezekután gondolom a br-lan is törölhető:

uci delete network.lan.type
brctl delbr br-lan

br-lan -> (LAN & WiFi) = (LAN portok (1,2,3,4)* + wlan0)

* =eth0.1

KopKop

Stealthy and secure remote command triggering for IP networks. The kopkop daemon listens for encrypted, signed and fully random-looking command packets. Only the fields essential for the packets' travel trough the internet are filled with 'sane' data. Upon reception and after a preset timeout it executes user defined commands. This could be used to open firewalls, allow hosts, etc., so one can reduce your system's attack surface by hiding services like 22/tcp ssh or 1000/tcp webmin. The packet sending mechanism a.k.a. the kopkop client is also included. The communication is strictly unidirectional and quite minimal between the client and the server altough random padding is used to spread the packet size between 120bytes and 8Kbytes. Replay attacks are forestalled by storing and comparing monotoneously increasing packet ids on both sides.

Example Netfilter Configuration Script for ICMPv6 Filtering

Control Protocol(s)

● IPv4 Control Protocols:

ARP (for Ethernet)

ICMP

IGMP

● IPv6 Control Protocol:

ICMPv6

(IPv6 Next Header value = 58)

Must be fully implemented & supported!

ARP is Dead, Long Live Neighbour Discovery!

Much more than ARP (see Router Discovery
and redirects)

Reducing network load (multicast vs broadcast)

Improving robustness of packet delivery

Neighbor unreachability detection (incl. half-link
failures detection)

Notification from/to upper-layer!

LVM alapú rendszer áthelyezése másik merevlemezre

1. Az új merevlemezen hozzuk létre a boot-nak a partíciót (fdisk), formázzuk meg (mkfs), esetleg tune2fs -sel hangoljunk rajta.
2. Az új merevlemezen a maradék területen hozzunk létre egy 8e típusú Linux LVM partíciót (fdisk).
3. SystemRescue CD -ről bootolva (az LVM2 matatásához szükséges eszközök benne vannak) adjuk ki a pvcreate parancsot célként a 2. pontban létrehozott partíciót megadva.
4. vgextend "régi"_kötetcsoport_neve /dev/új_lvm_partíció
5. vgchange -an
6. pvmove /dev/régi_lvm_partíció /dev/új_lvm_partíció
7. vgreduce "régi"_kötetcsoport_neve /dev/régi_lvm_partíció
8. pvremove /dev/régi_lvm_partíció
9. A régi boot partíción lévő fájlok átmásolása az 1. pontban létrehozottra az rsync -cavub paranccsal.
10. chroot, grub-install