RootServer EX4: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
/etc/mdadm/mdadm.conf
K (Die Seite wurde neu angelegt: „Der Server ist nun ein EX4 von Hetzner. Basis ist Ubuntu 12.04 LTS, 64bit == Partitionierung == {| |- | 1 | swap | /dev/sda1 | /dev/md0 | swap sollte ca. …“) |
K (x) |
||
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
Zeile 6: | Zeile 6: | ||
|- | |- | ||
| 1 | | 1 | ||
| | | /boot | ||
| /dev/sda1 | | /dev/sda1 | ||
| /dev/md0 | | /dev/md0 | ||
| | | für /boot langt ca. 512MB locker, es müssen ja nur ein paar Kernels Platz haben: 512MB | ||
|- | |- | ||
| 2 | | 2 | ||
| | | vg0 | ||
| /dev/sda2 | | /dev/sda2 | ||
| /dev/md1 | | /dev/md1 | ||
| | | LVM | ||
|} | |||
== Locigal Volumes == | |||
{| | |||
|- | |||
| 1 | |||
| swap | |||
| /dev/mapper/vg0-swap | |||
| swap sollte ca. min. die gleiche Größe haben wie der Arbeitsspeicher: 16BG | |||
|- | |||
| 2 | |||
| /tmp | |||
| /dev/mapper/vg0-tmp | |||
| tmp-files: 10GB | |||
|- | |- | ||
| 3 | | 3 | ||
| /var | | /var | ||
| /dev/ | | /dev/mapper/vg0-tmp | ||
| Logfiles und Co: 20GB | |||
| | |||
|- | |- | ||
| 4 | | 4 | ||
| / | | / | ||
| /dev/ | | /dev/mapper/vg0-root | ||
| Betriebssystem: 20GB | |||
| Betriebssystem: | |||
|- | |- | ||
| 5 | | 5 | ||
| / | | /srv/mysql | ||
| /dev/ | | /dev/mapper/vg0-mysql | ||
| MySQL-Datenfiles, für mylvmbackup: 50GB | |||
| | |||
|- | |- | ||
| 6 | | 6 | ||
| / | | /srv/mail | ||
| /dev/ | | /dev/mapper/vg0-mail | ||
| Mailboxen: 200GB | |||
| | |||
|- | |- | ||
| 7 | | 7 | ||
| / | | /home | ||
| /dev/ | | /dev/mapper/vg0-home | ||
| home-dirs: 100GB | |||
| | |||
|- | |- | ||
| 8 | | 8 | ||
| /srv/www | | /srv/www | ||
| /dev/ | | /dev/mapper/vg0-www | ||
| Web: 1000GB | |||
| Web: | |||
|} | |} | ||
== /autosetup == | |||
<br> <source lang="bash">## ==================== | |||
## HARD DISK DRIVE(S): | |||
## ==================== | |||
DRIVE1 /dev/sda | |||
DRIVE2 /dev/sdb | |||
# | |||
# ## =============== | |||
# ## SOFTWARE RAID: | |||
# ## =============== | |||
# | |||
# ## activate software RAID? < 0 | 1 > | |||
# | |||
SWRAID 1 | |||
# | |||
# ## Choose the level for the software RAID < 0 | 1 > | |||
# | |||
SWRAIDLEVEL 1 | |||
# | |||
# ## ============ | |||
# ## BOOTLOADER: | |||
# ## ============ | |||
# | |||
# | |||
# ## do not change this for CentOS or Ubuntu 12.04 (grub only)!: | |||
# | |||
BOOTLOADER grub | |||
# | |||
# ## ========== | |||
# ## HOSTNAME: | |||
# ## ========== | |||
# | |||
HOSTNAME servername | |||
# | |||
# ## ========================== | |||
# ## PARTITIONS / FILESYSTEMS: | |||
# ## ========================== | |||
# | |||
# | |||
# ## define your partitions and filesystems like this: | |||
# ## | |||
# ## PART <mountpoint/lvm> <filesystem/VG> <size in MB> | |||
# ## | |||
# ## * <mountpoint/lvm> mountpoint for this filesystem *OR* keyword 'lvm' | |||
# ## to use this PART as volume group (VG) for LVM | |||
# ## * <filesystem/VG> can be ext2, ext3, reiserfs, xfs, swap *OR* name | |||
# ## of the LVM volume group (VG), if this PART is a VG | |||
# ## * <size> you can use the keyword 'all' to assign all the | |||
# ## remaining space of the drive to the *last* partition. | |||
# ## you can use M/G/T for unit specification in MIB/GIB/TIB | |||
# ## | |||
# ## notes: | |||
# ## - extended partitions are created automatically | |||
# ## - '/boot' cannot be on a xfs filesystem! | |||
# ## - '/boot' cannot be on LVM! | |||
# ## - when using software RAID 0, you need a '/boot' partition | |||
# ## | |||
# ## to activate LVM, you have to define volume groups and logical volumes | |||
# ## | |||
# ## example with LVM: | |||
# # | |||
# ## normal filesystems and volume group definitions: | |||
# ## -> 512MB boot (not on lvm) | |||
# ## -> all the rest for LVM VG 'vg0' | |||
PART /boot ext4 512M | |||
PART lvm vg0 all | |||
# # | |||
# ## logical volume definitions: | |||
# #LV <VG> <name> <mount> <filesystem> <size> | |||
# # | |||
LV vg0 swap swap swap 16G | |||
LV vg0 tmp /tmp ext4 10G | |||
LV vg0 var /var ext4 20G | |||
LV vg0 root / ext4 20G | |||
LV vg0 mysql /srv/mysql ext4 50G | |||
LV vg0 mail /srv/mail ext4 200G | |||
LV vg0 home /home ext4 100G | |||
LV vg0 www /srv/www ext4 1000G | |||
## ======================== | |||
## OPERATING SYSTEM IMAGE: | |||
## ======================== | |||
IMAGE /root/.oldroot/nfs/install/../images/Ubuntu-1204-precise-64-minimal.tar.gz</source><br> | |||
<br> | |||
== /etc/mdadm/mdadm.conf<br> == | |||
<source lang="bash"># definitions of existing MD arrays | |||
ARRAY /dev/md/0 metadata=1.2 UUID=16bdaa62:6fa06017:212faf53:c8001c0c name=rescue:0 | |||
ARRAY /dev/md/1 metadata=1.2 UUID=3d6aac5b:004a6e9b:b064fcfd:8f29008d name=rescue:1</source> | |||
== Links == | |||
*http://wiki.hetzner.de/index.php/Betriebssystem_Images_installieren<br> | |||
*http://wiki.hetzner.de/index.php/Eigene_Images_installieren<br> | |||
<br> | |||
<br> | |||
<br> | |||
[[Category:Linux]] [[Category:Ubuntu]] | [[Category:Linux]] [[Category:Ubuntu]] | ||
Aktuelle Version vom 20. August 2012, 18:20 Uhr
Der Server ist nun ein EX4 von Hetzner. Basis ist Ubuntu 12.04 LTS, 64bit
Partitionierung
1 | /boot | /dev/sda1 | /dev/md0 | für /boot langt ca. 512MB locker, es müssen ja nur ein paar Kernels Platz haben: 512MB |
2 | vg0 | /dev/sda2 | /dev/md1 | LVM |
Locigal Volumes
1 | swap | /dev/mapper/vg0-swap | swap sollte ca. min. die gleiche Größe haben wie der Arbeitsspeicher: 16BG |
2 | /tmp | /dev/mapper/vg0-tmp | tmp-files: 10GB |
3 | /var | /dev/mapper/vg0-tmp | Logfiles und Co: 20GB |
4 | / | /dev/mapper/vg0-root | Betriebssystem: 20GB |
5 | /srv/mysql | /dev/mapper/vg0-mysql | MySQL-Datenfiles, für mylvmbackup: 50GB |
6 | /srv/mail | /dev/mapper/vg0-mail | Mailboxen: 200GB |
7 | /home | /dev/mapper/vg0-home | home-dirs: 100GB |
8 | /srv/www | /dev/mapper/vg0-www | Web: 1000GB |
/autosetup
## ====================
## HARD DISK DRIVE(S):
## ====================
DRIVE1 /dev/sda
DRIVE2 /dev/sdb
#
# ## ===============
# ## SOFTWARE RAID:
# ## ===============
#
# ## activate software RAID? < 0 | 1 >
#
SWRAID 1
#
# ## Choose the level for the software RAID < 0 | 1 >
#
SWRAIDLEVEL 1
#
# ## ============
# ## BOOTLOADER:
# ## ============
#
#
# ## do not change this for CentOS or Ubuntu 12.04 (grub only)!:
#
BOOTLOADER grub
#
# ## ==========
# ## HOSTNAME:
# ## ==========
#
HOSTNAME servername
#
# ## ==========================
# ## PARTITIONS / FILESYSTEMS:
# ## ==========================
#
#
# ## define your partitions and filesystems like this:
# ##
# ## PART <mountpoint/lvm> <filesystem/VG> <size in MB>
# ##
# ## * <mountpoint/lvm> mountpoint for this filesystem *OR* keyword 'lvm'
# ## to use this PART as volume group (VG) for LVM
# ## * <filesystem/VG> can be ext2, ext3, reiserfs, xfs, swap *OR* name
# ## of the LVM volume group (VG), if this PART is a VG
# ## * <size> you can use the keyword 'all' to assign all the
# ## remaining space of the drive to the *last* partition.
# ## you can use M/G/T for unit specification in MIB/GIB/TIB
# ##
# ## notes:
# ## - extended partitions are created automatically
# ## - '/boot' cannot be on a xfs filesystem!
# ## - '/boot' cannot be on LVM!
# ## - when using software RAID 0, you need a '/boot' partition
# ##
# ## to activate LVM, you have to define volume groups and logical volumes
# ##
# ## example with LVM:
# #
# ## normal filesystems and volume group definitions:
# ## -> 512MB boot (not on lvm)
# ## -> all the rest for LVM VG 'vg0'
PART /boot ext4 512M
PART lvm vg0 all
# #
# ## logical volume definitions:
# #LV <VG> <name> <mount> <filesystem> <size>
# #
LV vg0 swap swap swap 16G
LV vg0 tmp /tmp ext4 10G
LV vg0 var /var ext4 20G
LV vg0 root / ext4 20G
LV vg0 mysql /srv/mysql ext4 50G
LV vg0 mail /srv/mail ext4 200G
LV vg0 home /home ext4 100G
LV vg0 www /srv/www ext4 1000G
## ========================
## OPERATING SYSTEM IMAGE:
## ========================
IMAGE /root/.oldroot/nfs/install/../images/Ubuntu-1204-precise-64-minimal.tar.gz
/etc/mdadm/mdadm.conf
# definitions of existing MD arrays
ARRAY /dev/md/0 metadata=1.2 UUID=16bdaa62:6fa06017:212faf53:c8001c0c name=rescue:0
ARRAY /dev/md/1 metadata=1.2 UUID=3d6aac5b:004a6e9b:b064fcfd:8f29008d name=rescue:1
Links
- http://wiki.hetzner.de/index.php/Betriebssystem_Images_installieren
- http://wiki.hetzner.de/index.php/Eigene_Images_installieren