Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Thursday, 31 August 2017

unix/Linux System Admin Interview Questions And Answers 5


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 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: - 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
but i want to remove /dev/sda7 pv from this VG0?

vgreduce VG0 /dev/sda7
Q: - Which command is used to extend a logical volume?

lvextend --size + /dev//
resize2fs /dev//
Q: - Tell me all steps to remove a LVM?

To remove a logical volume from a volume group, first unmount it with the umount command:
umount /dev//
and then use the lvremove command:
lvremove /dev//
Q: - Which command is used to create LVM Snapshot?

vcreate --size -s -n
The lvcreate command is used to create a new logical volume, meaning there must be
free physical extents in the logical volume group to create a snapshot. The -s option
means that the LV is a snapshot, is the name of the new LV created, and
is the name of the LV from which to create the snapshot.
Q: - Is there any relation between modprobe.conf file and network devices?

Yes, This file assigns a kernel module to each network device.
For Example :-
[root@localhost ~]# cat /etc/modprobe.conf
alias eth0 b44
Here b44 is the kernel module for network device eth0.
We can Confirm by following command (This module “b44” is present or not).
[root@localhost ~]# lsmod |grep b44
b44                    29005    0
Q: - What is the location of "network" file and what does this contains?

location :-  /etc/sysconfig/network
This file contains following fields
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
Q: - What is the role of /etc/resolv.conf file?

In this file we sets the DNS servers (using their IP addresses) and the search domain. The values of the DNS servers are often added when the network is activated because the data can be provided by DHCP or a similar service.
Q: - Which deamon is required to start Network services?

network

/etc/init.d/network start

No comments:

Post a Comment