Friday, May 17, 2013
at
2:09 AM
| Posted by
Elumalai M
System is not booting because of some pool having issue, if you come occur this situation use this procedure to solve the issue:
boot the system:
ok boot -m milestone=none
remount the root file system with read/write option:
mount -o rw /
Move the zpool cache file:
mv /etc/zfs/zpool.cache /etc/zfs/zpool.cache.old
Take the system to normal state:
svcadm milestone all
Identify the which pool having issue:
fmdump -eV
Import the pool one by one skipping the pools that are having problems:
zpool import
Posted In
ZFS
|
|
Thursday, May 2, 2013
at
12:11 AM
| Posted by
Elumalai M
# uptime
7:34pm up 5553 day(s), 20:34, 2 users, load average: 0.29, 0.38, 0.49
#
- Test the TOD at the ok prompt
- Replace the PCI I/O riser board if the TOD appear to be faulty
- Run POST diag-level=max and obdiags to ensure all components are fine
- Reboot and check the uptime
|
|
Friday, January 25, 2013
at
4:31 AM
| Posted by
Elumalai M
# vxprint
/usr/sbin/vxprint -Qqhtg DG catiav510
/usr/sbin/vxprint -Ath | grep volume
/usr/sbin/vxprint -Qqhtg DG volume-01 => sv
/usr/sbin/vxprint -Qqhtg DG volume-L03 => sd
FS Extention:
Sytax:
/etc/vx/bin/vxresize [-bsx] [-F fstype] [-g diskgroup] [-t tasktag] volume new_length [medianame...]
/etc/vx/bin/vxresize -g [alloc=]
/etc/vx/bin/vxresize -g datadg volume +100m
/etc/vx/bin/vxresize -g DG volume +10g alloc="d25 d26 d66 d79"
/etc/vx/bin/vxresize -g DG1 volume1 +10g alloc="c3t0d21 c3t0d22 c3t0d23 c3t0d24 c3t0d25 c3t0d26 c3t0d27 c3t0d28"
|
|
Thursday, January 24, 2013
at
10:37 PM
| Posted by
Elumalai M
Check larger files:
find . -xdev -size +10000000c -exec ls -l {} \;
find . -xdev -type f -size +1024 -ls | awk '{print $11, $7}' | sort -rn +1 | awk '{print $1, $2/1024/1024 "MB"}'
Check core files:
find . -xdev -name core -exec ls -l {} \;
List and remove the modified file
find . -xdev -mtime +60 -exec ls -l {} \;
find . -xdev -mtime +60 -exec rm -rf {} \;
Check disk usage:
du -sk * |sort -n
du -kx .| sort -n
du -sxk * | sort -nb | tail
du -sk * | sort -nb | tail
du -sk *
du -sk ./*
du -sk .
|
|
Thursday, December 6, 2012
at
8:39 AM
| Posted by
Elumalai M
Adding the mirror disk into the pool abort with core dump and workaround
root@node:/ > zpool add pool mirror c5t600508B40006AB5F0000900002230000d0 c5t600508B40006B1440000700006090000d0
Abort (core dumped)
root@node:/ >
root@node:/ > NOINUSE_CHECK=1 zpool add eqptpool mirror c5t600508B40006AB5F0000900002230000d0 c5t600508B40006B1440000700006090000d0
root@node:/ >
|
|
Wednesday, October 10, 2012
at
7:43 AM
| Posted by
Elumalai M
node# mount /u001
vxfs mount: /dev/vx/dsk/rootdg/vol1 is corrupted. needs checking
We have tried the fsck, but was not successful. We are unable to mount the filesystem /local
node#
Solution:
format >> analyze >> read to fix the block 5125 error of disk c3t2d0.
#fsck -F vxfs -y /dev/vx/rdsk/rootdg/vol1
#mount /local
Posted In
VXVM
|
|
If you encounter onway mirror issue with Storage disk. If the disk status is okay but problem to clear the Need maintenance state and to avoid this problem in future the below is the solution.
Configuration and the submirror status:
d8: Mirror
Submirror 2: d28
State: Needs maintenance
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 1715358144 blocks
d28: Submirror of d8
State: Needs maintenance
Invoke: after replacing "Maintenance" components:
metareplace d8 c2t0d1s0
Size: 1715365632 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c2t0d1s0 0 No Last Erred
# umount /local
# umount /test2
If the file systems cannot be unmounted then you will have to reboot into single user mode before continuing with the below commands.
# fsck -F ufs -y /dev/md/rdsk/d215
# fsck -F ufs -y /dev/md/rdsk/d230
# metaclear d215
# metaclear d230
# metaclear -rf d8
# metainit d8 1 1 c2t0d1s0
# metainit d215 -p d9 -o 87666101 -b 743486015 -o 853202938 -b 76379648 -o 930764284 -b 182452224 -o 1117410814 -b 85983232
# metainit d230 -p d9 -o 46833323 -b 3774156 -o 843685879 -b 3807232
# mount /local
# mount /test2
d8: Mirror
Submirror 2: d28
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 1715358144 blocks
d28: Submirror of d8
State: Okay
Size: 1715365632 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c2t0d1s7 0 No Okay
Posted In
SVM
|
|
Friday, July 13, 2012
at
7:18 AM
| Posted by
Elumalai M
Error State:
d304: Soft Partition
Component: d7
State: Errored
Size: 6291456 blocks
Extent Start Block Block count
0 104867779 6291456
Action to clear the Error:
# metarecover d20 -p -m
20: Soft Partition metadb configuration is valid
WARNING: You are about to overwrite portions of 20 with soft partition metadata. The extent headers will be written to match the existing metadb configuration. If the device was not previously setup with this configuration, data loss may result.
Are you sure you want to do this (yes/no)? yes
d20: Soft Partitions recovered from metadb # metastat d304
d304: Soft Partition
Component: 20
State: Okay
Size: 6291456 blocks
Extent Start Block Block count
0 104867779 6291456
d20: Mirror
Submirror 0: d17
State: Okay
Submirror 1: d27
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 286678272 blocks
d17: Submirror of d20
State: Okay
Size: 286678272 blocks
Stripe 0: (interlace: 32 blocks)
Device Start Block Dbase State Hot Spare
c1t2d0s0 0 No Okay
c1t3d0s0 10176 No Okay
d27: Submirror of d20
State: Okay
Size: 286678272 blocks
Stripe 0: (interlace: 32 blocks)
Device Start Block Dbase State Hot Spare
c1t4d0s0 0 No Okay
c1t5d0s0 10176 No Okay
#
Posted In
SVM
|
|
Thursday, February 23, 2012
at
2:15 AM
| Posted by
Elumalai M
node:/root# metainit -s nfsdg d74 -p d80 100g
metainit: node: "d74": unit not found
node:/root#
Identify the devfsadm process ID and kill it.
node:/root# ps -ef grep -i devfsadm
root 3099 1472 0 10:38:14 pts/1 0:00 grep -i devfsadm
root 15066 1 0 11:25:41 ? 58:46 /usr/lib/devfsadm/devfsadmd
node:/root# kill -9 15066
node:/root#
Now try it should work now
node:/# metainit -s nfsdg d74 -p d80 100g
d74: Soft Partition is setup
node:/#
Posted In
SVM,
Trouble Shooting
|
|
Thursday, February 16, 2012
at
4:20 AM
| Posted by
Elumalai M
Step1:
Preparation:
Solaris 10 with latest updated versionDownload and install the Solaris 8 Migration
SUNWs8brandr Solaris 8 Migration Assistant: solaris8 brand support (Root)SUNWs8brandu Solaris 8 Migration Assistant: solaris8 brand support (Usr)SUNWs8p2v Solaris 8 p2v Tool
Step2: Create the Flash Archive of solaris 8 server:
node# flarcreate -S -n solaris8 solaris8.flar
Step3: Set up a Solaris 8 zone
node# zonecfg -z solaris8solaris8: No such zone configuredUse 'create' to begin configuring a new zone.zonecfg:solaris8-system> create -t SUNWsolaris8zonecfg:solaris8> set zonepath=/export/solaris8zonecfg:solaris8> add netzonecfg:solaris8:net> set address=192.168.1.155/24zonecfg:solaris8:net> set physical=bge0zonecfg:solaris8:net> endzonecfg:solaris8> commitzonecfg:solaris8> exit
Step4: Install Solaris 8 zone using flar-archive
node# zoneadm -z solaris8 install -u -a /export/solaris8.flarLog File: /var/tmp/solaris8.install.13597.logSource: /export/solaris8.flarInstalling: This may take several minutes…Postprocessing: This may take several minutes…WARNING: zone did not finish booting.
Result: Installation completed successfully.Log File: /export/solaris8/root/var/log/solaris8.install.13597.log
Step5:
node #uname -aSunOS solaris8 5.8 Generic_Virtual sun4u sparc SUNW,Sun-Fire-V490
|
|
Wednesday, December 21, 2011
at
4:46 AM
| Posted by
Elumalai M
Step1: Backup of the current SDS configuration:
[root]# metastat -p >> /etc/lvm/md.tab
removal of replicas stored on this disk
[root]# metadb -d c1t0d0s4
Step2: detach and deletion of sub mirror d11 (swap)
[root]# metadetach d1 d11 && metaclear d11
Step3: disk removal
[root]# luxadm remove_device /dev/rdsk/c1t0d0s2
WARNING!!! Please ensure that no file systems are mounted on these device(s). All data on these devices should have been backed up.
The list of devices which will be removed is:
1: Device name: /dev/rdsk/c1t0d0s2 Node WWN: 2000000c504fd050
Device Type: Disk device
Device Paths: /dev/rdsk/c1t0d0s2
Please verify the above list of devices and then enter c or to Continue or q to Quit. [Default: c]:c stopping: /dev/rdsk/c1t0d0s2.... Done
offlining: /dev/rdsk/c1t0d0s2.... Done
The drives are now off-line and spun down.
Physically remove the disk and press the Return key.
Hit after removing the device(s).
Note: Disk has to be physically removed before pressing "ENTER" when running luxadm remove_device; otherwise, picld will notify the kernel that the drive was not removed and WWN of this drive will remain in the loop -- and the FCAL subsystem may get confused, especially if recommended patches are out of date
[root]# devfsadm -C -c disk
Step4: Insertion of the new disk drive:
<<< physical insertion >>>
[root]# devfsadm -v
Step5: partitioning:[root]# prtvtoc /dev/rdsk/c1t1d0s2 fmthard -s - /dev/rdsk/c1t0d0s2
Step6: adding SDS replicas :
[root]# metadb -ac 3 c1t0d0s4
Step7: resynchronization :
[root]# metainit d11 && metattach d1 d11
[root]# for i in 0 3 6 ; do metareplace -e d$i c1t0d0s$i ; done
Posted In
SVM
|
|
Tuesday, December 6, 2011
at
4:29 AM
| Posted by
Elumalai M
PROBLEM OVERVIEW
Defective Battery
WHAT STATE SHOULD THE SYSTEM BE IN TO BE READY TO PERFORM THE RESOLUTION ACTIVITY?
Write cache should be disabled prior to replacing battery to prevent data loss if power event occurs before replacement battery is charged
WHAT ACTION DOES THE CUSTOMER NEED TO TAKE
Check for amber LED on battery, check CLI battery status and location (upper or lower slot). From SC CLI: sccli> show battery
Prepare array for battery replacement
1. To determine status of write cache on array, access array Main Menu from telnet.
2. Select appropriate mode and press
3. Clear any pop-up messages with + < C> Select Disable pop-ups On upper right of Main Menu, Cache Status is displayed. Value to right indicates percentage of controller cache that differs from what is saved to disk. “Clean” means all cache has been saved to disk.
4. From telnet Main Menu, Disable cache: a. Select View and edit Configuration parameters b. Select Caching Parameters . Note cache state (enabled or disabled). c. Select Write-Back Cache Enable ? > No d. Disable Write-back cache? >YesFrom sccli, Disable Cache: e. sccli -o (out-of-band) or sccli /dev/dsk/c#t#d#s2(in-band) f. Check cache parameters. From sccli> show cache-parameters g. Disable cache. sccli> set cache-parameters write-through
5. Verify write-through cache status. sccli> show cache-parameters
Note: Verify "cache" status led on Raid controller is off
6. Remove ethernet and serial cable from battery module
7. Unscrew and disengage thumbscrews and cables on battery module and use thumbscrews to pull out the battery module
8. Insert new battery module and tighten thumbscrews until finger tightWARNING: Do not force or apply excessive pressure when inserting battery module
9. Re-attach cables
10. Using CLI (sccli), check battery status and set in service datesccli> show battery-statussccli> show battery-status -usccli> show battery-status
If second battery needs to be replaced, repeat steps 6-10
11. Confirm controller redundancy. sccli >show redundancy
12. Restore write cache to original settings. To Enable Write-Back Cache a. Select View and edit Configuration parameters b. Select Caching Parameters c. Select Write-Back Cache Disabled d. Enable Write-Back Cache?--> YESsccli> set cache-parameters write-back
Note:Write cache will enable once battery can protect on-board cache. Verify battery is charging by blinking green light on battery. Battery status LED may remain amber for up to 30 minutes.
13. Verify host access
14. Restart Configuration Services agent to prevent expired battery related messages from recurring. From host, type/etc/init.d/ssagent stop/etc/init.d/ssagent start
Posted In
Storage
|
|
Sunday, November 20, 2011
at
2:11 AM
| Posted by
Elumalai M
1. How do check the status of VERITAS Cluster Server aka VCS ?
Ans: hastatus –sum3
2. Which is the main config file for VCS and where it is located?
Ans: main.cf is the main configuration file for VCS and it is located in /etc/VRTSvcs/conf/config.
3. Which command you will use to check the syntax of the main.cf?
Ans: hacf -verify /etc/VRTSvcs/conf/config
4. How will you check the status of individual resources of VCS cluster?
Ans: hares –state
5. What is the service group in VCS ?
Ans: Service group is made up of resources and their links which you normally requires to maintain the HA of application.
6. What is the use of halink command ?
Ans: halink is used to link the dependencies of the resources
7. What is the difference between switchover and failover ?
Ans: Switchover is an manual task where as failover is automatic. You can switchover service group from online cluster node to offline cluster node in case of power outage, hardware failure, schedule shutdown and reboot. But the failover will failover the service group to the other node when VCS heartbeat link down, damaged, broken because of some disaster or system hung.
8. What is the use of hagrp command ?
Ans: hagrp is used for doing administrative actions on service groups like online, offline, switch etc.
9. How to switchover the service group in VCS ?
Ans: hagrp –switch -to
10. How to online the service groups in VCS ?
Ans: hagrp –online -sy
Posted In
Interview Questions,
VCS
|
|
1.What is the best RAID level?
RAID 0 for performance
RAID 5 for High availability
RAID 6 even better HA if the budget is fine
2.What is MAC address and How to check the MAC address in linux?
A mac address means media access control address.It is a unique address assigned to almost all networking hardware such as Ethernet cards, router etc.
Most layer 2 network protocols use one of three numbering spaces which are designed to be globally unique.
Linux Command to see MAC address:
Ifconfig is used to configure network interfaces.
$ /sbin/ifconfig grep HWaddr
Output: eth0 Link encap:Ethernet HWaddr 00:0F:EA:91:04:07
OR
$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:0F:EA:91:04:07 <<< THIS IS THE MAC ADDRESS
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20f:eaff:fe91:407/64 Scope:Link
OR as a root user type following command:
# grep eth0 /var/log/dmesg
eth0: RealTek RTL8139 at 0xc000, 00:0f:ea:91:04:07, IRQ 18 <<< this line 2 component from this side is MAC address
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
3.how to assign a permanent IP to a client which is presently in DHCP in Linux?
/sbin/ifconfig eth0 192.168.10.1 netmask 255.255.255.0 broadcast 192.168.10.255
In this command we are assigning 192.168.10.1 IP to ethernet interface(NIC card) eth0.
Also in redhat linux terminal you can type comand "setup" & launch a Wizard type interface in which u can choose network & configure IP
You can use the GUI tool /usr/bin/neat - Gnome GUI network administration tool. It handles all interfaces and configures for both static assignment as well as dynamic assignment using DHCP.
4. How to exclude some ip address range in DHCP?
To exclude the range of IP address in a subnet is to split the address range of subnet into two.
Example:
subnet 1.1.1.0 netmask 255.255.255.0
{
range 1.1.1.10 1.1.1.15
range 1.1.1.21 1.1.1.40
}
so in the above example automatically the IP 16-20 will be excluded from the list.
5.What is the default serial number of DNS ?
Are based on ISO dates. Every time the data in the database is changed, the serial number must be increased in order that the slave servers know the zone has changed
6.how to pull the data to the secondary nis server from master server?
ypxfr is a pull command which runs on each slave server to make that server import the map from master nis server
7.what file need to be changed in nis client if you are changing the machine from one subnetwork to other subnetwork?
/etc/yp.conf
8.how to see memory usage?
Commands "top" and "free -m"
9.how to increase the filesystem ?
Using command # fdisk
Posted In
Interview Questions
|
|
1) What files control user administration?
A) /etc/passwd file: 7 Fields: loginid:x:userid:groupid:comment:homedir:shell
/etc/shadow: 9 Fields: loginid:password:lastchng:min:max:warn:inactive:expire
/etc/group : 4 Fields : groupname:password:groupid:username list)
2) What does the "pwconv" command do?
A) It updates the /etc/shadow file with information from /etc/passwd file.
3) Where are the failed login attemps to system logged?
A) /var/adm/loginlog (We need to create this file as it does not exist by default)
4) Which command shows the users currently logged in to system?
A) who ( It reads the information from /var/adm/utmpx file)
5) Which command will show detailed information about a user?
A) finger –m
6) Which command displays all login and logouts?
A) last (It reads the information from /var/adm/wtmpx file)
7) What is the "StickyBit" file permission?
A) Sticky Bit permission protects the file within a public writable directory.
File set with sticky bit will not allow any user to delete the file except the
Owner of file, owner of the group or the root user.
8) How is ACL (Access Control Lists) implemented?
A) 8.1) "getfacl"command : To display an ACL on file.
Syntax : getfacl
8.2) setfacl command : To set the ACL on file
Syntax : setfacl
8.3) setfacl –m command : To modify ACL entries
Syntax : setfacl –m
8.4) setfacl –s command : Remove old ACL entries and replace with new one.
Syntax : setfacl –s
8.5) setfacl –d command : Delete ACL entry
Syntax : setfacl –d
9) Imp "root(/)" subdirectories and their purpose :
9.1) / : Root of overall file system.
9.2) /bin : Symbolic link to /usr/bin. Stores standard system commands and binary files.
9.3) /dev : Primary location for "logical" device names
9.4) /devices : Primary location for "physical" device names
9.5) /etc : Contains host specific system admin config files
9.6) /export : Default directory for commonly shared filesystems.
9.7) /home : Default directory / mount point for user's home directory
9.8) /kernel : Directory of platform independent loadable kernel file
9.9) /mnt : Temporary mount point for file systems
9.10) /opt : Default directory for add on packages
9.11) /sbin : Executables used in booting process and file recovery
9.12) /tmp : Temporary files
9.13) /usr : Mount point for /usr file system
9.14) /var : Directory for varying files, temporary logging or status files
10) What are the different disk slices?
Slice Name Function
0 / Root's system files
1 swap Swap area
2 Entire Disk
5 /opt Optional Software
6 /usr System Exe's
7 /export/home User's file and directories
11) Which command displays the system configuration information?
A) prtconf
12) Which command is used to configure newly attached hardware ?
A) devfsadm –c where
13) What are the different types of "file systems" in Solaris?
A) There are 3 Types of file system :
13.A.1) Disk based : ufs (standard unix), hsfs (cd-rom), pcfs (Floppy)
Or udf (DVD and CD Rom)
13.A.2) Distributed : NFS (enables sharing of files between many types of n/w)
13.A.3) Pseudo : tmpfs (temporary), swapfs , fdfs, procfs
14) What is a "boot block"?
A) The bootstrap program (bootblk) is found in the next 15 disk sectors. Only the "root" file system has an active boot block, although the space is allocated for boot block at the beginning of each file system.
15) What is "superblock"?
A) The file system is determined by its superblock. It is contained in the 16 disk sectors following the boot block. It contains :
· No. of data blocks
· No.of cylinder groups
· Size of data block fragment
· Description of hardware
· Name of mount point
· File system state flag ( clean , stable , active , logging or unknown)
16) How will you repair the main superblock if it gets corrupted?
A) Every file system has backup superblock at block no.32, which can be given to fsck to repair the main superblock.
# fsck –o b=32 /dev/rdsk/c0t0d0s0
17) How to create new file systems ?
A) newfs /dev/rdsk/c0t0d0s0
18) How will you restore /etc/vfstab file if it gets corrupted?
A) Step 1 : Insert Solaris CD 1 of 2
Step 2 : Go to single user mode : ok boot cdrom –s
Step 3 : Run "fsck" on /(root) partition : # fsck /dev/rdsk/c0t0d0s0
Step 4 : Mount /(root) file system on /a directory to gain access to file system
# mount /dev/dsk/c0t0d0s0 /a
Step 5 : Set & export TERM variable
# TERM=sun
# export TERM
Step 6 : Edit /etc/vfstab file and remove the incorrect entry : # vi /a/etc/vfstab
Step 7 : Unmount the file system : # cd / ; # umount /a and reboot the system.
19) How will you share user's home directory?
A) Step 1 : Login as root and verify mountd daemon is running
# ps –ef grep mountd
Step 2 : If the daemon is not running start it :
# /etc/init.d/nfs.server start
Step 3 : List all shared filesystems
# share
Step 4 : Edit the /etc/dfs/dfstab file and add :
# share –F nfs /export/home
Step 5 : Share the file systems in the /etc/dfs/dfstab file :
# shareall –F nfs
Step 6 : Verify that the home directory is shared.
# share
20) What does /etc/inittab file contain ?
A) The /etc/inittab contains the systems default run level, processes to start/monitor
or restart. It also contains the actions to be taken when run level changes.
/etc/inittab file is in foll format :- id:rstate:action:process
21) How will you use "shutdown" command?
A) # shutdown –i0 –g300 –y
22) How will you check the OBP version of your system ?
A) Use " banner" command at the ok prompt
23) Explain the Solaris Boot process?
A) 23.1 ) Boot Prom Phase : Runs POST to verify system hardware and memory Loads "bootblk" primary boot program.
23.2) Boot Program Phase : "bootblk" loads the finds "ufsboot" and loads it in memory.ufsboot loads the kernel.
23.3) Kernel Initialization Phase : Loads modules using "ufsboot"
Creates user processes and starts /sbin/init process.
23.4) Initialization Phase : Starts "rc" scripts. These scripts check & mounts file System, starts various processes and perform system maintanence tasks
24) Backup And Restore :
Full backup : # ufsdump 0uf /dev/rmt/0 /
Where 0 à indicates full backup f à Path of the backup device u à update the dumpdates file.
Restore : # ufsrestore if /dev/rmt/0
25) How to temporary disable user's login.
A) Log in as "root"
B) Create /etc/nologin file
# vi /etc/nologin
C) Include a message
D) Close and Save the file.
26) What does 'Probe' command do?
A) probe-scsi-all à list all internal and external scsi devices
B) probe-ide-all à List all ide devices
27) How to find whether a system is configured for 32-bit or 64-bit?
A) # isainfo -v
28) How to activate Ethernet card ?
A) # ifconfig qfe0 plumb
29) How will you assign ip address to system?
A) # ifconfig qfe0 192.168.0.1 netmask 255.255.255.0 up
30) How will you check current ip configuration?
A) # ifconfig –a
31) How will you set a default router ?
A) # /etc/defaultrouter
32) How to remove all current routes and assign 192.168.1.100 as default router?
A) # route flush
# route add default 192.168.1.100
33) How to change the network settings ?
A) # sys-unconfig
34) What all does the NVRAM store?
A) Ethernet Address / Host ID / Time of Day (TOD) clock and EEPROM Parameters
35) Where are all the port numbers stored?
A) Port numbers are stored in /etc/services
36) Where are eeprom file stored ?
A) /usr/sbin/eeprom
37) Some important NIS commands :
1) # ypcat hosts à Prints info from hosts database
2) # ypmatch host1 hosts à Match individual host entries
3) # ypmatch user1 passwd
4) # ypwhich à Returns NIS master server.
38) Controlling the tape drive ?
1) mt –f /dev/rmt/0n à 'n' indicates no rewind.
39) What are the network utilities ?
1) snoop à To capture network packets & display contents
2) netstat –i à Displays state of Ethernet address
3) ndd command à Set & examine kernel parameters namely TCP/IP drivers.
40) Network Configuration :
1) /etc/resolv.conf : Contains Internet domain name, name server and search order.
2) /etc/nsswitch.conf : Specifies information source from files, NIS, NIS+ or DNS
3) /etc/hostname.[int](hme0eri0le0] : IP v4 host
4) /etc/nodename : IP v6 host
5) /etc/inet/hosts : Host namefile (/etc/host links to this file)
6) /etc/inet/netmasks : TCP/IP subnet router
7) /etc/inet/protocols : Network protocols
8) /etc/inet/services : Network service name & port numbers
9) /etc/notrouter : Create this file to prevent in.routed or in.rdiscd from starting at boot time
10) /etc/inet/inetd.conf : Internet super daemon config file
11) To change hostname / ip address :
/etc/hostname.{int}(hme0le0)
/etc/nodename
/etc/inet/hosts
/etc/net/*/hosts
/etc/defaultrouter
/etc/resolv.conf
41) How to configure interfaces at boot time>
A) /etc/rcS.d/s30network.sh file à This script is run each time system is booted. It uses ifconfig utility to configure each interface with IP add & other network info.It searches for files called : hostname.xxn in /etc where xx à int type & nà instance of interface
Posted In
Interview Questions,
Solaris
|
|
1. Name the mandatory disk group in VxVM 3.5 ? How will you configure VxVM in 3.5 ?
ANS: rootdg is the mandatory disk group in VxVM 3.5, vxinstall is the command to configure VxVM, It will create the disk groups, initializes the disks and adds them to the group.
2. How will you create private and shared disk group using VxVM ?
ANS: For Private DG:
Command: vxdg init
For Shared DG:
Command: vxdg -s init < disk1 disk2 disk3 >
3. Which are the different layouts for volumes in VxVM ?
ANS: mirror, stripe, concat (default one), raid5, stripe-mirror, mirror-stripe.
4. What is the basic difference between private disk group and shared disk group ?
ANS: Private DG: The DG which is only visible for the host on which you have created it, if the host is a part of cluster, the private DG will not be visible to the other cluster nodes.
Shared DG: The DG which is sharable and visible to the other cluster nodes.
5. How will you add new disk to the existing disk group ?
ANS: Run vxdiskadm command, which will open menu driven program to do various disk operations, select add disks option or you can use another command vxdiskadd.
6. How will you grow/shrink the volume/file system ? What is the meaning of growby and growto options ? What is the meaning on shrinkto and shrinkby options ?
ANS: vxassist command is used to do all volume administration, following is the description and syntax.
Growby option: This is will grow your file system by adding new size to the existing file system.
Growto option: This will grow your file system as per the new size. This WILL NOT ADD new size to the existing one.
Shrinkby option: This will shrink your file system by reducing new size from existing file system.
Shrinkto option: This will shrink your file system as per the new size. This WILL NOT REDUCE the file system by reducing new size.
Command:
vxassist -g [growto, growby, shrinkto, shrinkby] length
7. How will you setup and unsetup disks explicitly using VxVM ?
ANS: You can use /etc/vx/bin/vxdiskunsetup to unsetup the disk, and /etc/vx/vxdisksetup to setup the disk.
8. How will you list the disks, which are in different disk groups ?
ANS: vxdisk list is the command will list the disks from the DG which is currently imported, you can check the same using vxprint command too. vxdisk -o alldgs list command list all the disks which are in different dg's.
9. What is the private region in VxVM ?
ANS: Private region stores the structured VxVM information, it also stores the disk ID and disk geometry. In short words it has metadata of the disk.
10. If, vxdisk list command gives you disks status as "error", what steps you will follow to make the respective disks online ?
ANS: If you faced this issue because of fabric disconnection then simply do vxdisk scandisks, otherwise unsetup the disk using using /etc/vx/bin/vxdiskunsetup and setup the disks again using /etc/vx/bin/vxdisksetup, this will definitely help! [ /etc/vx/bin/vxdiskunsetup will remove the private region from the disk and destroys data, backup the data before using this option]
Posted In
Interview Questions,
VXVM
|
|
Tuesday, October 11, 2011
at
5:59 AM
| Posted by
Elumalai M
#dd if=/dev/dsk/c2t0d0 of=/dev/null bs=1024k
#dd if=/dev/dsk/c2t1d0 of=/dev/null bs=1024k
Posted In
SVM,
Trouble Shooting
|
|
Friday, September 30, 2011
at
12:14 AM
| Posted by
Elumalai M
#kstat -c pages | egrep "(mem|pages)"
name: system_pages class: pages
availrmem 4162512
freemem 3722148
pagesfree 3722148
pageslocked 4035816
pagestotal 8213592
physmem 8235220
|
|
Tuesday, September 27, 2011
at
7:25 AM
| Posted by
Elumalai M
#cd /var/adm; less messages/messages.1grep 'Error Block'cut -d ' ' -f 12sort uniq -c
|
|
Saturday, September 10, 2011
at
11:27 AM
| Posted by
Elumalai M
Solaris Containers
------------------
No special hardware required
Single OS image
Sub-CPU resource granularity
Shared kernel, memory, file systems (configuration, resources and
management)
Solaris only (excluding Linux branded zone on x86)
CPUs can be shared
Works on all systems
Virtually unlimited partitioning (max is 8191 non-global zones)
Single system patch level
Most admin operations can be applied to all containers in a single operation
Very little performance overhead for zone infrastructure
LDoms
-----
Sun4v systems only
Multiple OS images
Multiples of CPU granularity
Dedicated kernel, memory, file systems
Can support other OSes
CPUs can not be shared (CPUs here refers to a strand/thread)
Currently available on Tx000, T5xy0 only
Partitioning limited to number of CPUs
Multiple and different patch and release levels possible
Each LDom must be fully managed separately
Posted In
LDOM
|
|