RootServer EX4: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
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. …“)
 
(setup)
Zeile 6: Zeile 6:
|-
|-
| 1  
| 1  
| swap
| /boot
| /dev/sda1  
| /dev/sda1  
| /dev/md0  
| /dev/md0  
| swap sollte ca. min. die gleiche Größe haben wie der Arbeitsspeicher: 16BG
| für /boot langt ca. 512MB locker, es müssen ja nur ein paar Kernels Platz haben: 512MB
|-
|-
| 2  
| 2  
| /boot
| vg0
| /dev/sda2  
| /dev/sda2  
| /dev/md1  
| /dev/md1  
| für /boot langt ca. 1GB locker, es müssen ja nur ein paar Kernels Platz haben: 1GB
| 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/sda3
| /dev/mapper/vg0-tmp
| /dev/md2
| Logfiles und Co: 20GB
| (Logfiles): 30GB
|-
|-
| 4  
| 4  
| /  
| /  
| /dev/sda5
| /dev/mapper/vg0-root
| /dev/md3
| Betriebssystem: 20GB
| Betriebssystem: 30GB
|-
|-
| 5  
| 5  
| /tmp
| /srv/mysql
| /dev/sda5
| /dev/mapper/vg0-mysql
| /dev/md3
| MySQL-Datenfiles, für mylvmbackup: 50GB
| tmp-files: 10GB
|-
|-
| 6  
| 6  
| /home
| /srv/mail
| /dev/sda6
| /dev/mapper/vg0-mail
| /dev/md4
| Mailboxen: 200GB
| home-dirs: 10GB
|-
|-
| 7  
| 7  
| /srv/mysql
| /home
| /dev/lvm
| /dev/mapper/vg0-home
| /dev/md4
| home-dirs: 100GB
| MySQL-Datenfiles: 200GB
|-
|-
| 8  
| 8  
| /srv/www  
| /srv/www  
| /dev/lvm
| /dev/mapper/vg0-www
| /dev/md4
| Web: 1000GB
| Web: 2000GB
|}
|}
== /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>
== 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]]
[[Kategorie:Linux]]
[[Kategorie:Ubuntu]]

Version vom 17. August 2012, 21:11 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



Links