Eureka Installation: NIS Server - calab-ntu/gpu-cluster GitHub Wiki
Installation: Master
-
Reference
-
Network setting
- check and record the name of network interface (eg.
enp6s0
)ip link
- modify configure file for network
Enter the following informationvi /etc/netplan/50-cloud-init.yaml
network: ethernets: enp6s0: # <-- this is the name of network interface you just found addresses: [192.168.0.149/24] gateway4: 192.168.0.1 nameservers: addresses: [140.112.254.4] dhcp4: no
- apply the previous modification
netplan apply
- check network and DNS
ping www.google.com
- check and record the name of network interface (eg.
-
NIS master
-
apt-get update
-
apt-get install nis
-
optional
apt-get install yp-tools
-
optional
apt-get install nfs-kernel-server
-
vi /etc/default/nis
"NISSERVER=master" "SSERVER=master" "NISCLIENT=false"
-
vi /etc/ypserv.securenets
- comment out this line at end:
"0.0.0.0 0.0.0.0"
- append this line to the end.
For security reason, this step is very important!
"255.255.255.0 192.168.0.0"
- comment out this line at end:
-
vi /var/yp/Makefile
"MERGE_PASSWD=true" "MERGE_GROUP=true"
-
modify the host file
vi /etc/hosts
-
add users in sudo file
vi /etc/sudoers
-
give a new group name to NIS (eg. calab)
vi /etc/group
replace tumaz with new group name (eg. calab)
"tumaz:x:1000: "
-->"calab:x:1000: "
-
service portmap restart
-
service nis restart
-
ypserv status
-
-
trouble shooting
- check NIS domain name
$ nisdomainname
- modify the NIS domain name
vi /etc/defaultdomain
- apply the modifeid NIS domain name
/usr/lib/yp/ypinit -m ps -e | grep rpcbind rpcinfo -p ypserver ps -e | grep yp rpcinfo gamer04
- check NIS domain name
RAID1
-
Reference
- https://askubuntu.com/questions/1066028/install-ubuntu-18-04-desktop-with-raid-1-and-lvm-on-machine-with-uefi-bios
- https://help.ubuntu.com/community/UEFI#Set_up_the_BIOS_in_EFI_or_Legacy_mode
- https://help.ubuntu.com/community/Installation/FromUSBStick#Boot_and_install
- https://askubuntu.com/questions/1128810/no-efi-system-partition-option-for-ubuntu-18-10
-
OS ubuntu-18.04.3-live-server-amd64
-
UEFI (important!!!!)
-
enter the BIOS frequently hit
Del
during the boot process -
force BIOS to boot by UEFI instead of Legacy(default)
Advanced
->CSM Configuration
->Boot option filter
-> chooseUEFI only
-
make FAT32 filesystem for bootalbe USB (important!!!!)
- check the file system and the name of disk
lsblk -f
- umount "ALL" partitions in USB
umout /dev/sdb?
- make FAT32 filesystem for USB
choosefdisk /dev/sdb
n
choosep
hitEnter
hitEnter
hitEnter
- check the file system and the name of disk
-
clone OS into bootable USB (only work with FAT32)
dd if=ubuntu-18.04.3-live-server-amd64.iso of=/dev/sdb status=progress
Assuming
/dev/sdb
is your USB device -
Install Ubuntu
-
Choose manual partitioning select
Manual
-
Select available disks to format and mount 1.
-
choose any one of SSDs, say disk1
-
hit
Add Partition
-
Size:
20G
-
Format:
Leave unformatted
-
hit
create
-
- choose disk1
- hit
Add Partition
- Size:
leave blank
- Format:
Leave unformatted
- hit
create
-
make and reserve a partition for mirrored EFI 1.
- choose another SSD, say disk2
- hit
Add Partition
- Size:
512MB
- Format:
Leave unformatted
- hit
create
-
- choose disk2
- hit
Add Partition
- Size:
20G
- Format:
Leave unformatted
- hit
create
-
- choose disk2
- hit
Add Partition
- Size:
leave blank
- Format:
Leave unformatted
- hit
create
-
-
hit
create software RAID (md)
-
select a pair partitions as RAID 1
-
repeat Step3-4
-
hit
md1 (new)
(20G) -
select
Format
-
Format
SWAP
-
hit
md1 (new)
(211G) -
select
Format
-
Format
ext4
-
mount
/
-
hit
Done
-
-
checks
- Check which EFI partition has been mounted. Most
likely
/dev/sda1
.mount | grep boot
- watch RAID status. Most likely it is synchronizing. please wait patiently for synchronizition.
watch -n 0.5 cat /proc/mdstat
- Check which EFI partition has been mounted. Most
likely
-
Clone the existing EFI partition to the partition you just reserved for mirrored EFI
dd if=/dev/sda1 of=/dev/sdb1 status=progress
/dev/sda1
: the existing EFI partition/dev/sdb1
: mirrored EFI -
Insert the second boot partition into boot chain
- check the file name for the ubuntu boot entry. eg.
\EFI\UBUNTU\SHIMX64.EFI
efibootmgr -v
- insert the second boot pration(sdb) into boot chain
efibootmgr -c -d /dev/sdb -p 1 -L "tumaz2" -l \EFI\UBUNTU\SHIMX64.EFI
Assuming
/dev/sdb
is the partition to be mirrored EFI
- check the file name for the ubuntu boot entry. eg.
-
DONE!
Now the system should boot even if either of the drives fail!
QUOTA
-
installation
sudo apt update sudo apt install quota
-
report all user
repquota -s /
-
report specific user
quota -vs [user name]
-
set quota (unit: G, M, K)
setquota -u [user name] 200M 220M 0 0 /
-
set grace (unit: second)
setquota -t 864000 864000 /
-
Ref: