최신 EX200 Korean 무료덤프 - RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version)

2부(Node2 서버)
과제 8 [시스템 성능 튜닝]
권장되는 조정된 프로필을 사용하도록 서버를 설정하세요.
정답:
[root@node2 ~]# tuned-adm list
[root@node2 ~]# tuned-adm active
Current active profile: virtual-guest
[root@node2 ~]# tuned-adm recommend
virtual-guest
[root@node2 ~]# tuned-adm profile virtual-guest
[root@node2 ~]# tuned-adm active
Current active profile: virtual-guest
[root@node2 ~]# reboot
[root@node2 ~]# tuned-adm active
Current active profile: virtual-guest
다음 요구 사항에 따라 autofs 서비스를 구성하고 LDAP 도메인의 사용자 홈 디렉토리에 자동으로 마운트합니다.
- Instructor.example.com(192.168.0.254)은 NFS 내보내기 기능을 통해 /home/guests/ldapuserX 홈 디렉토리를 귀하의 시스템에 공유했습니다. X는 귀하의 호스트 이름 번호입니다.
- LdapuserX의 홈 디렉토리는 instructor.example.com에 존재합니다: /home/guests/ldapuserX
- LdapuserX의 홈 디렉토리는 시스템의 /home/guests/ldapuserX에 자동으로 마운트될 수 있어야 합니다.
- 홈 디렉토리에는 해당 사용자에게 쓰기 권한이 있습니다.
하지만 ldapuser1 - ldapuser99 사용자는 검증 후에 로그인할 수 있습니다. 하지만 해당 ldapuser 사용자만 가져올 수 있습니다. 시스템의 호스트 이름이 server1.example.com인 경우 ldapuser1의 홈 디렉토리만 가져올 수 있습니다.
정답:
mkdir -p /home/guests
cat /etc/auto.master:
/home/guests /etc/auto.ldap
cat /etc/auto.ldap:
ldapuser1 -rw instructor.example.com:/home/guests/ldapuser1
automatically mount all the user's home directory #* -rw instructor.example.com:/home/guests/&
다음 요구 사항에 따라 새로운 논리 볼륨을 생성하세요.
논리적 볼륨은 데이터베이스라는 이름을 가지고 있으며 데이터 저장소 볼륨 그룹에 속하며 크기는 50개 익스텐트입니다.
데이터 저장소 볼륨 그룹의 논리 볼륨은 16MB의 익스텐트 크기를 가져야 합니다.
새로운 논리 볼륨을 ext3 파일 시스템으로 포맷합니다.
논리 볼륨은 시스템 부팅 시 자동으로 /mnt/database에 마운트되어야 합니다.
정답:
fdisk -cu /dev/vda
partx -a /dev/vda
pvcreate /dev/vdax
vgcreate datastore /dev/vdax -s 16M
lvcreate-l 50 -n database datastore
mkfs.ext3 /dev/datastore/database
mkdir /mnt/database
mount /dev/datastore/database /mnt/database/ df -Th
vi /etc/fstab
/dev/datastore /database /mnt/database/ ext3 defaults 0 0 mount -a
귀하의 시스템은 192.168.0.0/24 네트워크로 구성되었으며 귀하의 네임서버는 192.168.0.254입니다. server1.example.com으로 성공적으로 해결하세요.
정답:
nameserver is specified in question,
1. Vi /etc/resolv.conf
nameserver 192.168.0.254
2. host server1.example.com
당신은 새로운 시스템 관리자이고 지금부터 시스템을 관리하게 될 것이고 당신의 주요 업무는 네트워크 모니터링, 백업 및 복원입니다. 하지만 루트 비밀번호를 모릅니다. 루트 비밀번호를 redhat으로 변경하고 기본 Runlevel로 로그인합니다.
정답:
When you Boot the System, it starts on default Runlevel specified in /etc/inittab:
Id:?:initdefault:
When System Successfully boot, it will ask for username and password. But you don't know the root's password. To change the root password you need to boot the system into single user mode. You can pass the kernel arguments from the boot loader.
1. Restart the System.
2. You will get the boot loader GRUB screen.
3. Press a and type 1 or s for single mode ro root=LABEL=/ rhgb queit s
4. System will boot on Single User mode.
5. Use passwd command to change.
6. Press ctrl+d
웹 서비스를 구성하고 http://instructor.example.com/pub/serverX.html에서 다운로드하세요. 그리고 시스템을 재부팅한 후에도 해당 서비스는 계속 실행 중이어야 합니다.
정답:
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
공유 디렉토리를 만듭니다.
공유 디렉토리 /home/admins를 만들고 다음과 같은 특징을 갖도록 합니다.
/home/admins는 그룹 adminuser에 속합니다.
이 디렉토리는 그룹 adminuser의 멤버가 읽고 쓸 수 있습니다. /home/admin에서 생성된 모든 파일은 자동으로 adminuser로 설정됩니다.
정답:
mkdir /home/admins
chgrp -R adminuser /home/admins
chmodg+w /home/admins
chmodg+s /home/admins
부팅 시 자동으로 적용되는 2G 스왑 파티션을 생성하면 원래 스왑 파티션에 영향을 미치지 않습니다.
정답:
# fdisk /dev/sda
p
(check Partition table)
n
(create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions) Enter
+2G
t
l
W
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)
다음과 같이 LDAP 사용자의 홈 디렉토리를 자동으로 마운트하도록 autofs를 구성합니다.
host.domain11.example.com은 /home을 시스템으로 NFS로 내보냅니다.
이 파일 시스템은 사용자 ldapuser11에 대한 미리 구성된 홈 디렉토리를 포함합니다. ldapuser11의 홈 디렉토리는 host.domain11.example.com /rhome/ldapuser11입니다. ldapuser11의 홈 디렉토리는 /rhome/ldapuser11로 로컬로 자동 마운트되어야 합니다. 홈 디렉토리는 해당 사용자가 쓸 수 있어야 합니다. ldapuser11의 비밀번호는 'password'입니다.
정답:
vim /etc/auto.master /rhome /etc/auto.misc
wq!
# vim /etc/auto.misc
ldapuser11 --rw,sync host.domain11.example.com:/rhome/ldpauser11 :wq!
#service autofs restart
service autofs reload
chkconfig autofs on
su -ldapuser11
Login ldapuser with home directory
# exit
사용자 소유자와 그룹 소유자 멤버만 완전히 접근할 수 있는 /archive 디렉토리를 만듭니다.
정답:
chmod 770 /archive
Verify using : ls -ld /archive Preview should be like:
drwxrwx--- 2 root sysuser 4096 Mar 16 18:08 /archive
To change the permission on directory we use the chmod command. According to the question that only the owner user (root) and group member (sysuser) can fully access the directory so: chmod 770 /archive

우리와 연락하기

문의할 점이 있으시면 메일을 보내오세요. 12시간이내에 답장드리도록 하고 있습니다.

근무시간: ( UTC+9 ) 9:00-24:00
월요일~토요일

서포트: 바로 연락하기