RHCSA Exam with Complete Solutions
You are new System Administrator and from now you are going to handle the system and your
main task is Network monitoring, Backup and Restore. But you don't know the root password.
Change the root password to redhat and login in default Runlevel. Correct Ans-rd.break
mount -o remount rw /sysroot
chroot /sysroot
passwd
passwd rx admin
touch /.autorelabel
Exit
Reboot
Make on data that only the user owner and group owner member can fully access. Correct
Ans-• chmod 770 /data
• Verify using : Is -Id /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
1. Resize the logical volume vs and its filesystem to 290 MB. Make sure that the filesystem
contents remain intact. Note: Partitions are seldom exactly the same size requested, so a seize
within the range of 260 MB to 320 MiB is acceptable Correct Ans-'lvdisplay'
'lvextend' -l 100M -r /dev/vg_name/lv_name'
, ###IF not enough space
'fdisk'
p, n, e, default, default, default, n, l, default, default, +100M, t, 8e, w
'partprobe'
'vgextend /dev/vg_name/ /dev/new_partition'
'lvextend -l 100M -r /dev/vg_name/lv_name
shrinking process:
'amount /mounted_path
lvreduce -L 100M -r /dev/vg_name/lv_name'
Remount filesystem:
if on fstab then 'mount -a'
if manually mounted ' mount /dev/vg_name/lv_name /mount_path
Create a volume group, and set the size is 500M, the size of single PE is 16M. Create logical
volume name lv0 in this volume group, set size is 20 PE, make it as ext3 file system, and
mounted automatically under data. Correct Ans-pvcreate /dev/vda3
vgcreate -s 16M vg0 /dev/vda3
lvcreate -n lv0 -l 20 vg0
mkfs.ext3 /dev/mapper/vg0-lv0
mkdir/data /etc/fstab:
/dev/mapper/vg0-lv0 /data ext3 defaults 0 0
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller TheeGrades. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.99. You're not tied to anything after your purchase.