CORRECT TEXT
CORRECT TEXT SELinux must be running in the Enforcing mode.View AnswerAnswer: getenforce // Check the current mode of SELinux // SELinux runs in enforcing mode // Check getenforce 1 getenforce vim /etc/selinux/config selinux=enforcing // To temporarily enable SELinux wg sestatus
CORRECT TEXT
CORRECT TEXT Part 2 (on Node2 Server) Task 1 [Controlling the Boot Process] Interrupt the boot process and reset the root password. Change it to kexdrams to gain access to the systemView AnswerAnswer: *
CORRECT TEXT
CORRECT TEXT Add a new logical partition having size 100MB and create the data which will be the mount point for the new partition.View AnswerAnswer:
CORRECT TEXT
CORRECT TEXT One Logical Volume named /dev/test0/testvolume1 is created. The initial Size of that disk is 100MB now you required more 200MB. Increase the size of Logical Volume, size should be increase on online.View AnswerAnswer: ✑ lvextend -L+200M /dev/test0/testvolume1 Use lvdisplay /dev/test0/testvolume1) ✑ ext2online -d /dev/test0/testvolume1 lvextend command is used...
Find all the files or directories with Lucy as the owner, and copy to /tmp/findfiles directory.
Find all the files or directories with Lucy as the owner, and copy to /tmp/findfiles directory.View AnswerAnswer: (1) find /etc -size 10k -exec cp {} /tmp/findfiles ; (2) find / -user lucy -exec cp -a {} /tmp/findfiles ; Note: If find users and permissions, you need to use cp -...
CORRECT TEXT
CORRECT TEXT Create one partitions having size 100MB and mount it on data.View AnswerAnswer:
CORRECT TEXT
CORRECT TEXT Open kmcrl value of 5, and can verify in /proc/ cmdlineView AnswerAnswer: # vim /boot/grub/grub.conf kernel/vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/GLSvg- GLSrootrd_LVM_LV=GLSvg/GLSroot rd_LVM_LV=GLSvg/GLSswaprd_NO_LUKSrd_NO_MDrd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet kmcrl=5 Restart to take effect and verification: # cat /proc/cmdline ro root=/dev/mapper/GLSvg-GLSroot rd_LVM_LV=GLSvg/GLSroot rd_LVM_LV=GLSvg/GLSswap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us...
CORRECT TEXT
CORRECT TEXT Configure your web services, download from http://instructor.example.com/pub/serverX.html And the services must be still running after system rebooting.View AnswerAnswer: cd /var/www/html wget http://instructor.example.com/pub/serverX.html mv serverX.html index.html /etc/init.d/httpd restart chkconfig httpd on
CORRECT TEXT
CORRECT TEXT Create one partitions having size 100MB and mount it on data.View AnswerAnswer:
CORRECT TEXT
CORRECT TEXT Part 2 (on Node2 Server) Task 4 [Managing Logical Volumes] Resize the logical volume, lvrz and reduce filesystem to 4600 MiB. Make sure the the filesystem contents remain intact with mount point /datarz (Note: partitions are seldom exactly the size requested, so anything within the range of 4200MiB...