sysadmin-cookbook
5 years agoget pool name from running system
Dobrica Pavlinusic [Thu, 21 Mar 2019 15:24:50 +0000 (16:24 +0100)]
get pool name from running system

9 years agoextract key into variable for easy copy/paste
Dobrica Pavlinusic [Wed, 22 Oct 2014 11:35:06 +0000 (11:35 +0000)]
extract key into variable for easy copy/paste

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

9 years agoadd keys for debian repositories
Dobrica Pavlinusic [Sat, 18 Oct 2014 09:08:05 +0000 (09:08 +0000)]
add keys for debian repositories

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

9 years agoconfigurable vol_opt (e.g. compression)
Dobrica Pavlinusic [Mon, 23 Jun 2014 09:50:59 +0000 (09:50 +0000)]
configurable vol_opt (e.g. compression)

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

9 years agorestore genti-backup export dump into zfs ext4 volume
Dobrica Pavlinusic [Mon, 23 Jun 2014 00:41:03 +0000 (00:41 +0000)]
restore genti-backup export dump into zfs ext4 volume

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

10 years agoexclude rootfs/(var)?/tmp from rsync
Dobrica Pavlinusic [Fri, 2 May 2014 15:48:22 +0000 (15:48 +0000)]
exclude rootfs/(var)?/tmp from rsync

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

10 years agodon't wrap df output
Dobrica Pavlinusic [Fri, 2 May 2014 15:47:55 +0000 (15:47 +0000)]
don't wrap df output

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

10 years agodo final rsync with --inplace to conserve disk space
Dobrica Pavlinusic [Fri, 2 May 2014 15:47:36 +0000 (15:47 +0000)]
do final rsync with --inplace to conserve disk space

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

10 years agosplit master and storage node, support machines with dash in name
Dobrica Pavlinusic [Thu, 24 Apr 2014 07:26:24 +0000 (07:26 +0000)]
split master and storage node, support machines with dash in name

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

10 years agouse ssh_host to get IP
Dobrica Pavlinusic [Wed, 23 Apr 2014 19:09:48 +0000 (19:09 +0000)]
use ssh_host to get IP

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

10 years agodon't expect boot dir, just rootfs
Dobrica Pavlinusic [Wed, 23 Apr 2014 19:08:22 +0000 (19:08 +0000)]
don't expect boot dir, just rootfs

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

10 years agognt-instance list with more verbose output
Dobrica Pavlinusic [Sat, 15 Feb 2014 18:33:40 +0000 (18:33 +0000)]
gnt-instance list with more verbose output

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

10 years agotweaks after migration of narada
Dobrica Pavlinusic [Wed, 29 Jan 2014 00:13:48 +0000 (00:13 +0000)]
tweaks after migration of narada

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

10 years agofix host mountpoint
Dobrica Pavlinusic [Tue, 28 Jan 2014 18:33:58 +0000 (18:33 +0000)]
fix host mountpoint

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

10 years agosplit host configure to acpi and console
Dobrica Pavlinusic [Sun, 12 Jan 2014 16:07:52 +0000 (16:07 +0000)]
split host configure to acpi and console

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

10 years agoconfigure host serial console
Dobrica Pavlinusic [Sun, 12 Jan 2014 16:07:07 +0000 (16:07 +0000)]
configure host serial console

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

10 years agorestart acpi on host
Dobrica Pavlinusic [Sun, 12 Jan 2014 15:03:50 +0000 (15:03 +0000)]
restart acpi on host

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

10 years agoallow host=target_hostname script to execute single script on different host
Dobrica Pavlinusic [Sun, 12 Jan 2014 14:50:13 +0000 (14:50 +0000)]
allow host=target_hostname script to execute single script on different host

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

10 years agomigrate lxc container to ganeti
Dobrica Pavlinusic [Sun, 12 Jan 2014 13:39:28 +0000 (13:39 +0000)]
migrate lxc container to ganeti

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

10 years agostart from 0 secotor if first message isn't selftest error
Dobrica Pavlinusic [Sun, 24 Nov 2013 21:21:17 +0000 (21:21 +0000)]
start from 0 secotor if first message isn't selftest error

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

