EX200 Korean試験無料問題集「RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version) 認定」
harry가 소유한 파일을 찾아 catalog: /opt/dir에 복사합니다.
正解:
# cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;
시스템에 로컬 논리 볼륨이 있는데, common으로 명명되고 VGSRV 볼륨 그룹에 속하며 /common 디렉토리에 마운트합니다. 크기 정의는 128MB입니다.
요구 사항:
데이터 손실 없이 논리 볼륨을 190MB까지 확장합니다.
a. 확장 후 허용 크기는 160-160MB입니다.
요구 사항:
데이터 손실 없이 논리 볼륨을 190MB까지 확장합니다.
a. 확장 후 허용 크기는 160-160MB입니다.
正解:
lvextend -L 190M /dev/mapper/vgsrv-common resize2fs /dev/mapper/vgsrv-common
iptables를 구성합니다. 네트워크에 두 개의 도메인이 있고 로컬 도메인의 주소는 172.24.0.0/16이고 다른 도메인은 172.25.0.0/16입니다. 이제 도메인 172.25.0.0/16이 서버에 접근하는 것을 거부합니다.
正解:
below
iptables -F
service iptables save
iptables -A INPUT -s 172.25.0.0/16 -j REJECT
service iptables save
service iptables restart
iptables -F
service iptables save
iptables -A INPUT -s 172.25.0.0/16 -j REJECT
service iptables save
service iptables restart
autofs를 구성하여 로그인이 성공적으로 완료된 후 홈 디렉토리 autofs가 있는지 확인합니다. 이 디렉토리는 /rhome/ldapuser40으로 공유되며 ip: 172.24.40.10에서 실행됩니다. 또한 다른 LDAP 사용자도 홈 디렉토리를 정상적으로 사용할 수 있어야 합니다.
正解:
# chkconfig autofs on
# cd /etc/
# vim /etc/auto.master
/rhome /etc/auto.ldap
# cp auto.misc auto.ldap
# vim auto.ladp
ldapuser40 -rw,soft,intr 172.24.40.10:/rhome/ldapuser40
* -rw,soft,intr 172.16.40.10:/rhome/&
# service autofs stop
# server autofs start
# showmount -e 172.24.40.10
# su - ladpuser40
# cd /etc/
# vim /etc/auto.master
/rhome /etc/auto.ldap
# cp auto.misc auto.ldap
# vim auto.ladp
ldapuser40 -rw,soft,intr 172.24.40.10:/rhome/ldapuser40
* -rw,soft,intr 172.16.40.10:/rhome/&
# service autofs stop
# server autofs start
# showmount -e 172.24.40.10
# su - ladpuser40
1부(Node1 서버)
작업 12 [네트워크 연결 스토리지 액세스]
autofs를 구성하여 사용자 remoteuserX의 홈 디렉토리를 자동 마운트합니다. 다음 사항에 유의하세요.
utility.domain15.example.com(172.25.15.9), NFS-exports /netdir, 여기서 사용자는 remoteuserX이고 X는 도메인 번호입니다. remoteuserX 홈 디렉토리는 utility.domain15.example.com:/netdir/remoteuserX입니다. remoteuserX 홈 디렉토리는 /netdir/remoteuserX로 로컬로 자동 마운트되어야 합니다. 홈 디렉토리는 사용자가 쓸 수 있어야 하며 시스템에서 액세스할 수 있는 유일한 홈 디렉토리인 remoteuserX로 로그인할 수 있어야 합니다.
작업 12 [네트워크 연결 스토리지 액세스]
autofs를 구성하여 사용자 remoteuserX의 홈 디렉토리를 자동 마운트합니다. 다음 사항에 유의하세요.
utility.domain15.example.com(172.25.15.9), NFS-exports /netdir, 여기서 사용자는 remoteuserX이고 X는 도메인 번호입니다. remoteuserX 홈 디렉토리는 utility.domain15.example.com:/netdir/remoteuserX입니다. remoteuserX 홈 디렉토리는 /netdir/remoteuserX로 로컬로 자동 마운트되어야 합니다. 홈 디렉토리는 사용자가 쓸 수 있어야 하며 시스템에서 액세스할 수 있는 유일한 홈 디렉토리인 remoteuserX로 로그인할 수 있어야 합니다.
正解:
* *
[root@host ~]#systemctl enable sssd.service
[root@host ~]#systemctl start sssg.service
[root@host ~]#getent passwd remoteuser15
[root@host ~]#yum install autofs
[root@host ~]#vim /etc/auto.master.d/home9.autofs
/netdir/remoteuser15 /etc/auto.home9
[root@host ~]#vim /etc/auto.home9
remoteuser15 -rw,sync utility.network15.example.com:/netdir/remoteuser15/&
[root@host ~]#systemctl enable autofs
[root@host ~]#systemctl restart autofs
[root@host ~]#su - remoteuser15
[root@host ~]#systemctl enable sssd.service
[root@host ~]#systemctl start sssg.service
[root@host ~]#getent passwd remoteuser15
[root@host ~]#yum install autofs
[root@host ~]#vim /etc/auto.master.d/home9.autofs
/netdir/remoteuser15 /etc/auto.home9
[root@host ~]#vim /etc/auto.home9
remoteuser15 -rw,sync utility.network15.example.com:/netdir/remoteuser15/&
[root@host ~]#systemctl enable autofs
[root@host ~]#systemctl restart autofs
[root@host ~]#su - remoteuser15
1부(Node1 서버)
작업 2 [소프트웨어 패키지 설치 및 업데이트]
이 위치를 기본 저장소로 사용하도록 시스템을 구성하세요.
http://utility.domain15.example.com/BaseOS
http://utility.domain15.example.com/AppStream
또한 이 위치를 사용하도록 GPG 키를 구성하세요.
http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
작업 2 [소프트웨어 패키지 설치 및 업데이트]
이 위치를 기본 저장소로 사용하도록 시스템을 구성하세요.
http://utility.domain15.example.com/BaseOS
http://utility.domain15.example.com/AppStream
또한 이 위치를 사용하도록 GPG 키를 구성하세요.
http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
正解:
* [root@node1 ~]# vim /etc/yum.repos.d/redhat.repo
[BaseOS]
name=BaseOS
baseurl=http://utility.domain15.example.com/BaseOS
enabled=1
gpgcheck=1
gpgkey=http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
[AppStream]
name=AppStream
baseurl=http://utility.domain15.example.com/AppStream
enabled=1
gpgcheck=1
gpgkey=http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
[root@node1 ~]# yum clean all
[root@node1 ~]# yum repolist
[root@node1 ~]# yum list all
[BaseOS]
name=BaseOS
baseurl=http://utility.domain15.example.com/BaseOS
enabled=1
gpgcheck=1
gpgkey=http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
[AppStream]
name=AppStream
baseurl=http://utility.domain15.example.com/AppStream
enabled=1
gpgcheck=1
gpgkey=http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
[root@node1 ~]# yum clean all
[root@node1 ~]# yum repolist
[root@node1 ~]# yum list all
시스템 최적화 구성
시스템에 맞는 권장 조정 구성 세트를 선택하여 기본값으로 설정합니다.
시스템에 맞는 권장 조정 구성 세트를 선택하여 기본값으로 설정합니다.
正解:
# Install and enable tuned
[root@node2 ~]# yum -y install tuned
[root@node2 ~]# systemctl enable tuned
[root@node2 ~]# systemctl restart tuned
# Check the recommended configuration scheme for the system
[root@node2 ~]# tuned-adm recommend
virtual-guest
# Switch to the specified configuration scheme
[root@node2 ~]# tuned-adm profile virtual-guest
# Check the current configuration scheme
[root@node2 ~]# tuned-adm active
Current active profile: virtual-guest
[root@node2 ~]# yum -y install tuned
[root@node2 ~]# systemctl enable tuned
[root@node2 ~]# systemctl restart tuned
# Check the recommended configuration scheme for the system
[root@node2 ~]# tuned-adm recommend
virtual-guest
# Switch to the specified configuration scheme
[root@node2 ~]# tuned-adm profile virtual-guest
# Check the current configuration scheme
[root@node2 ~]# tuned-adm active
Current active profile: virtual-guest
DNS 서버가 172.24.254.254인 server1.example.com을 성공적으로 확인했습니다.
正解:
vi /etc/resolv.conf
nameserver 172.24.254.254
host server1.example.com
On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolv from DNS server.
nameserver 172.24.254.254
host server1.example.com
On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolv from DNS server.
ftp://instructor.example.com/pub/updates에서 커널을 업데이트합니다.
다음 요구 사항에 따라:
업데이트된 커널은 시스템을 재부팅한 후에도 기본 커널로 존재해야 합니다.
원래 커널은 여전히 존재하며 시스템에서 사용할 수 있습니다.
다음 요구 사항에 따라:
업데이트된 커널은 시스템을 재부팅한 후에도 기본 커널로 존재해야 합니다.
원래 커널은 여전히 존재하며 시스템에서 사용할 수 있습니다.
正解:
rpm -ivh kernel-firm...
rpm -ivh kernel...
rpm -ivh kernel...
2부(Node2 서버)
작업 1 [부팅 프로세스 제어]
부팅 프로세스를 중단하고 루트 암호를 재설정합니다. kexdrams로 변경하여 시스템에 액세스합니다.
작업 1 [부팅 프로세스 제어]
부팅 프로세스를 중단하고 루트 암호를 재설정합니다. kexdrams로 변경하여 시스템에 액세스합니다.
正解:
* 1. Reboot the server pressing by Ctrl+Alt+Del
2. When the boot-loader menu appears, press the cursor keys to highlight the default boot-loader entry
3. Press e to edit the current entry.
4. Use the cursor keys to navigate to the line that starts with linux.
5. Press End to move the cursor to the end of the line.
6. Append rd.break to the end of the line.
7. Press Ctrl+x to boot using the modified configuration.
8. At the switch_root prompt
* switch_root:/# mount -o remount,rw /sysroot
switch_root:/# chroot /sysroot
sh-4.4# echo kexdrams | passwd --stdin root
Changing password for user root.
passwd: all authentication tokens updated successfully.
sh-4.4# touch /.autorelabel
sh-4.4# exit; exit
* Type exit twice to continue booting your system as usual.
2. When the boot-loader menu appears, press the cursor keys to highlight the default boot-loader entry
3. Press e to edit the current entry.
4. Use the cursor keys to navigate to the line that starts with linux.
5. Press End to move the cursor to the end of the line.
6. Append rd.break to the end of the line.
7. Press Ctrl+x to boot using the modified configuration.
8. At the switch_root prompt
* switch_root:/# mount -o remount,rw /sysroot
switch_root:/# chroot /sysroot
sh-4.4# echo kexdrams | passwd --stdin root
Changing password for user root.
passwd: all authentication tokens updated successfully.
sh-4.4# touch /.autorelabel
sh-4.4# exit; exit
* Type exit twice to continue booting your system as usual.