Tuesday, February 3, 2009

MNC Frequently Asked Questions and Answers

1)How to do see the processor information in solaris 8/9/10.

# psrinfo
# psrinfo –v :- To see which processors are online and offline.
If you have multiple processors.

2) How to change processor operation status in solaris.

# psradm –a –n :- To set all processor available on the system to online
# psradm –f 2 3 :- To make processor 2 and 3 offline, if you have multiple processors

3)How to make processor 4 number offline when you have more then 4 processors.

# psrinfo –V :- To check the status and then
# psradm –f 4 offline - To make processor number 4 offline

4)How to make processor 3 online when you have more then 4 processor and processor 3 is offline?

# psrinfo –v:- To see the status of all processors
# psrinfo –a 3 online :- To make processor 3 online

5)How to see which kernel version and artitecture used by the syste.

# isainfo -v :- To see kernal version and 32 bit or 64 bit system and artictect.


6)How to see the default boot device from the boot prom or OBP
ok> prtenv boot-device

7)How do you set a deafaulr boot device from the boot prom

# setenv boot-device disk
Boot-device=disk
# reset - To make the changes.

8)How to see all the informations of the hardware related from bootprom(OBP)

# banner
or
# prtconf

9)How to see the physical disk connected to the system from Open Boot Command OBP

ok>probe-scsi

10)How do you check your loop back or network devices from Open boot prom

ok> test net

11)How to check the check the clock devices from OBP

Ok>netwatch-clock

12)How to set environment variable in NVRAM

# nvalias /pci---/rarp – to set scsi for booting of client
# nvalias net dhcp – to boot from dhcp
# nvunalias net – remove the alias

13)How to configure newly attached hardware like hardsik network card.

# devfsadm
Or
#drvconfig

14)how to create state database replica

#metabd –a –f c0t0d0s1

15)what are raid0,raid1 and raid5

A) Raid 0 is concatenation or stripping
Concatenation means writing data in disk one after another
Stripping means writing data of 32kbs interlease value in to disk

Raid 1 – mirroring that means writing data on two disk parallely or duplicatiung the data on two disk.

Raid 5 – stipping with parity the data of 2 disk is duplicated in the third disk with parity information

16)How to see the state databases replica.

# metabd

17)How to change the default level of State Database replica from 8kb to 4kb

# metabd –a –f –l 4096 c0t0d0s1

18)How to create 2 database replicas

# metadb –a –f –c 2 c0t0d0s1

19)Q) How to create raid 0 concatination

A) # metainit d0 2 1 c0t0d0s1 1 c0t1d0s1

20)How to see the meta device information

A)# metastat

21)How to format and mount a slice

A)newfs /dev/md/rdsk/d0
Mount /dev/md/dsk/d0 /nav

22) how to create raid 0 stripping

A) #metainit d1 1 2 c0t0d0s1 c0t0d0s2
#metastat
#newfs /dev/md/rdsk/d1
#mount /dev/md/dsk/c1 /naveen

23) How to differentiate concatenation and stripping

A)when used metastat command stripping will show an interlace value 32KB this shows it is striped

24)how to clear metadevices

A)#metaclear d0
#metaclear d1

25)How to create mirroring raid -1
#metainit d1 1 1 c0t0d0s1
Metainit d2 1 1 c0t0d0s2
Metainit d3 –m d1
Metattach d3 d2
Metastat

26)how to create stripe with parity
#metainit d1 –raid5 c0t0d0s0 c0t0d0s0 c0t2d0s0
Metastat
Newfs /dev/md/rdsk/d1
Mount /dev/md/rdsk/d1 /naveen

27)how to grow the size of the volume
#growfs –M /d1 c0t0d0s1-(new device)

28)how to create raids using veritas volume manager concationation

A)#vxassit –g rootdg make vol01 20g
#newfs /dev/vx/rdsk/rootdg/vol01
#mount /dev/vx/dsk/rootdg/vol01 /naveen

Stripping
A)
vxassit –g rootdg make vol02 20g layout=stripe st_width=32
#newfs /dev/vx/rdsk/rootdg/vol02
#mount /dev/vx/dsk/rootdg/vol02 /naveen

mirroring

A)vxassit –g rootdg make vol03 20g layout=mirror
newfs /dev/vx/rdsk/rootdg/vol03
mount /dev/vx/dsk/rootdg/vol03 /naveen

stripping with parity.

A)vxassit –g rootdg make vol4 20g layout=raid5,nologs
newfs /dev/vx/rdsk/rootdg/vol4
mount /dev/vx/dsk/rootdg/vol4.

29)How to print plexes,subdisk,volumes

Vxprint –pt – for plexes
Vxprint –st subdisk
Vxprint –vt volumes

30)how to increase the size of the volume

Vxassit –r rootdg growby vol01 20g
/usr/lib/fs/fsck –F ufs –M /naveen /dev/vx/rdsk/rootdg/vol01 40980 (offset value by typing the vxprint –vt command)

31)what is the top command used for

A)Its lists all the processes with the process id
Cpu utilization and idle cpu
Memory utilization and idle memory
Swap utilization and ideal swap
Application using maximum cpu utilization with pid

32)what is lofs used for

A)Lofs list open files is used for to check a problem encounter with a file or process

33)what is the use of truss command

A)Trace system call for every running file

34)Whats are the fields in vfstab

A)mount device-raw device for fsk-mountpoint-filesystem-fsckcheck-mount at boot and it contain all the mounted filesystem

35)How to breakroot passwd

#ok boot cdrom –s
TERM=ansi
Export TERM
Mkdir /demo
Mount /dev/dsk/c0t0d0s0 /demo
Vi /naveen/etc/passwd
Root:KHGHGHGGFG:-remove this junk passwd
Wq!
Reboot it logins with out asking for passwd
# Passwd – enter new password.

36)how to create a user

A)Useradd –u uid –g gid –d /export/home/naveen –m –s /bin/sh naveen

37)whats are the files which maintain user informations

/etc/passwd
/etc/group
/etc/shadow

38)fields in /etc/passwd
User-passwd-uid-gid-homedirectory-shell

39)fields in /etc/group
A)groupname-gid

40)fields in /etc/shadow
A)username:encrypted passwd-min-max-lastchange-inactive-warn-expire


41)how to create a quotas
A)Cd /export/home
Touch quotas
Chmod u+rw quotas
Edquota naveen
Soft=5000 hard=6000 inodes=5000 inode=5500
Quotaon –v /export/home
Repqupota –v /export/home or quota –v naveen to see quota

7 comments:

sam said...

THANX FOR KEEPING SUCH A WONDERFULL QUESTIONS. MAKE SOME MORE QUESTIONS WHICH WILL BE MORE HELPFULL.

THANKS&REGARDS
(K.Srinivasa Rao)

Rajesh Kumar P Selvam said...

Awesome Questions. It was really a Brain-Storming Session when I went through the answers. Thanks. :-)

Raghav said...

You have done a "fantastic job" please keep going !

hafiz said...

Great JOB ..Dude..

Keep it Up ...

nagu said...

Hello naven
I want solaris zone ,Rbac ,acl Interview questions please post it

suhail said...

Hi..thanks for providing such a good technical question...you can make it better by posting question on NIS, Backup & Restore, DHCP and some networking qus also....

aleti pavan kumar said...

Hi all,

In 35th question instead of /demo you used /naveen.

Custom Search

Feeds from my other blog

Samsung S2 Brand new for 25900 White piece sealed box

For Sale, Mobile Phones - Accessories in India, Andhra Pradesh, Hyderabad. Date September 17

For Sale in Hyderabad