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