sysadmin-cookbook
15 years agosmall helper to cook the recepie (start prompt parts in shell)
Dobrica Pavlinusic [Wed, 13 May 2009 18:31:33 +0000 (18:31 +0000)]
small helper to cook the recepie (start prompt parts in shell)

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@65 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoappend ttys to /etc/inittab
Dobrica Pavlinusic [Wed, 13 May 2009 16:41:53 +0000 (16:41 +0000)]
append ttys to /etc/inittab

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@64 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agobegin fun with amt using amtterm
Dobrica Pavlinusic [Wed, 13 May 2009 11:41:07 +0000 (11:41 +0000)]
begin fun with amt using amtterm

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@63 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agofale-safe ttys needed by lxc, but not available on openvz containers
Dobrica Pavlinusic [Tue, 12 May 2009 23:13:59 +0000 (23:13 +0000)]
fale-safe ttys needed by lxc, but not available on openvz containers

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@62 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoadd eth0 to bridge
Dobrica Pavlinusic [Tue, 12 May 2009 23:13:01 +0000 (23:13 +0000)]
add eth0 to bridge

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@61 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoexample how to create btrfs snapshot (currently you can't remove them!)
Dobrica Pavlinusic [Tue, 12 May 2009 18:03:00 +0000 (18:03 +0000)]
example how to create btrfs snapshot (currently you can't remove them!)

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@60 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoinstall btrfs-tools
Dobrica Pavlinusic [Tue, 12 May 2009 17:33:52 +0000 (17:33 +0000)]
install btrfs-tools

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@59 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoLinux Containers are now part of standard 2.6.29 Debian kernel
Dobrica Pavlinusic [Tue, 12 May 2009 16:06:44 +0000 (16:06 +0000)]
Linux Containers are now part of standard 2.6.29 Debian kernel

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@58 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agostarted recepie to cook pxe boot using dnsmasq
Dobrica Pavlinusic [Tue, 12 May 2009 16:01:04 +0000 (16:01 +0000)]
started recepie to cook pxe boot using dnsmasq

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@57 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agokill existing image, mount all partitions
Dobrica Pavlinusic [Tue, 12 May 2009 15:52:05 +0000 (15:52 +0000)]
kill existing image, mount all partitions

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@56 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agokill mounterd kvm/qemu image
Dobrica Pavlinusic [Tue, 12 May 2009 15:51:35 +0000 (15:51 +0000)]
kill mounterd kvm/qemu image

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@55 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agouse only words which have only a-z in them
Dobrica Pavlinusic [Tue, 12 May 2009 15:51:08 +0000 (15:51 +0000)]
use only words which have only a-z in them

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@54 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agomake clone of directory
Dobrica Pavlinusic [Mon, 11 May 2009 22:20:02 +0000 (22:20 +0000)]
make clone of directory

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@53 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoturn qemu/kvm image into nbd device
Dobrica Pavlinusic [Mon, 11 May 2009 21:48:57 +0000 (21:48 +0000)]
turn qemu/kvm image into nbd device

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@52 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoadded --numeric-ids to preserve ownership
Dobrica Pavlinusic [Mon, 11 May 2009 17:13:00 +0000 (17:13 +0000)]
added --numeric-ids to preserve ownership

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@51 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agocreate cqow2 image and mount it unsing nbd
Dobrica Pavlinusic [Mon, 11 May 2009 13:20:48 +0000 (13:20 +0000)]
create cqow2 image and mount it unsing nbd

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@50 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agodeduce pool name from name of snapshot
Dobrica Pavlinusic [Sun, 10 May 2009 13:43:38 +0000 (13:43 +0000)]
deduce pool name from name of snapshot

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@49 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agodelete files which are removed at source location
Dobrica Pavlinusic [Sun, 10 May 2009 13:43:03 +0000 (13:43 +0000)]
delete files which are removed at source location

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@48 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoselect zfs snapshot to turn into OpenVZ container
Dobrica Pavlinusic [Sun, 10 May 2009 13:01:49 +0000 (13:01 +0000)]
select zfs snapshot to turn into OpenVZ container

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@47 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agopull files over rsync from lvm snapshot
Dobrica Pavlinusic [Sun, 10 May 2009 13:01:16 +0000 (13:01 +0000)]
pull files over rsync from lvm snapshot

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@46 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agosend zfs snapshot over netcat
Dobrica Pavlinusic [Tue, 5 May 2009 22:22:15 +0000 (22:22 +0000)]
send zfs snapshot over netcat

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@45 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoreceive zfs snapshot over netcat
Dobrica Pavlinusic [Tue, 5 May 2009 22:21:37 +0000 (22:21 +0000)]
receive zfs snapshot over netcat

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@44 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agocheckout source and build zfs-fuse debian package
Dobrica Pavlinusic [Sun, 3 May 2009 14:13:01 +0000 (14:13 +0000)]
checkout source and build zfs-fuse debian package

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@43 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoadded --diskspace
Dobrica Pavlinusic [Sat, 2 May 2009 21:22:03 +0000 (21:22 +0000)]
added --diskspace

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@42 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoapply template config for whole machine (1) to create
Dobrica Pavlinusic [Sat, 2 May 2009 21:16:01 +0000 (21:16 +0000)]
apply template config for whole machine (1) to create
fully functional configuration

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@41 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agolastcomm-duration.pl 4
Dobrica Pavlinusic [Sat, 2 May 2009 14:46:34 +0000 (14:46 +0000)]
lastcomm-duration.pl 4

will return all commands longer than 4s

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@40 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agodisplay statistics just for long running commands
Dobrica Pavlinusic [Sat, 2 May 2009 14:44:31 +0000 (14:44 +0000)]
display statistics just for long running commands

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@39 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agouse process accounting to display summary of process, user and tty usage
Dobrica Pavlinusic [Sat, 2 May 2009 14:40:15 +0000 (14:40 +0000)]
use process accounting to display summary of process, user and tty usage

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@38 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agostress test web server by sending it /usr/share/dict/words
Dobrica Pavlinusic [Sat, 2 May 2009 14:07:30 +0000 (14:07 +0000)]
stress test web server by sending it /usr/share/dict/words

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@37 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agocount syscalls using strace
Dobrica Pavlinusic [Sat, 2 May 2009 12:27:43 +0000 (12:27 +0000)]
count syscalls using strace

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@36 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agosetup container parameters on cloned filesystem
Dobrica Pavlinusic [Sat, 2 May 2009 11:39:05 +0000 (11:39 +0000)]
setup container parameters on cloned filesystem

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@35 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agocreate template configuration of full hardware machine
Dobrica Pavlinusic [Fri, 1 May 2009 20:00:44 +0000 (20:00 +0000)]
create template configuration of full hardware machine

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@34 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agocreate writable clone from snapshot
Dobrica Pavlinusic [Fri, 1 May 2009 19:59:52 +0000 (19:59 +0000)]
create writable clone from snapshot

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@33 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agofinish rsync backup over ssh from lvm snapshot to zfs snapshot
Dobrica Pavlinusic [Fri, 1 May 2009 17:41:14 +0000 (17:41 +0000)]
finish rsync backup over ssh from lvm snapshot to zfs snapshot

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@32 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoaccept arguments and make runnable
Dobrica Pavlinusic [Fri, 1 May 2009 17:26:20 +0000 (17:26 +0000)]
accept arguments and make runnable

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@31 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agolast step is to attach new block device
Dobrica Pavlinusic [Fri, 1 May 2009 17:19:19 +0000 (17:19 +0000)]
last step is to attach new block device

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@30 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agodetach small block device from pool so it get enlarged
Dobrica Pavlinusic [Fri, 1 May 2009 16:23:24 +0000 (16:23 +0000)]
detach small block device from pool so it get enlarged

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@29 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoeasiest way to keep machine time in sync with ntp
Dobrica Pavlinusic [Fri, 1 May 2009 15:53:10 +0000 (15:53 +0000)]
easiest way to keep machine time in sync with ntp

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@28 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agothis step is optional but will move read load from local block device to network...
Dobrica Pavlinusic [Fri, 1 May 2009 15:52:15 +0000 (15:52 +0000)]
this step is optional but will move read load from local block device to network mirror device

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@27 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agosteps to enlarge pool
Dobrica Pavlinusic [Fri, 1 May 2009 15:50:04 +0000 (15:50 +0000)]
steps to enlarge pool

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@26 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agocreate 200Gb logical volume
Dobrica Pavlinusic [Fri, 1 May 2009 15:34:08 +0000 (15:34 +0000)]
create 200Gb logical volume

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@25 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoadded syntax hightlight to vim
Dobrica Pavlinusic [Fri, 1 May 2009 14:09:58 +0000 (14:09 +0000)]
added syntax hightlight to vim

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@24 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agopull backup from remote host using rsync over ssh
Dobrica Pavlinusic [Fri, 1 May 2009 14:08:20 +0000 (14:08 +0000)]
pull backup from remote host using rsync over ssh

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@23 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoadded symlink dependency
Dobrica Pavlinusic [Fri, 1 May 2009 13:55:11 +0000 (13:55 +0000)]
added symlink dependency

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@22 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agomoved copy root identity
Dobrica Pavlinusic [Fri, 1 May 2009 13:54:31 +0000 (13:54 +0000)]
moved copy root identity

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@21 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoinstall symlink dependency
Dobrica Pavlinusic [Fri, 1 May 2009 13:20:11 +0000 (13:20 +0000)]
install symlink dependency

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@20 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agomove ssh root key generation into ssh recepie
Dobrica Pavlinusic [Fri, 1 May 2009 13:19:41 +0000 (13:19 +0000)]
move ssh root key generation into ssh recepie

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@19 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agofix .ssh/config permission
Dobrica Pavlinusic [Fri, 1 May 2009 13:07:17 +0000 (13:07 +0000)]
fix .ssh/config permission

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@18 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agocreate zfs snapshot
Dobrica Pavlinusic [Fri, 1 May 2009 12:43:35 +0000 (12:43 +0000)]
create zfs snapshot

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@17 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoadded link to documentation
Dobrica Pavlinusic [Fri, 1 May 2009 12:35:09 +0000 (12:35 +0000)]
added link to documentation

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@16 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoadd our helper scripts to $PATH
Dobrica Pavlinusic [Fri, 1 May 2009 12:27:35 +0000 (12:27 +0000)]
add our helper scripts to $PATH

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@15 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agocreate compressed zfs file system
Dobrica Pavlinusic [Fri, 1 May 2009 12:13:18 +0000 (12:13 +0000)]
create compressed zfs file system

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@14 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoadded with-partitions so we can quickly list devices for fdisk
Dobrica Pavlinusic [Fri, 1 May 2009 12:11:44 +0000 (12:11 +0000)]
added with-partitions so we can quickly list devices for fdisk

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@13 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoDisplay all block devices on system
Dobrica Pavlinusic [Fri, 1 May 2009 12:00:18 +0000 (12:00 +0000)]
Display all block devices on system

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@12 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoexport whole disk and not just single partition
Dobrica Pavlinusic [Thu, 30 Apr 2009 23:16:32 +0000 (23:16 +0000)]
export whole disk and not just single partition

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@11 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoattach new device to zfs pool and turn it into mirror
Dobrica Pavlinusic [Thu, 30 Apr 2009 23:15:42 +0000 (23:15 +0000)]
attach new device to zfs pool and turn it into mirror

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@10 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoinfo recepies start without a number because they are not
Dobrica Pavlinusic [Thu, 30 Apr 2009 22:55:04 +0000 (22:55 +0000)]
info recepies start without a number because they are not
dependend on order of execution

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@9 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agostart client and verify new device
Dobrica Pavlinusic [Thu, 30 Apr 2009 22:43:20 +0000 (22:43 +0000)]
start client and verify new device

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@8 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoinstall client
Dobrica Pavlinusic [Thu, 30 Apr 2009 22:36:29 +0000 (22:36 +0000)]
install client

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@7 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agorename according to new markup, install server configuration and start it
Dobrica Pavlinusic [Thu, 30 Apr 2009 22:31:25 +0000 (22:31 +0000)]
rename according to new markup, install server configuration and start it

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@6 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agohow to deploy this cookbook
Dobrica Pavlinusic [Thu, 30 Apr 2009 22:16:09 +0000 (22:16 +0000)]
how to deploy this cookbook

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@5 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agostarted nbd recepie with installation of server
Dobrica Pavlinusic [Thu, 30 Apr 2009 21:54:34 +0000 (21:54 +0000)]
started nbd recepie with installation of server

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@4 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agocreate zfs file system
Dobrica Pavlinusic [Thu, 30 Apr 2009 20:45:38 +0000 (20:45 +0000)]
create zfs file system

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@3 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoCopy directory while preserving all permissions using rsync
Dobrica Pavlinusic [Thu, 30 Apr 2009 18:37:12 +0000 (18:37 +0000)]
Copy directory while preserving all permissions using rsync

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@2 191e9f34-6774-4a6d-acfc-7664dacd4a2a

15 years agoZFS on Linux using zfs-fuse
Dobrica Pavlinusic [Thu, 30 Apr 2009 18:23:45 +0000 (18:23 +0000)]
ZFS on Linux using zfs-fuse

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@1 191e9f34-6774-4a6d-acfc-7664dacd4a2a