InstProd

This is my guide to install production servers...

Per distro

Ubuntu 16.04

Partitionning

NAME                 MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
vda                  253:0    0   20G  0 disk 
|-vda1               253:1    0  476M  0 part /boot
`-vda2               253:2    0  9.3G  0 part 
  |-systemvm-slash   252:0    0    4G  0 lvm  /
  |-systemvm-swap    252:1    0  256M  0 lvm  [SWAP]
  |-systemvm-tmp     252:2    0  200M  0 lvm  /tmp
  |-systemvm-var_log 252:3    0  200M  0 lvm  /var/log
  |-systemvm-home    252:4    0   52M  0 lvm  /home
  |-systemvm-var     252:5    0    1G  0 lvm  /var
  `-systemvm-var_tmp 252:6    0  100M  0 lvm  /var/tmp
/dev/mapper/systemvm-slash    3.9G  810M  3.0G  21% /
/dev/mapper/systemvm-home      47M  842K   42M   2% /home
/dev/mapper/systemvm-var      994M  261M  698M  28% /var
/dev/vda1                     453M   52M  398M  12% /boot
/dev/mapper/systemvm-tmp      190M  1.6M  175M   1% /tmp
/dev/mapper/systemvm-var_log  190M   21M  162M  12% /var/log
/dev/mapper/systemvm-var_tmp   93M  1.6M   85M   2% /var/tmp
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/systemvm-slash /               ext4    errors=remount-ro 0       1
# /boot was on /dev/vda1 during installation
UUID=b78920e5-4c99-4bfc-8123-76079171ecf5 /boot           ext4    defaults        0       2
/dev/mapper/systemvm-home /home           ext4    nodev,nosuid    0       2
/dev/mapper/systemvm-tmp /tmp            ext4    nodev,nosuid           0       2
/dev/mapper/systemvm-var /var            ext4    defaults        0       2
/dev/mapper/systemvm-var_log /var/log        ext4    noatime,nodiratime,nodev,nosuid,noexec 0       2
/dev/mapper/systemvm-var_tmp /var/tmp            ext4    nodev,nosuid           0       2
/dev/mapper/systemvm-swap none            swap    sw              0       0

Packages

Remove:
Add: htop vim psmisc lsof 

Clean

CentOS 7

Partitionning

NAME                 MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
vda                  252:0    0   10G  0 disk 
|-vda1               252:1    0  500M  0 part /boot
`-vda2               252:2    0  7,8G  0 part 
  |-systemvm-slash   253:0    0    4G  0 lvm  /
  |-systemvm-swap    253:1    0  256M  0 lvm  [SWAP]
  |-systemvm-home    253:2    0   52M  0 lvm  /home
  |-systemvm-var     253:3    0    1G  0 lvm  /var
  |-systemvm-var_log 253:4    0  200M  0 lvm  /var/log
  |-systemvm-tmp     253:5    0  200M  0 lvm  /tmp
  `-systemvm-var_tmp 253:6    0  100M  0 lvm  /var/tmp
/dev/mapper/systemvm-slash     3,9G    880M  2,8G  24% /
/dev/vda1                      477M     43M  406M  10% /boot
/dev/mapper/systemvm-var       976M     97M  812M  11% /var
/dev/mapper/systemvm-home       47M    1,1M   42M   3% /home
/dev/mapper/systemvm-tmp       190M    1,6M  175M   1% /tmp
/dev/mapper/systemvm-var_tmp    93M    1,6M   85M   2% /var/tmp
/dev/mapper/systemvm-var_log   190M    4,2M  172M   3% /var/log
#
# /etc/fstab
# Created by anaconda on Thu Jun  2 16:31:40 2016
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/systemvm-slash /                       ext4    defaults        1 1
UUID=9415d57f-ff4d-4081-811e-e963c890ba3e /boot                   ext4    defaults        1 2
/dev/mapper/systemvm-home /home                   ext4    nodev,nosuid        1 2
/dev/mapper/systemvm-tmp /tmp                    ext4    nodev,nosuid        1 2
/dev/mapper/systemvm-var /var                    ext4    defaults        1 2
/dev/mapper/systemvm-var_log /var/log                ext4    noatime,nodiratime,nodev,nosuid,noexec        1 2
/dev/mapper/systemvm-var_tmp /var/tmp                ext4    nodev,nosuid        1 2
/dev/mapper/systemvm-swap swap                    swap    defaults        0 0

Packages

Remove: postfix NetworkManager* wpa_supplicant avahi*
Add: epel-release; htop vim psmisc lsof 

Clean

Commands

lsblk -i df -h | grep '^/'

Page last modified on June 02, 2016, at 11:22 PM EST