10 years agostart from last known error
Dobrica Pavlinusic [Sun, 24 Nov 2013 21:03:59 +0000 (21:03 +0000)]
start from last known error

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

10 years agomunin plugin to monitor /dev/log/daemon.log
Dobrica Pavlinusic [Mon, 9 Sep 2013 15:28:00 +0000 (15:28 +0000)]
munin plugin to monitor /dev/log/daemon.log

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

10 years agogenerate QR code for WIFI network
Dobrica Pavlinusic [Wed, 21 Aug 2013 12:11:52 +0000 (12:11 +0000)]
generate QR code for WIFI network

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

11 years agouse system configured cgroup mount point
Dobrica Pavlinusic [Tue, 9 Apr 2013 19:49:31 +0000 (19:49 +0000)]
use system configured cgroup mount point

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

11 years agoreport md devices and zfs spare cache and log drives
Dobrica Pavlinusic [Sat, 25 Aug 2012 14:13:11 +0000 (14:13 +0000)]
report md devices and zfs spare cache and log drives

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

11 years agoconnect to IPMI serial console using IPMIView.properties
Dobrica Pavlinusic [Sat, 25 Aug 2012 05:44:57 +0000 (05:44 +0000)]
connect to IPMI serial console using IPMIView.properties

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

11 years agooverview of disks on system with zfs pool/vdev info
Dobrica Pavlinusic [Fri, 24 Aug 2012 14:24:56 +0000 (14:24 +0000)]
overview of disks on system with zfs pool/vdev info

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

11 years agoinstall wheezy
Dobrica Pavlinusic [Mon, 25 Jun 2012 12:18:30 +0000 (12:18 +0000)]
install wheezy

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

11 years agoInternet Archive BookReader
Dobrica Pavlinusic [Thu, 21 Jun 2012 18:50:12 +0000 (18:50 +0000)]
Internet Archive BookReader

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

11 years agoinstall libvirt and associated tools
Dobrica Pavlinusic [Wed, 30 May 2012 17:01:28 +0000 (17:01 +0000)]
install libvirt and associated tools

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

11 years agopreserve original function name for label
Dobrica Pavlinusic [Sun, 27 May 2012 20:06:24 +0000 (20:06 +0000)]
preserve original function name for label

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

11 years agomonitor gearman using munin
Dobrica Pavlinusic [Sun, 27 May 2012 19:58:55 +0000 (19:58 +0000)]
monitor gearman using munin

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

11 years agowatch /proc/mdstat
Dobrica Pavlinusic [Sat, 26 May 2012 12:10:23 +0000 (12:10 +0000)]
watch /proc/mdstat

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

11 years agocheck md5 array
Dobrica Pavlinusic [Sat, 26 May 2012 12:05:07 +0000 (12:05 +0000)]
check md5 array

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

11 years agoWrite-intent bitmap
Dobrica Pavlinusic [Sat, 26 May 2012 12:01:10 +0000 (12:01 +0000)]
Write-intent bitmap

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

12 years agocreate TCP proxy unsing only iptables
Dobrica Pavlinusic [Thu, 9 Feb 2012 20:18:26 +0000 (20:18 +0000)]
create TCP proxy unsing only iptables

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

12 years agobetter output while relocating sectors
Dobrica Pavlinusic [Wed, 25 Jan 2012 17:05:33 +0000 (17:05 +0000)]
better output while relocating sectors

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

12 years agorun smart test incrementally and relocate batch of sectors
Dobrica Pavlinusic [Wed, 25 Jan 2012 16:53:11 +0000 (16:53 +0000)]
run smart test incrementally and relocate batch of sectors

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

12 years agoremove shell scripts which relocates single sector
Dobrica Pavlinusic [Wed, 25 Jan 2012 16:52:28 +0000 (16:52 +0000)]
remove shell scripts which relocates single sector

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

12 years agorelocated failed sector using hdparm
Dobrica Pavlinusic [Wed, 28 Dec 2011 23:39:34 +0000 (23:39 +0000)]
relocated failed sector using hdparm

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

