SIMULATIONOne Logical Volume is created named as myvol under vo volume group and is mounted. The Initial Size of that Logical Volume is 400MB. Make successfully that the size of Logical Volume 200MB without losing any data.The size of logical volume 200MB to 210MB will be acceptable.
Answer(s): A
First check the size of Logical Volume: lvdisplay /dev/vo/myvolMake sure that the filesystem is in a consistent state before reducing:# fsck -f /dev/vo/myvolNow reduce the filesystem by 200MB.# resize2fs /dev/vo/myvol 200MIt is now possible to reduce the logical volume. #lvreduce /dev/vo/myvol -L 200MVerify the Size of Logical Volume: lvdisplay /dev/vo/myvolVerify that the size comes in online or not: df -h
SIMULATIONOne 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.
lvextend -L+200M /dev/test0/testvolume1 Use lvdisplay /dev/test0/testvolume1)ext2online -d /dev/test0/testvolume1lvextend command is used the increase the size of Logical Volume. Other command lvresize command also here to resize. And to bring increased size on online we use the ext2online command.
SIMULATIONWe are working on /data initially the size is 2GB. The /dev/test0/lvtestvolume is mount on /data. Now you required more space on /data but you already added all disks belong to physical volume. You saw that you have unallocated space around 5 GB on your harddisk. Increase the size of lvtestvolume by 5GB.
Create a partition having size 5 GB and change the syste id '8e'.use partprobe commandpvcreate /dev/hda9 Suppose your partition number is hda9.vgextend test0 /dev/hda9 vgextend command add the physical disk on volume group.lvextend -L+5120M /dev/test0/lvtestvolumeverify using lvdisplay /dev/test0/lvtestvolume.
SIMULATIONOne Domain RHCE is configured in your lab, your domain server is server1.example.com. nisuser2001, nisuser2002, nisuser2003 user are created on your server 192.168.0.254:/rhome/stationx/nisuser2001. Make sure that when NIS user login in your system automatically mount the home directory. Home directory is separately shared on server /rhome/stationx/ where x is your Station number.
use the authconfig --nisserver=<NIS SERVER> --nisdomain=<NIS DOMAIN> -- updateExample: authconfig --niserver=192.168.0.254 --nisdomain=RHCE --update or system-config-authenticationClick on Enable NISType the NIS Domain: RHCEType Server 192.168.0.254 then click on next and okYou will get a ok message.Create a Directory /rhome/stationx where x is your station number.vi /etc/auto.master and write at the end of file /rhome/stationx /etc/auto.home --timeout=60vi /etc/auto.home and write* -rw,soft,intr 192.168.0.254:/rhome/stationx/&Note: please specify your station number in the place of x.Service autofs restartLogin as the nisuser2001 or nisuser2002 on another terminal will be Success. According to question, RHCE domain is already configured. We have to make a client of RHCE domain and automatically mount the home directory on your system. To make a member of domain, we use the authconfig with option or system-config authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address.Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service used the /etc/auto.master file. On/etc/auto.master file we specified the mount point the configuration file for mount point.
SIMULATIONMake on data that only the user owner and group owner member can fully access.
chmod 770 /dataVerify using : ls -ld /data Preview should be like:drwxrwx--- 2 root sysadmin 4096 Mar 16 18:08 /dataTo change the permission on directory we use the chmod command.According to the question that only the owner user (root) and group member (sysadmin) can fully access the directory so: chmod 770 /data
Post your Comments and Discuss RedHat EX200 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the EX200 content, but please register or login to continue.