EX200日本語試験無料問題集「RedHat Red Hat Certified System Administrator - RHCSA (EX200日本語版) 認定」
一部のユーザーのホームディレクトリは、システムから共有されます。 showmount -e localhostコマンドを使用すると、共有ディレクトリは表示されません。共有ユーザーのホームディレクトリにアクセスします。
正解:
Verify the File whether Shared or not ? : cat /etc/exports
Start the nfs service: service nfs start
Start the portmap service: service portmap start
Make automatically start the nfs service on next reboot: chkconfig nfs on Make automatically start the portmap service on next reboot: chkconfig portmap on Verify either sharing or not: showmount -e localhost Check that default firewall is running on system?
If running flush the iptables using iptables -F and stop the iptables service.
Start the nfs service: service nfs start
Start the portmap service: service portmap start
Make automatically start the nfs service on next reboot: chkconfig nfs on Make automatically start the portmap service on next reboot: chkconfig portmap on Verify either sharing or not: showmount -e localhost Check that default firewall is running on system?
If running flush the iptables using iptables -F and stop the iptables service.
vg0の下にlv1という名前の論理ボリュームが1つ作成されます。その論理ボリュームの初期サイズは100MBです。ここで、サイズ500MBが必要になりました。データを失うことなく、論理ボリューム500Mのサイズを正常に作成します。オンラインでサイズを増やす必要があります。
正解:
The LVM system organizes hard disks into Logical Volume (LV) groups. Essentially, physical hard disk partitions (or possibly RAID arrays) are set up in a bunch of equal sized chunks known as Physical Extents (PE). As there are several other concepts associated with the LVM system, let's start with some basic definitions:
Physical Volume (PV) is the standard partition that you add to the LVM mix. Normally, a physical volume is a standard primary or logical partition. It can also be a RAID array.
Physical Extent (PE) is a chunk of disk space. Every PV is divided into a number of equal sized PEs. Every PE in a LV group is the same size. Different LV groups can have different sized PEs.
Logical Extent (LE) is also a chunk of disk space. Every LE is mapped to a specific PE.
Logical Volume (LV) is composed of a group of LEs. You can mount a file system such as /home and /var on an LV.
Volume Group (VG) is composed of a group of LVs. It is the organizational group for LVM. Most of the commands that you'll use apply to a specific VG.
Verify the size of Logical Volume: lvdisplay /dev/vg0/lv1
Verify the Size on mounted directory: df -h or df -h mounted directory name Use: lvextend -L+400M /dev/vg0/lv1 ext2online -d /dev/vg0/lv1 to bring extended size online.
Again Verify using lvdisplay and df -h command.
Physical Volume (PV) is the standard partition that you add to the LVM mix. Normally, a physical volume is a standard primary or logical partition. It can also be a RAID array.
Physical Extent (PE) is a chunk of disk space. Every PV is divided into a number of equal sized PEs. Every PE in a LV group is the same size. Different LV groups can have different sized PEs.
Logical Extent (LE) is also a chunk of disk space. Every LE is mapped to a specific PE.
Logical Volume (LV) is composed of a group of LEs. You can mount a file system such as /home and /var on an LV.
Volume Group (VG) is composed of a group of LVs. It is the organizational group for LVM. Most of the commands that you'll use apply to a specific VG.
Verify the size of Logical Volume: lvdisplay /dev/vg0/lv1
Verify the Size on mounted directory: df -h or df -h mounted directory name Use: lvextend -L+400M /dev/vg0/lv1 ext2online -d /dev/vg0/lv1 to bring extended size online.
Again Verify using lvdisplay and df -h command.
パート1(Node1サーバー上)
タスク13 [ファイルとSELinuxのアーカイブと転送]
/root/backup.tar.bz2という名前のバックアップファイルを作成します。バックアップファイルには/ usr / localの内容が含まれている必要があり、bzip2圧縮形式で圧縮されている必要があります。
さらに、SELinuxが強制モードになっていることを確認してください。そうでない場合は、SELinuxを強制モードに変更します。
タスク13 [ファイルとSELinuxのアーカイブと転送]
/root/backup.tar.bz2という名前のバックアップファイルを作成します。バックアップファイルには/ usr / localの内容が含まれている必要があり、bzip2圧縮形式で圧縮されている必要があります。
さらに、SELinuxが強制モードになっていることを確認してください。そうでない場合は、SELinuxを強制モードに変更します。
正解:
* [root@node1 ~]# tar cvf /root/backup.tar /usr/local/
tar: Removing leading `/' from member names
/usr/local/
/usr/local/bin/
/usr/local/etc/
[root@node1 ~]# ls
backup.tar
[root@node1 ~]# file backup.tar
backup.tar: POSIX tar archive (GNU)
[root@node1 ~]# bzip2 backup.tar
[root@node1 ~]# ls
backup.tar.bz2
[root@node1 ~]# file backup.tar.bz2
backup.tar.bz2: bzip2 compressed data, block size = 900k
*
[root@node1 ~]# sestatus
SELinux status: enabled
[root@node1 ~]# cat /etc/selinux/config
SELINUX=enforcing
SELINUXTYPE=targeted
[root@node1 ~]# reboot
### For Checking ###
[root@node1 ~]# sestatus
SELinux status: enabled
tar: Removing leading `/' from member names
/usr/local/
/usr/local/bin/
/usr/local/etc/
[root@node1 ~]# ls
backup.tar
[root@node1 ~]# file backup.tar
backup.tar: POSIX tar archive (GNU)
[root@node1 ~]# bzip2 backup.tar
[root@node1 ~]# ls
backup.tar.bz2
[root@node1 ~]# file backup.tar.bz2
backup.tar.bz2: bzip2 compressed data, block size = 900k
*
[root@node1 ~]# sestatus
SELinux status: enabled
[root@node1 ~]# cat /etc/selinux/config
SELINUX=enforcing
SELINUXTYPE=targeted
[root@node1 ~]# reboot
### For Checking ###
[root@node1 ~]# sestatus
SELinux status: enabled
スワップパーティションを追加します。
システムに500Mのスワップパーティションを追加すると、システムの起動時にこのスワップパーティションが自動的にマウントされます。システム上の既存のスワップパーティションを削除および変更しないでください。
システムに500Mのスワップパーティションを追加すると、システムの起動時にこのスワップパーティションが自動的にマウントされます。システム上の既存のスワップパーティションを削除および変更しないでください。
正解:
fdisk -cu /dev/vda// in the way of expanding the partition, don't make main partition partx -a /dev/vda mkswap /dev/vdax swapon /dev/vdax swapon -s vi /etc/fstab
/dev/vdaxswapswapdefaults0 0
mount -a
/dev/vdaxswapswapdefaults0 0
mount -a
512Mパーティションを作成し、ext4ファイルシステムとして作成し、/ mnt / dataの下に自動的にマウントされ、ブート開始時に自動的に有効になります。
正解:
# fdisk /dev/vda
n
+512M
w
# partprobe /dev/vda
# mkfs -t ext4 /dev/vda5
# mkdir -p /data
# vim /etc/fstab
/dev/vda5 /data ext4 defaults 0 0
# mount -a
n
+512M
w
# partprobe /dev/vda
# mkfs -t ext4 /dev/vda5
# mkdir -p /data
# vim /etc/fstab
/dev/vda5 /data ext4 defaults 0 0
# mount -a
パート1(Node1サーバー上)
タスク7 [Linuxファイルシステムへのアクセス]
ユーザーnatashaが所有するすべてのファイルを検索し、出力を/ home / alex / filesにリダイレクトします。
/ etcディレクトリで5MiBより大きいすべてのファイルを検索し、それらを/ find / largefilesにコピーします。
タスク7 [Linuxファイルシステムへのアクセス]
ユーザーnatashaが所有するすべてのファイルを検索し、出力を/ home / alex / filesにリダイレクトします。
/ etcディレクトリで5MiBより大きいすべてのファイルを検索し、それらを/ find / largefilesにコピーします。
正解:
[root@node1 ~]# find / -name natasha -type f > /home/natasha/files
[root@node1 ~]# cat /home/natasha/files
/var/spool/mail/natasha
/mnt/shares/natasha
[root@node1 ~]# mkdir /find
[root@node1 ~]# find /etc -size +5M > /find/largefiles
[root@node1 ~]# cat /find/largefiles
/etc/selinux/targeted/policy/policy.31
/etc/udev/hwdb.bin
[root@node1 ~]# cat /home/natasha/files
/var/spool/mail/natasha
/mnt/shares/natasha
[root@node1 ~]# mkdir /find
[root@node1 ~]# find /etc -size +5M > /find/largefiles
[root@node1 ~]# cat /find/largefiles
/etc/selinux/targeted/policy/policy.31
/etc/udev/hwdb.bin
次のようにautofsを構成して、LDAPユーザーのホームディレクトリを自動マウントします。
host.domain11.example.comは、システムに/ homeをNFSエクスポートします。
このファイルシステムには、ユーザーldapuser11の事前設定されたホームディレクトリが含まれています。ldapuser11のホームディレクトリはhost.domain11.example.com / rhome / ldapuser11です。ユーザーldapuser11のパスワードは「password」です。
host.domain11.example.comは、システムに/ homeをNFSエクスポートします。
このファイルシステムには、ユーザーldapuser11の事前設定されたホームディレクトリが含まれています。ldapuser11のホームディレクトリはhost.domain11.example.com / 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
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
ユーザーmaryはタスクを構成する必要があります。
要件:毎日14:23の現地時間は、「Hello World。」とエコーします。
要件:毎日14:23の現地時間は、「Hello World。」とエコーします。
正解:
crontab -u mary -e
23 14 * * * echo "Hello World."
23 14 * * * echo "Hello World."
ファイル/ usr / share / dict / wordsで、文字列seismicを含むすべての行を見つけます。ファイル/ root / wordlistにこれらすべての行のコピーを元の順序で配置します。 / root / wordlistには空の行を含めないでください。また、すべての行は/ usr / share / dict / wordsの元の行の正確なコピーでなければなりません。
正解:
grep seismic /usr/share/dict/words> /root/wordlist
/ var / tmp / fstab許可を構成します。
ファイル/ etc / fstabを/ var / tmp / fstabにコピーします。 var / tmp / fstabパーミッションを次のように構成します。
ファイル/ var / tmp / fstabの所有者はRootであり、グループrootに属します
ファイル/ var / tmp / fstabはどのユーザーでも実行できません
ユーザーnatashaは/ var / tmp / fstabを読み書きできます
ユーザーharryは/ var / tmp / fstabの読み取りおよび書き込みができません
他のすべてのユーザー(現在および将来)はvar / tmp / fstabを読み取ることができます。
ファイル/ etc / fstabを/ var / tmp / fstabにコピーします。 var / tmp / fstabパーミッションを次のように構成します。
ファイル/ var / tmp / fstabの所有者はRootであり、グループrootに属します
ファイル/ var / tmp / fstabはどのユーザーでも実行できません
ユーザーnatashaは/ var / tmp / fstabを読み書きできます
ユーザーharryは/ var / tmp / fstabの読み取りおよび書き込みができません
他のすべてのユーザー(現在および将来)はvar / tmp / fstabを読み取ることができます。
正解:
cp /etc/fstab /var/tmp/
/var/tmp/fstab view the owner setfacl -m u:natasha:rw- /var/tmp/fstab setfacl -m u:haryy:--- /var/tmp/fstab Use getfacl /var/tmp/fstab to view permissions
/var/tmp/fstab view the owner setfacl -m u:natasha:rw- /var/tmp/fstab setfacl -m u:haryy:--- /var/tmp/fstab Use getfacl /var/tmp/fstab to view permissions