iBug
May 27, 2023
Problem 1: Looking up server IP addresses every once in a while
Solution 1: Assign static IP addresses to servers
Solution 2: Assign DNS resolution to servers
acsalab.com
Current state: Both solutions applied
Problem 2: Any server outage requires a visit to the datacenter
Intelligent Platform Management Interface: Computer interface for remote management
Usually implemented through a Baseboard Management Controller (BMC)
root@rosemary:~# ipmitool lan print 1
Set in Progress : Set Complete
Auth Type Support : MD5
Auth Type Enable : Callback : MD5
: User : MD5
: Operator : MD5
: Admin : MD5
: OEM : MD5
IP Address Source : Static Address
IP Address : 10.38.79.1
Subnet Mask : 255.255.255.0
MAC Address : d0:50:99:f1:92:d4
SNMP Community String : AMI
IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 0.0 seconds
Default Gateway IP : 10.38.79.254
Default Gateway MAC : d8:67:d9:70:e9:41
Backup Gateway IP : 0.0.0.0
Backup Gateway MAC : 00:00:00:00:00:00
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
Bad Password Threshold : 0
Invalid password disable: no
Attempt Count Reset Int.: 0
User Lockout Interval : 0
root@rosemary:~#
Solution: Obvious
Benefits:
Problem 3: Internet access for servers
Linux has a full-fledged network stack with routing and NAT capabilities.
Care must be taken when setting up the network
ibug@snode6:~$ ip ru
0: from all lookup local
2: from all lookup main
3: from 202.38.72.23 lookup 1
10: from all lookup 2
32766: from all lookup main
32767: from all lookup default
ibug@snode6:~$ ip r s t 1
default via 202.38.72.126 dev enp0 proto static
ibug@snode6:~$ ip r s t 2
114.214.160.0/19 via 202.38.72.126 dev enp0 proto static
114.214.192.0/18 via 202.38.72.126 dev enp0 proto static
202.38.64.0/19 via 202.38.72.126 dev enp0 proto static
210.45.64.0/20 via 202.38.72.126 dev enp0 proto static
210.45.112.0/20 via 202.38.72.126 dev enp0 proto static
211.86.144.0/20 via 202.38.72.126 dev enp0 proto static
222.195.64.0/19 via 202.38.72.126 dev enp0 proto static
ibug@snode6:~$ ip r s t default
default via 10.1.13.1 dev ibs1 proto static metric 50
default via 202.38.72.126 dev enp0 proto static metric 100
Solution: Route server internet access through NFS server. Further routing and splitting only needs to be done there.
Problem: NFS was slow and frequently running out of space
fsck
requiredls ~/.zfs
Problem: Server access is very inconsistent.
The Lightweight Directory Access Protocol is an industry standard protocol for managing directory information services.
libc
module for integrating various information providers
slapd
serverlibpam-ldapd
+ libnss-ldapd
Where to install server software?
Sudo rule: Trust-based, granted on request.
usermod -aG
).The famous "sudo warning":
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.