Thursday, September 18, 2008

solaris interview question Raid levels and File systems

Q) How to create raid 0 concatination

A) # metainit d0 2 1 c0t0d0s1 1 c0t1d0s1

Q)How to see the meta device information

A)# metastat

Q)How to format and mount a slice

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

Q) 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

Q) How to differentiate concatenation and stripping

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

Q)how to clear metadevices

A)#metaclear d0
   #metaclear d1

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

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

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

Q)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.

Q)How to print plexes,subdisk,volumes

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

Q)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)

Q)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

Q)what is lofs used for

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

Q)what is the use of truss command

A)Trace system call for every running file

30)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

Wednesday, September 17, 2008

solaris interview questions and answers

How to create 2 database replicas


# metadb –a –f –c 2 c0t0d0s1

Unix interview questions and answers

solaris interview questions and answers

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


# metabd –a –f –l 4096 c0t0d0s1

Unix interview questions and answers

Tuesday, September 16, 2008

solaris interview questions and answers

solaris interview questions and answers

Q) How to see the state databases replica.


A) # metabd

Unix interview questions and answers

Monday, September 15, 2008

solaris interview questions and answers

solaris interview questions and answers

how to create state database replica


#metabd –a –f c0t0d0s1

Unix interview questions and answers

solaris interview questions and answers

Q) 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

Thursday, September 11, 2008

solaris interview questions and answers

solaris interview questions and answers

How to configure newly attached hardware like hardsik network card.


# devfsadm

Or drvconfig


Unix interview questions and answers

Monday, September 8, 2008

solaris interview questions and answers

solaris interview questions and answers

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



unix interview questions and answers

Friday, September 5, 2008

solaris interview questions and answers

solaris interview questions and answers

How to check the check the clock devices from OBP


Ok>netwatch-clock

unix interview questions and answers
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