12 years agofix lxc-ps usage with -C arg for lxc 0.7.5
Dobrica Pavlinusic [Tue, 13 Dec 2011 12:54:24 +0000 (12:54 +0000)]
fix lxc-ps usage with -C arg for lxc 0.7.5

Reported by Gordon Henderson <gordon(at)drogon.net>

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

12 years agoDebian packages required for smart-dump.sh
Dobrica Pavlinusic [Sat, 1 Oct 2011 10:58:42 +0000 (10:58 +0000)]
Debian packages required for smart-dump.sh

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

12 years agorun long smart test on all drives
Dobrica Pavlinusic [Sat, 1 Oct 2011 10:57:27 +0000 (10:57 +0000)]
run long smart test on all drives

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

12 years agocount drives by type, ignoring serial number
Dobrica Pavlinusic [Sat, 1 Oct 2011 10:56:25 +0000 (10:56 +0000)]
count drives by type, ignoring serial number

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

12 years agogrep smart logs for failure and running smart tests
Dobrica Pavlinusic [Sat, 1 Oct 2011 10:55:27 +0000 (10:55 +0000)]
grep smart logs for failure and running smart tests

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

12 years agofix adding of smart files
Dobrica Pavlinusic [Thu, 29 Sep 2011 20:56:45 +0000 (20:56 +0000)]
fix adding of smart files

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

12 years agolinks to controller binaries
Dobrica Pavlinusic [Thu, 29 Sep 2011 20:47:43 +0000 (20:47 +0000)]
links to controller binaries

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

12 years agoextended dumper which also dumps controller information
Dobrica Pavlinusic [Thu, 29 Sep 2011 20:47:11 +0000 (20:47 +0000)]
extended dumper which also dumps controller information

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

12 years agoinstall cron if missing
Dobrica Pavlinusic [Sat, 17 Sep 2011 11:05:51 +0000 (11:05 +0000)]
install cron if missing

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

12 years agostart following HOWTO
Dobrica Pavlinusic [Thu, 15 Sep 2011 17:16:12 +0000 (17:16 +0000)]
start following HOWTO

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

12 years agodump start data into git
Dobrica Pavlinusic [Wed, 14 Sep 2011 23:36:10 +0000 (23:36 +0000)]
dump start data into git

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

12 years agohttp://techgage.com/article/enabling_and_testing_ssd_trim_support_under_linux/2
Dobrica Pavlinusic [Wed, 14 Sep 2011 23:12:34 +0000 (23:12 +0000)]
techgage.com/article/enabling_and_testing_ssd_trim_support_under_linux/2

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

12 years agofallback for lxc-info 0.7.2
Dobrica Pavlinusic [Fri, 9 Sep 2011 18:27:11 +0000 (18:27 +0000)]
fallback for lxc-info 0.7.2

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

12 years agouse new lxc-info 0.7.5 output for status
Dobrica Pavlinusic [Fri, 9 Sep 2011 18:21:14 +0000 (18:21 +0000)]
use new lxc-info 0.7.5 output for status

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

12 years agofix readonly flag for first snapshot
Dobrica Pavlinusic [Tue, 6 Sep 2011 09:09:37 +0000 (09:09 +0000)]
fix readonly flag for first snapshot

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

12 years agoadded network compression using lzo and cleanup timeouts for reliable operation
Dobrica Pavlinusic [Mon, 5 Sep 2011 22:52:27 +0000 (22:52 +0000)]
added network compression using lzo and cleanup timeouts for reliable operation

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

12 years agoadded sleep 0.1 s for netcat to start, verify snapshot creation
Dobrica Pavlinusic [Mon, 5 Sep 2011 22:18:01 +0000 (22:18 +0000)]
added sleep 0.1 s for netcat to start, verify snapshot creation

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

12 years agoreplicate all filesystems and snapshots to another machine
Dobrica Pavlinusic [Mon, 5 Sep 2011 22:02:00 +0000 (22:02 +0000)]
replicate all filesystems and snapshots to another machine

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

12 years agocreate test raidz1 array, nuke one drive, replace it with spare
Dobrica Pavlinusic [Tue, 16 Aug 2011 22:53:20 +0000 (22:53 +0000)]
create test raidz1 array, nuke one drive, replace it with spare

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

