Mrepo.v7

From Access Information
Jump to: navigation, search


Installing New Server Mrepo smartd RAID Hardening YUM Crontabs LogWatch systemctl firewalld CentOS 7
Packages
Apache Bind Cacti DHCP mariadb Samba Sarg Sendmail Smokeping Rsync Work Apps
Problems VPN VPN Win Extras Bash MailScanner Horde Google CE Wake Up KVM
Other Computer Lab ISO2USB aiContact Google CE Android USB Live SRS XML


Working from a burnt dvd of Centos v7 I have found getting the disks setup they way I wanted rather difficult.

Setup

Where as previously you would

  1. Partition the drives (say creating raid partitions)
  2. Join the raid partitions together in the deisred RAID array configuration
  3. Format the raid in the format of your choice or
  4. Make the raid an LVM
  5. Format the parts of the lvm in the format of your choice

Currently I have

  1. Dropped down to shell
  2. Used fdisk to make the primary partitions in the format I want, as RAID and swap
  3. Rebooted
  4. Now in the setup, in the disk management portion I have the RAID parts I can work with

What I believe I could have done was

  1. In the disk management
  2. Create the deired mount point /boot
  3. In to that mount point define that I want it to be a RAID
  4. In to that RAID define that I want /dev/sda
  5. Of /dev/sda create a raid defined partion of a desired size
  6. Do the same for /dev/sdb
  7. Join /dev/sda1 & /dev/sdb1 together as a RAID 1

This is how I think it should work, but do not know yet.

No local mrepo was used.

Partitions

Custom Hard Disk setup which would generally be raid based.

Under Centos 7, there is a whole new way of doing custome partitions, and if your systems is EFI, then you need a /boot/efi partition for booting. This cuases a different issue as I like to RAID my boot partitions!

https://www.centos.org/forums/viewtopic.php?f=13&t=46952

I have created a /boot/efi partition in a /dev/md0 (RAID1 drive)
  • You can't do this. The EFI specification mandates that the firmware recognise a FAT32 partition as the EFI System Partition. The firmware cannot recognise Linux Software RAID as an EFI System Partition.
  • The correct way is to install your /boot and / and other filesystems on software RAID, and to duplicate the FAT32 partition in sda1 onto sdb1, then create another EFI firmware boot menu entry pointing to the backup partition.

So to created the needed partitions:

  1. Create your first partition, as a Standard Partition, /boot/efi.
    1. Edit this partition so it sites on /dev/sda1
  2. Create your second partition, as a Standard Partition, /efitemp
    1. Edit this partition so it sites on /dev/sdb1
    2. To get the partition on the desired HD, click the spanner/screwdriver and click the HD you want the partition on.
    3. And Update Settings
  3. Create a partition for /boot
    1. Having created the partition which at this point would be a standard xfs on a HD,
    2. Click standard partition and change it to RAID
    3. Below this choose the RAID type as RAID1
    4. You may have to work things a bit to get the numbering consistent. I might just be being fussy but I kind of like consistent.
    5. And Update Settings
  4. Create a swap partition on sda
  5. Create a same size partion on sdb, not as swap but just to keep a bit of order.
  6. Create a partition of / say 32GB
    1. Edit Standard Partition to be LVM
    2. Modify LVM with a meaningful name and a raid type of RAID1

Set partition size to automatic, threfore as we add more partitions to the LVM it will grow a ne1eded.

    1. Save
    2. And Update Settings
  1. Create a partition of /var say 50GB
    1. Edit Standard Partition to be LVM
    2. Modify LVM with a meaningful name and a raid type of RAID1
    3. Save
    4. And Update Settings
  2. Create a partition of /tmp say 5GB
    1. Edit Standard Partition to be LVM
    2. Modify LVM with a meaningful name and a raid type of RAID1
    3. Save
    4. And Update Settings
  3. Create /home and other partitions as needed
  4. Click Done
  5. Click accept changes

Under server selection I choose Server with GUI, and select the Modules I think I will need.

At the main install screen Click Begin Installation

While this is loading modules, create the root password and your administrator user.


Packages

A minimal install

Once all the packages have been installed you will need to reboot.

  1. I may then add a GUI
    1. yum groupinstall "KDE Desktop"
    2. yum groupinstall "X Window System"
    3. Then run startx.
  2. This gives me a GUI
  3. Now nano /etc/inittab
    1. And change id:3:initdefault: to id:5:initdefault:
  4. Reboot and make sure the server restarts as expected.
  5. After the reboot you will need to set up a few areas:
    1. This may not be in order.
    2. Firewall: I totally disable and set this up manually from my firewall script.
    3. selinux: I totally disable.
    4. Sound card: I ignore
    5. Users: I set up my first user, which is generally the same for all my servers.
    6. This will become your main administrational user, as root is not commonially used, for security reasons.
    7. REBOOT
  • Did you find this page useful?
  • Do you have an issue that you have not yet fixed?

We can do this for you.

I am available for technical support. Please follow this link. Tech Support Request.
+64-6-880-0000 : ++1-808-498-7146 : help@ai.net.nz
Getting us to help you