Redhat Linux Interview Questions and Answers part3

Q: – Write a command to find all of the files which have been accessed within the last 30 days.

find / -type f -atime -30 > filename.txt

Q: – How you will check on Your server or system device-mapper is installed or not?

Check the following file.
#cat /proc/misc

if this file contains "device-mapper" term it means device mapper is installed on your system.

Q:How are snapshots in LVM2 different from LVM1?

In LVM2 snapshots are read/write by default, whereas in LVM1, snapshots were read only.

Q:What is a zombie?

Zombie is a process state when the child dies before the parent process. In this case the structural information of the process is still in the process table.

Q: – If a volume group named as VG0 already exists but i need to extend this volume group up to 4GB.Explain all steps?

Firstly create Physical volume (/dev/sda7) of size 4GB.
Now run following command.
vgextend VG0 /dev/sda7

Q:If a volume group VG0 have 3 PV's (/dev/sda6, /dev/sda7, /dev/sda8) but i want to remove /dev/sda7 pv from this VG0?

vgreduce VG0 /dev/sda7

Q:What is the maximum size of a single LV?

For 2.4 based kernels, the maximum LV size is 2TB.
For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB.
For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB.

 Q:Which command is used to extend a logical volume?

lvextend –size +<addsize> /dev/<vgname>/<lvname>
resize2fs /dev/<vgname>/<lvname>

 Q:What daemon is responsible for tracking events on your system?


Submitted By:-Parveen Kumar            Email-ID: –