12 years agonvidia power saving tips
Dobrica Pavlinusic [Thu, 21 Jul 2011 11:32:46 +0000 (11:32 +0000)]
nvidia power saving tips

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

12 years agorecent Debian has /var/run as symlink
Dobrica Pavlinusic [Sun, 26 Jun 2011 15:00:40 +0000 (15:00 +0000)]
recent Debian has /var/run as symlink

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

12 years agozfs list -t snapshot fix for newer zfs versions which don't return snapshots by default
Dobrica Pavlinusic [Thu, 26 May 2011 18:22:29 +0000 (18:22 +0000)]
zfs list -t snapshot fix for newer zfs versions which don't return snapshots by default

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

13 years agocreate containers for blkio disk speed test
Dobrica Pavlinusic [Sun, 15 May 2011 00:08:10 +0000 (00:08 +0000)]
create containers for blkio disk speed test

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

13 years agoinclude all options for blkio cgroup
Dobrica Pavlinusic [Sun, 15 May 2011 00:04:01 +0000 (00:04 +0000)]
include all options for blkio cgroup

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

13 years agoadded missing file
Dobrica Pavlinusic [Sat, 14 May 2011 20:07:00 +0000 (20:07 +0000)]
added missing file

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

13 years agostart kvm with two ethernets
Dobrica Pavlinusic [Sat, 14 May 2011 20:03:06 +0000 (20:03 +0000)]
start kvm with two ethernets

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

13 years agoadd tap interface to host lapop
Dobrica Pavlinusic [Sat, 14 May 2011 19:53:44 +0000 (19:53 +0000)]
add tap interface to host lapop

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

13 years agouse apt-cacher-ng if installed
Dobrica Pavlinusic [Sat, 14 May 2011 19:48:20 +0000 (19:48 +0000)]
use apt-cacher-ng if installed

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

13 years agoinstall all required packages inside container automatically
Dobrica Pavlinusic [Sat, 14 May 2011 15:46:26 +0000 (15:46 +0000)]
install all required packages inside container automatically

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

13 years agopatch kernel with lxc patches
Dobrica Pavlinusic [Sat, 14 May 2011 15:28:41 +0000 (15:28 +0000)]
patch kernel with lxc patches

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

13 years agoinstall libc6-amd64 so that busybox container start works
Dobrica Pavlinusic [Sat, 14 May 2011 15:25:11 +0000 (15:25 +0000)]
install libc6-amd64 so that busybox container start works

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

13 years agoboot kvm
Dobrica Pavlinusic [Fri, 13 May 2011 20:06:14 +0000 (20:06 +0000)]
boot kvm

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

13 years agobuild kvm kernel
Dobrica Pavlinusic [Fri, 13 May 2011 19:58:32 +0000 (19:58 +0000)]
build kvm kernel

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

13 years agorename file to be in sync with step 1 in docs
Dobrica Pavlinusic [Fri, 13 May 2011 19:55:42 +0000 (19:55 +0000)]
rename file to be in sync with step 1 in docs

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

13 years agochown image file and require sudo to run
Dobrica Pavlinusic [Fri, 13 May 2011 19:48:28 +0000 (19:48 +0000)]
chown image file and require sudo to run

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

13 years agoinstall required packages
Dobrica Pavlinusic [Fri, 13 May 2011 19:41:08 +0000 (19:41 +0000)]
install required packages

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

13 years agocreate kvm rootfs
Dobrica Pavlinusic [Fri, 13 May 2011 19:33:24 +0000 (19:33 +0000)]
create kvm rootfs

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

13 years agoBegin following http://www.landley.net/lxc/
Dobrica Pavlinusic [Fri, 13 May 2011 19:32:53 +0000 (19:32 +0000)]
Begin following http://www.landley.net/lxc/

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

13 years agoinstall debootstrap
Dobrica Pavlinusic [Sat, 7 May 2011 12:35:18 +0000 (12:35 +0000)]
install debootstrap

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

