Basic Interview Question Answer For Linux:
1. What
are the steps involved to create the logical volume
from scratch ?
Ø Create a physical volume using pvcreate command.
#pvcreate
/dev/sda
Ø Create a volume group using “vgcreate” command
#vgcreate vg1 /dev/sda
Ø Create a logical volume using “lvcreate” command
#lvcreate -L 100M -n
vol1 vg1
Ø Create a filesystem on logical volume using mkfs command.
#mkfs
-t ext4 /dev/vg1/vol1
Ø Mount the filesystem using mount command for use.
#mount -t ext4 /dev/vg1/vol1
/vol1
2. File
which stores the DNS configuration at client side
/etc/resolve.conf
3.
What
are the Linux boot files?
Ø /boot/grub/grub.conf : contains boot disk parameters
Ø /etc/fstab : contains File systems which need to mount
at boot time
Ø /etc/initab : Contains default run level
Ø /etc/init.d/rc.d/rcN.d
: This is a dir it contains
4.
How to check the installed software(rpm’s) on Redhat Linux ?
#rpm -qa package_name
(or)
#rpm -qa |grep package_name*
5. Difference between swap partition and swap file?
Swap partition is maintained as a separate partition. Same swap partition can be used for two OS within single machine.
Suppose if the system crashes, there is a chance to recover or it may not corrupt the partition. Less fragmented.Where as swap file takes very less space. We can increase the space very easily, compared to swap partition. Swap file system fragmented.If the system crashes then there is a huge chance to lost the swap file system.
6. How to extent the volume group ?
Using “vgextend” we can increase the volume group.
7. How many volume groups can be created in Linux ?
256
256
No comments:
Post a Comment