Athena.quadratic.net

From Federal Burro of Information
Revision as of 17:40, 5 May 2012 by David (talk | contribs) (→‎Disk)
Jump to navigationJump to search

Overview

  • replaces cydonia
  • Home server
  • gentoo
  • On the end of a tek savvy connection with static IP.
  • motherboard: D945GCLF
  • processor: atom 230 (64 bit profile) intel product page
  • onboard realtek wasn't working very good on cydonia, is working great now.
  • might be issues with random number generator.

Todo

  • disk clean up
  • Security
    • chkrootkit
    • nessus
    • snort
    • acid
    • aide
  • irssi
  • Pathchar
  • gnuplot
  • ipv6
  • Backups
    • mysql - done
    • code
    • wiki
    • etc

Disk

blkid

WDC WD1200JD-00G 120GB
/dev/sda1: LABEL="DISK2S1" UUID="3224-1BD9" TYPE="vfat"

ST3120827AS 120GB
/dev/sdb1: LABEL="BOOT" UUID="e1380799-31c9-4fe9-a1ff-0113e08be218" SEC_TYPE="ext2" TYPE="ext3"

ST3320620AS 320GB
/dev/sdc1: LABEL="BOOT" UUID="f91862c9-488c-4567-b82a-1d38bc0310ba" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc2: UUID="b2665415-fa5a-4486-beaf-3a0278a716a8" TYPE="swap"
/dev/sdc3: UUID="603dee13-f28e-4c53-bf4d-bd255f46c229" TYPE="ext3" LABEL="VAR"
/dev/sdc4: UUID="950356e3-2d28-4176-a250-45f56df94d61" TYPE="ext3" LABEL="ROOT"

ST98823AS 80GB
/dev/sdd1: UUID="d13157a2-ba77-48a4-8829-55cd6a0ec518" TYPE="ext2"
/dev/sdd2: UUID="5d3471bf-ae1c-4286-aa7d-1a486d45c6b6" TYPE="swap"
/dev/sdd3: UUID="328df938-26d1-4cb9-b608-d22f64bde502" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdd4: UUID="0425f6cc-c1d6-4f26-bc7c-fbb72393b71a" SEC_TYPE="ext2" TYPE="ext3"

/sbin/fdisk -l /dev/sda

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf8ab449a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   234436544   117218241    b  W95 FAT32

/sbin/fdisk -l /dev/sdb

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
81 heads, 63 sectors/track, 45941 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000dcdfd

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   234441647   117219800   83  Linux

/sbin/fdisk -l /dev/sdc

Disk /dev/sdc: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x113e9d6b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048     1026047      512000   83  Linux
/dev/sdc2         1026048     5122047     2048000   82  Linux swap / Solaris
/dev/sdc3         5122048    13510655     4194304   83  Linux
/dev/sdc4        13510656   625142447   305815896   83  Linux

/sbin/fdisk -l /dev/sdd

Disk /dev/sdd: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6ddbb66d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *          63      996029      497983+  83  Linux
/dev/sdd2          996030     4915889     1959930   82  Linux swap / Solaris
/dev/sdd3         4915890    12739544     3911827+  83  Linux
/dev/sdd4        12739545   156296384    71778420   83  Linux

Bckups

Mysql

in /etc/logrotate.d/mysql:

/var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err {
monthly
create 660 mysql mysql
notifempty
size 5M
sharedscripts
missingok
postrotate
[ -f /var/run/mysqld/mysqld.pid ] && /bin/kill -HUP `cat /var/run/mysqld/mysqld.pid`
endscript
}

/data/backup/cydonia/mysql/dump.sql {
daily
rotate 14
missingok
compress
postrotate
/usr/bin/mysqldump --master-data=1 --single-transaction --flush-privileges --lock-tables --log-error=/var/log/mysql_backup.log --dump-date --opt --flush-logs --all-databases > /data/backup/cydonia/mysql/dump.sql
endscript
}

/var/log/mysql_backup.log {
daily
rotate 14
missingok
}

I need to setup a system to send the backup off site.


Media:Athena_Disk.vsd