13 years agocorrect sulogin counting
Dobrica Pavlinusic [Tue, 29 Mar 2011 18:02:44 +0000 (18:02 +0000)]
correct sulogin counting

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

13 years agoremote device rw on start
Dobrica Pavlinusic [Tue, 29 Mar 2011 18:00:40 +0000 (18:00 +0000)]
remote device rw on start

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

13 years agoremount rootfs before start to fix debian upgrades
Dobrica Pavlinusic [Thu, 24 Mar 2011 16:40:46 +0000 (16:40 +0000)]
remount rootfs before start to fix debian upgrades

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

13 years agoremove function bash-isam
Dobrica Pavlinusic [Sun, 13 Feb 2011 19:39:00 +0000 (19:39 +0000)]
remove function bash-isam

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

13 years agoupstream is now git
Dobrica Pavlinusic [Fri, 11 Feb 2011 17:25:08 +0000 (17:25 +0000)]
upstream is now git

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

13 years agoand load modules
Dobrica Pavlinusic [Thu, 3 Feb 2011 14:49:41 +0000 (14:49 +0000)]
and load modules

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

13 years agocompile it
Dobrica Pavlinusic [Thu, 3 Feb 2011 14:49:19 +0000 (14:49 +0000)]
compile it

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

13 years agodownload latest compcache
Dobrica Pavlinusic [Thu, 3 Feb 2011 14:48:22 +0000 (14:48 +0000)]
download latest compcache

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

13 years agoremote checkfs.sh from squeeze
Dobrica Pavlinusic [Wed, 26 Jan 2011 18:56:17 +0000 (18:56 +0000)]
remote checkfs.sh from squeeze

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

13 years agofix console condition, restart now works
Dobrica Pavlinusic [Wed, 26 Jan 2011 12:16:23 +0000 (12:16 +0000)]
fix console condition, restart now works

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

13 years agouse only first ip address
Dobrica Pavlinusic [Tue, 25 Jan 2011 14:40:42 +0000 (14:40 +0000)]
use only first ip address

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

13 years agoremote checkroot.sh used by squeeze
Dobrica Pavlinusic [Sat, 22 Jan 2011 16:07:46 +0000 (16:07 +0000)]
remote checkroot.sh used by squeeze

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

13 years agocleanup ip address and insert it into /etc/hosts inside container
Dobrica Pavlinusic [Sun, 24 Oct 2010 12:23:20 +0000 (12:23 +0000)]
cleanup ip address and insert it into /etc/hosts inside container

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

13 years agoextract lxc_hostname and lxc_ip into functions
Dobrica Pavlinusic [Sun, 24 Oct 2010 11:55:02 +0000 (11:55 +0000)]
extract lxc_hostname and lxc_ip into functions

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

13 years agoreboot linux kernel on panic after x seconds
Dobrica Pavlinusic [Tue, 19 Oct 2010 21:41:12 +0000 (21:41 +0000)]
reboot linux kernel on panic after x seconds

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

13 years agoload usbmon and mount debugfs
Dobrica Pavlinusic [Fri, 15 Oct 2010 20:37:08 +0000 (20:37 +0000)]
load usbmon and mount debugfs

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

13 years agofix ip address display
Dobrica Pavlinusic [Sat, 11 Sep 2010 12:19:12 +0000 (12:19 +0000)]
fix ip address display

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

13 years agoextract ip from config file
Dobrica Pavlinusic [Sat, 11 Sep 2010 11:51:37 +0000 (11:51 +0000)]
extract ip from config file

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

13 years agodon't try to start containers without rootfs mounted
Dobrica Pavlinusic [Tue, 7 Sep 2010 16:02:12 +0000 (16:02 +0000)]
don't try to start containers without rootfs mounted

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

13 years agooverwrite /etc/hostname from name of lxc
Dobrica Pavlinusic [Tue, 10 Aug 2010 17:03:15 +0000 (17:03 +0000)]
overwrite /etc/hostname from name of lxc

This allows us to make clones with different name right after boot

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

13 years agoload ipmi modules
Dobrica Pavlinusic [Thu, 22 Jul 2010 12:00:08 +0000 (12:00 +0000)]
load ipmi modules

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