Professional Documents
Culture Documents
POST:Power on self test, It will detect hardware, machine host ID,serialNo, architecture type,
memory and Ethernet address and it will loadthe primary program called bootblk.
InitPhase : It will started by executing of /etc/init program and startother process reading the
/etc/inittab files, as the directory in the/etc/inittab files.
Ifyou switch from multiuser mode to init s and switch it back tomultiuser mode.then remote
useres automatically reconnects to thesystem.
where as in the case of init 1. they have to reconnectmanully means they have to relogin
Explain/etc/inittab files
Itwill have 4 fields( id, rstat, action, process)
Explain/etc/system file
Itwill control the kernel modules and it dived into 5 sector
Moddir: default loadable kernel modules
Root.devices& root files configuration : Physical path name of the devices
Exclude:Does not load the kernel during kernel initializing
Forceload:Force the kernel module to load
Set:set maxium user =40
Explaininode
Itcontain the information of the files and directory
Like( date, home directory, rights, modified date, etc)
Howmany file to modify the host name to be changed without rebooting thesystem.
Thereare 6 files.
#vi/etc/hosts
#vi/etc/nodename
#vi/etc/hostname.hme
#vi/etc/net/ticlts/hosts
#vi/etc/net/ticosts/hosts
#vi/etc/net/ticotsord/hosts
Thiswill be quite complicative, because kernel is the core of theoperating system, its an image of
the OS. whereas /etc/path_to_instare the drivers are stored for the enabled hardware.
OKprobe-scsi-all --> This will deteck all the scsi bus channel, itwill show CD-ROM/DVD-ROM
also
Whatis UMASK
UMASKis a Unix environment variable, which automatically sets filepermissions onnewly
created files,
Defaultvalue is 022
#/etc/default/init
TZ=
Hardlink: link betweensame file systems and inode number will be same
(eg) /U3 - /U3
#lns /U3/file1 /U3/file2
Stickybit: It is aspecial permission that protect the files within a public writabledirectory
Stickybit permission set the shared directory, user cancreate a files or directory
Wehave edit the /etc/passwd file and modify a user forget to give theshell will user able to
loging?
IfPasswd f option given In which files it will update.
Aftercreating swap file update the same to /etc/vfstab what will be thefstype.
temfs
Explaininode
Itcontain the information of the files and directory
Like( date, home directory, rights, modified date, etc)
ExplainFSCK
Utilityfor checking and repairing the files system inconsistence due toabnormal shutdown.
Ithas 5 phases
Phase1 : Check block and size
Phase2 : Check pathname
Phase3 : Check connectivity
Phase4 : Check reference count
Phase5 : Check cylinder group
Softmount:It allows automatic unmounting if the filesystem is idle for aspecified timeout
period. It is mainly used for networkfilesystems like NFS It can be configured
using Autofs and the networkfilesystem can be soft mounted.
For32 bit
#eeprom boot-file=/kernel/unix
or
OKprintenv boot-file
OKsettenv boot-file kernel/unix
Iftelnet is not working, first of all you will not be get connected,login through console access and
then find out with ps -ef | greptelnetd or Kill -1
sshd.config
1. Limited su access
1. Stop unnecessary service at run level
/etc/inetd.config : finger, discard,daytime,charger,tftp,spary & etc
Whatis nslookup
Tofind the hostname and ip address
Toresolve the hostname into ip and ip into hostname
# vi/etc/hosts.hme0:1 ( update the ip address ) --> to bring theinterface along with the ipaddress
during boot time.
biod: On the client end, handles asynchronous I/O for blocks of NFS files.
If adisk shows consistently high reads/writes along with , the percentagebusy (%b)of the disks is
greater than 5 percent, and the average service time (svc_t)is greater than 30 milliseconds, then
one of the followingaction needs to be taken
SDS
FoundEnclosure(s):
SUNWGSINT FCBPL Name:FCloop Node WWN:50800200001bcf28
LogicalPath:/dev/es/ses0
LogicalPath:/dev/es/ses1
Deletedisk metadevices:
#metacleard30
#metacleard31
#luxadm display
Tofind the use:
#luxadm probe
Run"ls -ld /dev/dsk/c1t1d*" to verify that the new devicepaths have
been created.
Attach mirrors:
#metattachd0 d30
#metattachd1 d31
# metadb
flags first blk block count
am p luo 16 8192 /dev/dsk/c1t0d0s7
a p luo 8208 8192 /dev/dsk/c1t0d0s7
a p luo 16400 8192 /dev/dsk/c1t0d0s7
/scratch:I/O error
************************************************************************
Observation
Following file systemsare not able to open, while using dk k its shows i/o error.
Step1
[root drcs1] ksh$
[root drcs1] ksh$ metastat-s meter d18
meter/d18: Trans
State:Hard Error
Size: 4087280 blocks
MasterDevice: meter/d17
LoggingDevice: meter/d5
meter/d17: Mirror
Submirror 0: meter/d15
State: Okay
Pass: 1
Read option:roundrobin (default)
Write option: parallel(default)
Size: 4087280 blocks
meter/d5: Mirror
Submirror 0: meter/d3
State: Okay
Submirror 1: meter/d1
State: Okay
Pass: 1
Read option:roundrobin (default)
Write option: parallel(default)
Size: 132240 blocks
Step2:- Analyzedboth the disk and no error found disks are okay.
21. c1t3d4
22. c1t4d0
analyze> test
Ready to analyze (won'tharm data). This takes a long time,
but is interruptable withCTRL-C. Continue? yes
meter/d13 -m meter/d11 1
meter/d11 1 1 c1t5d1s0
Backups
Howwill you take ufsdump and ufsrestore in a sing command line?
Optionsin ufsdump
S =size estimate amount of space need on tape
L =auto loaded
O =offline once the backup completed & if possible to eject themedia
U =update the /etc/dumdate files (Indicate:Name of the file system,Levelof the backup 0-9,Date.
F =specified the tape devices name
Optionsin ufsrestore
T=list the content of the media
R=restore entire file system
X =restore only the file named on the command line
I= interactive mode
V= verbose mode
F =specified the tape devices name
Howwill you come to know wheather hme 0r eri or to configuring thenetwork card.
Baseon Ethernet card
Cannotopen '/etc/path_to_inst'"
Systemcan not find the /etc/path_to_install file .It might be missing orcorrupted and needs to be
rebuild.
Torebuild this file boot the system with -ar option :
ok>boot-ar
Pressenter to select default values for the questions asked duringbooting and select yes to rebuild
/etc/path_to_install
The/etc/path_to_inst on your system does not exist or is empty. Do youwant to rebuild this file
[n]? y
systemwill continue booting after rebuilding the file.
#/usr/local/sbin/visudo
Veritas
Howto find the demo?
#Psef |grep vxvm
#vxrootmirrootmirror
foreach other volume
#vxassistg bootdg mirror volname
Diskto recover
#vxrecoversn g dgname newdiskname
Howto Unencapsulating root disk
Runthe following command to prevent VxVM from starting up afterreboot:
touch/etc/vx/reconfig.d/state.d/install-db
Detachsecond mirror
#vxplex -o rm dis opt-02 rootvol-02 swapvol-02 usr-02 var-02
unencapsulatea root disk that
#/etc/vx/bin/vxunroot
Rebootsystem #init6
Howto remove the root mirror disk permanently
#vxunroot
Rebootthe system (it will remove the entries of VXVM from /etc/systems &Filesystem from
/etc/vfstab)
Removethe plexes of the rootnew
#vxplexdis rootvol-02 (remove the plexes of the rootnew)
#vxdctenable
Veritaswill start
Mirrorall the other volumes from the current root disk to the new rootdisk.Do not mirror swap
volumes. Swap slices will be created on thenew disk manually. In this example, the volumes to
mirror are var andopt.
#vxassist -g rootdg mirror var newroot
#vxassist -g rootdg mirror opt newroot
Howyou will identify that how may DG creation a particular VXVM versionsupport
rooton BUILD kirkcmis3 # vxdctlsupport
Supportinformation:
vxconfigd_vrsn: 21
dg_minimum: 10
dg_maximum: 120
kernel: 15
protocol_minimum:40
protocol_maximum:60
protocol_current:0
type: auto
hostid: kirkcmis3
disk: name=devdg84 id=1134042519.185.kirkcmis3
group: name=devdg id=1157983965.194.kirkcmis3
info: format=cdsdisk,privoffset=256,pubslice=2,privslice=2
flags: online ready private autoconfig autoimport imported
pubpaths:
block=/dev/vx/dmp/VPATH_SANVC0_62s2char=/dev/vx/rdmp/VPATH_SANVC0_62s2
version: 3.1
iosize: min=512 (bytes) max=2048 (blocks)
public: slice=2 offset=2304 len=85948160 disk_offset=0
private: slice=2 offset=256 len=2048 disk_offset=0
update: time=1193065091 seqno=0.51
ssb: actual_seqno=0.0
headers: 0 240
configs: count=1 len=1280
logs: count=1 len=192
Definedregions:
config priv 000048-000239[000192]: copy=01 offset=000000 disabled
config priv 000256-001343[001088]: copy=01 offset=000192 disabled
log priv 001344-001535[000192]: copy=01 offset=000000 disabled
lockrgn priv 001536-001679[000144]: part=00 offset=000000
Multipathinginformation:
numpaths: 1
vpath128c state=enabled
#/usr/lib/vxvm/bin/vxconfigrestore -l /etc/vx/cbr/bk/devdg
Run:
vxconfigrestore -l/etc/vx/cbr/bk/ -c devdg ==> to commit the restoration.
vxconfigrestore -l/etc/vx/cbr/bk/ -d devdg ==> to abort the restoration.
Checkthe PROTOCOLVERSION
#vxdctl protocolversion
Clusterrunning at protocol 40
Toupgrade the protocol version to the latest available version runvxdctlupgrade onthe master
node:
Howto export and import
Beforethe export or import, need to unmount the volume and stop the volume
#vxvolg dgname stopall
Exporta disk group:
vxdg deport
vxdg -h deport to export to another host
Import a diskgroup:
vxdg import
Whatare the steps to be follow to add a disk in veritas & before addthe disk what are the
steps to be follow
Beforeadding the disk,
takean output from the format command.
takean output of vxdisk list
afterthe disk is added, do the following:
#devfsadm
#format--> label the disk
#vxdctlenable
#vxdiskadm choose the option 1 and then it will ask you the diskgroup once ithas been added it
will ask for the encapsulation, say no then it willask the device name, assign the name, that's it,
#vxdisklist, this will tell the status of the newly added disk as online
Howill you remove the subdisk and plexus
todissociate a subdisk try
vxsddis disk##-##
removea subdisk by
vxeditrm disk##-##
##vxprintg appdg
Howto remove the volume
Restorethe previous /etc/vfstab
#cp/etc/vfstab.0702 /etc/vfstab
#umount /snetprd01 (Unmounting the files)
#rmdir/snetprd01 (Remove the mount points)
#vxvolg appdg stop snetprd01 (Stopping the volumes snetprd01 from appdg)
#vxeditg appdg v rm snetprd01 (removing volumes from disk group)
# dfk
#vxprint -g appdg
Pathfro multipathing.
/kernel/drv/scsi_vhci.conf
Command to execute
Take a copy of
#vxprint -Aht | more
#vxprint list
Verify snapshot iscompleted: ( it will show 2 number ofplex for the volume)
# vxprint g snapdb1
# vxprint g snapdb2
# vxprint g snapdb3
Mount the filesystem to client or you can put the entre in /etc/vfstab on clientside.
Solution:-
Howto bring the existing data disk into VERITAS volume manger control.
ThroughEncapsulations method
Howto change the mirror status from 0:1 to 0:5 and how?
#vxassistg dgname v volume name relayout layout=strip
Howto find the plex, sub disk, Volume group, disk status, free spaces,disk controller,
Volume controller?
Displaysinfo about plexes
#vxprint-lp
#vxprint -l plex_name
Displaysinfo about subdisks
#vxprint -st
#vxprint -l disk##-##
showdisk iops over 10 seconds...
#ssaadmdisplay -p c#
Tracesall i/o on a volume..
#vxtracevol
Toreport disk stats
#vxstat-d
Displaysthe free space on the disks
#vxdgfree
Displaythe disk crontroller
#vxprintlist
#vxprint-Aht
Whatis the difference between the VERITAS 3.0 and VERITAS 4.0?
InVERITAS 3.0 , the root dg is present by default
InVERITAS 4.0, the root dg has to be created manually
InVertias 4.0 cdsdisk has introduced which means, in any os it can beexported
Howto rename the old root disk. In this example, rootdisk is beingrenamed as rootold.
#vxedit -g rootdg rename rootdisk rootold
#vxprint-l rootdg
Whatis a resource?
Resourceare h/w or s/w which work together to provide service to client in aclient/server
environment
Itis monitored and controlled by vcs.
Whatis HA?
Itis a daemon of a cluster which is in the form of Active Passive,i.e. No load balancing
HA-->Highly Available means, two or more systems are connected with thesame configuration,
if one fails the other will take care theresources
initialize newdisk
vxdisksetupi
Add disk to disk group
vxdgg oradg adddisk oradg05=
vxdgg oradg adddisk oradg06=
You can now back up the snapshotvolume by whatever means you prefer. To avoid wasting
space, you canthen remove the snapshot volume, which occupies as much space as theoriginal
volume
#/var/VRTSvcs/log/engine_A.log
#hastoplocal
#hastoplocal evaculate 100% shutdown the system
#hastoploca force withoutshutting down the application,only vcs can be down (hadaemon)
/etc/gabtab
/etc/VRTSvcs/conf/config/main.cf
/etc/VRTSvcs/conf/config/types.cf
Totake the back up of the cluster configuration files of all the nodedo the following procedure
# hastop -all
# hasnap -backup
wantto dump VCS configuration before proceeding? :y
Name :snap.bak (name of thefile in which Backup has to be taken up )
. (dot)( as terminator)
doyou want each file to backup to be confirmed (y/n): n( choose the option)
Backupwill be created in the directory/var/VRTSvcs/hasnap/data/repository/vcs
NowStart the Cluster on this terminal first by using the followingcommand and use same
commands on each node
#hastart -force
#hasnap -restore
specify the option [14] : 1( this is the Sr. Number of the cluster configuration Backup file)
Now Start the Cluster on this terminal first by using the following command and use
same commands on each node
#hastart -force
T3Storage
1)Voladd volname data undn raid n standby undn
2)Volstat
3)Vol init volname data
4)Volmount vol name
5)Vollist
6)Mkdir/dev/es
7)Luxadminsert
8)ifabove solaris 7 exclude the steps 6 & 7
9)format and partition .
LUXADM:TheLuxadm program is an administrative command that manages both the sunstorage A5000 and
SPARC storage array disk arrays, Lunadm performa avariety of control and query task,
depending on the command-linearguments and options used.
#vxdctl -c mode
mode:enabled: cluster active - MASTER
master:bits
#vxdctl upgrade
NOTE:All nodes need to be joined in the Cluster Volume Manager clusterbefore running the
above command.
Toconfirm that the protocol version has been updated, the following canbe run:
#vxdctl protocolversion
Clusterrunning at protocol 50
Whatis Multipathing
Multipathing is the use ofredundant storage network components responsible for transfer of
databetween the server and storage. ...Multipathing allows for two ormore data paths to be
simultaneously used for read/write operations,enhancing performance by automatically and
equally dispersing dataaccess across all the available paths.
Splitbrain:If the private network fails there will not be connectivity betweenthe nodes,
Qourm device will take place in thissenario, Quarm devie have the information of both
the nodes. It will distroy one ofthe node information and make other node to be owner of
the service group.
(or)
Splitbrain:Enables only the partition(subcluster) with a majority of votes to run as the cluster
(only onepartition can exist with such a majority). After a node loses therace for quorum, that
node panics.
Seeding;Itis use to protect the cluster in pre-existing network, One seedingsystem can run vcs
Automaticseeding #gabconfig c n < no of nodes>
Manualseeding #gabconfig c x
Amnesia:Guaranteesthat when a cluster is booted, it has at least one node that was amember of
the most recent cluster membership (and thus has the latestconfiguration data).
JeopardyDefined
Thedesign of VCS requires that a minimum of two heartbeat-capablechannels be available
between nodes to protect against networkfailure. When a node is missing a single heartbeat
connection, VCScan no longer discriminate between a system loss and a loss of thelast network
connection. It must then handle loss of communicationson a single network differently from loss
on multiple networks. Thisprocedure is called "jeopardy." As mentionedpreviously, low latency
transport (LLT) provides notification ofreliable versus unreliable network communications to
global atomicbroadcast (GAB). GAB uses this information, with or without afunctional disk
heartbeat, to delegate cluster membership. If thesystem heartbeats are lost simultaneously across
all channels, VCSdetermines the system has failed. The services running on that systemare then
restarted on another. However, if the node was running withone heartbeat only (in jeopardy)
prior to the loss of a heartbeat,VCS does notrestartthe applications on a new node. This action of
disabling failover isa safety mechanism that prevents data corruption.
I/OFencing SCSI III Reservations- I/O Fencing (VxFEN) is scheduled to be included in the
VCS 4.0version. VCS can have parallel or failover service groups withdisk group resources in
them. If the cluster has a split-brain, VxFEN should force one of the subclusters to commit
suicide inorder to prevent data corruption. The subcluster which commitssuicide should never
gain access to the disk groups without joiningthe cluster again. In parallel service groups, it is
necessary toprevent any active processes from writing to the disks. In failovergroups, however,
access to the disk only needs to be prevented whenVCS fails over the service group to another
node. Somemultipathing products will be supported with I/O Fencing.
Node Name
---------
State
-----
Group:pspd-rg
phys-pspd1
Error--stopfailed
Group:pspd-rg
phys-pspd2
Offline
=====================================================================
==
Forclearing the STOP_FAILED flag ---- -c is for clear flag, -h fornodename, -j for resource
name, -f for error flag.
ForBring down the resource group ----- (If bring down the resource groupSTOP_FAILED
error will clear and it goes to Offline state)
root@phys-pspd1# scswitch -F -g pspd-rg
=====================================================================
==
2. root@phys-pspd1 # scstat -g
--Resource Groups and Resources ---Resource Groups -Group Name
Node Name
State
----------
---------
-----
Group:pspd-rg
phys-pspd1
Offline
Group:pspd-rg
phys-pspd2
Offline
Resource:pspd-oralisten-res phys-pspd1
Offline Offline
root@phys-pspd1#
=====================================================================
==
Tobring up the resource group-root@phys-pspd1# scswitch -Z -g pspd-rg
=====================================================================
==
root@phys-pspd1# scstat -g
--Resource Groups and Resources -Resources:pspd-rg
Resource:pspd-oralisten-res phys-pspd1
Resource:pspd-oralisten-res phys-pspd2
Online
Offline Offline
Online
DID devices d18, d30, d39 are in Needs Maintenance state. (phys-mw2 on SENA-B)
format command was showing drive type unknown for these DID devices.
To begin the Oracleinstallation using the Veritas DBE/AC, a shared disk group and
thenecessary volumes need to be created.
The following steps provide anexample of how to create the disk group and volumes:
1. From the master node in the cluster, create the shared disk group on the shared disk
c2t3d1:
# vxdg -s init orasrv_dgc2t4d2
1. Set the connectivity policy for the disk group as local:
# vxedit setdiskdetpolicy=local orasrv_dg
1. Create the volume in the shared disk group:
# vxassist -g orasrv_dgmake srvm_vol 200M
1. Set the activation mode to read-write:
Resolution:
Step-I
Thedisks were hot-swappable & were replaced online.
Weneed to reboot the servers phys-mw1 & phys-mw2 for the disks tocome under OS/Cluster
control.
Phys-mw1#scdidadm R d18
Phys-mw1#scdidadm R d30
Phys-mw1#scdidadm R d39
1. hastat output is as shown in Appendix A.
2. Partitions the disks and mirror them as described in Appendix B.
Note:If any state database replicas exist on the failed disk (DID device),then delete the state
database replicas & then reboot the server.In phys-mw1, DID device d18 is containing the state
databasereplicas. This was removed before reboot.
phys-mw1#metadb -s gisdbmw
flags first blk block count
W l 16 1034 /dev/did/dsk/d18s7
W l 1050 1034 /dev/did/dsk/d18s7
phys-mw1#metadb d /dev/did/dsk/d18s7
Afterreboot and after scdidadmR d18
Phys-mw1#metadb ac 2 /dev/did/dsk/c18s7
AppendixA : hastat output
phys-mw1#hastat
GettingInformation from all the nodes ......
HIGH AVAILABILITYCONFIGURATION AND STATUS
------------------------------------------LISTOF NODES CONFIGURED IN CLUSTER
phys-mw1 phys-mw2
phys-mw2 is a clustermember
gisdbmw/d21:Mirror
Submirror 0: gisdbmw/d22
State: Needs maintenance
Submirror 1: gisdbmw/d23
State: Okay
Pass: 1
Read option: roundrobin(default)
Write option: parallel(default)
gisdbmw/d22:Submirror of gisdbmw/d21
State: Needs maintenance
Invoke: metareplacegisdbmw/d21 /dev/did/dsk/d18s0
Size: 17107524 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
/dev/did/dsk/d18s0 0 No Maintenance
gisdbmw/d23:Submirror of gisdbmw/d21
State: Okay
Size: 17107524 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
/dev/did/dsk/d25s0 0 No Okay
18 phys-mw2:/dev/rdsk/c2t1d0 /dev/did/rdsk/d18
18 phys-mw1:/dev/rdsk/c2t1d0 /dev/did/rdsk/d18
AVAILABLEDISK SELECTIONS:
0. c2t1d0
/sbus@3,0/SUNW,socal@0,0/sf@0,0/ssd@w21000020374fe013,0
1. c4t1d0
/sbus@b,0/SUNW,socal@0,0/sf@0,0/ssd@w2100002037222d57,0
Specifydisk (enter its number): 1
selectingc4t1d0
[diskformatted]
format>p
PARTITIONMENU:
partition>p
Currentpartition table (original):
Totaldisk cylinders available: 4924 + 2 (reserved cylinders)
FORMATMENU:
format>di
AVAILABLEDISK SELECTIONS:
0. c2t1d0
/sbus@3,0/SUNW,socal@0,0/sf@0,0/ssd@w21000020374fe013,0
1. c4t1d0
/sbus@b,0/SUNW,socal@0,0/sf@0,0/ssd@w2100002037222d57,0
Specifydisk (enter its number)[1]: 0
selectingc2t1d0
[diskformatted]
format>p
PARTITIONMENU:
partition>p
Currentpartition table (original):
Totaldisk cylinders available: 4924 + 2 (reserved cylinders)
partition>0
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 73 129.75MB (74/0/0) 265734
Enterpartition id tag[root]:
Enterpartition permission flags[wm]:
Enternew starting cyl[0]:
Enterpartition id tag[swap]:
Enterpartition permission flags[wu]:
Enternew starting cyl[74]:
Enterpartition size[265734b, 74c, 129.75mb, 0.13gb]: 0
partition>6
Enterpartition id tag[usr]:
Enterpartition permission flags[wm]:
Enternew starting cyl[148]:
Enterpartition size[17150616b, 4776c, 8374.32mb, 8.18gb]: 0
partition>p
Currentpartition table (unnamed):
Totaldisk cylinders available: 4924 + 2 (reserved cylinders)
partition>7
Part Tag Flag Cylinders Size Blocks
7 unassigned wm 0 0 (0/0/0) 0
Enterpartition id tag[unassigned]:
Enterpartition permission flags[wm]: wu
Enternew starting cyl[0]:
Enterpartition size[0b, 0c, 0.00mb, 0.00gb]: 2c
partition>4
Part Tag Flag Cylinders Size Blocks
4 unassigned wm 0 0 (0/0/0) 0
Enterpartition id tag[unassigned]:
Enterpartition permission flags[wm]:
Enternew starting cyl[0]: 2
Enterpartition size[0b, 0c, 0.00mb, 0.00gb]: 115c
partition>p
Currentpartition table (unnamed):
Totaldisk cylinders available: 4924 + 2 (reserved cylinders)
partition>0
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
Enterpartition id tag[unassigned]:
partition>5
Part Tag Flag Cylinders Size Blocks
5 unassigned wm 0 0 (0/0/0) 0
Enterpartition id tag[unassigned]:
Enterpartition permission flags[wm]:
partition>6
Part Tag Flag Cylinders Size Blocks
6 unassigned wm 0 0 (0/0/0) 0
Enterpartition id tag[unassigned]:
partition>l
Readyto label disk, continue? y
partition>q
FORMATMENU:
format>q
Step-1
1. Replace the faulty disk(s).
phys-mw2#luxadm remove B,r6
>> Issue the abovecommand , then inform to Synstar person to remove the faulty disk andthen
insert the new disk . (In this case it is r6)
Tryto attach the disks in metadevice. If again facing same problem thenfollowing these
steps:
Phys-mw1#drvconfig
Phys-mw1#devlinks
Phys-mw1#disks
Phys-mw2#drvconfig
Phys-mw2#devlinks
Phys-mw2#disks
Step-3
Thingsto be checked in phys-mw1 & phys-mw2 server before updating inthe worklog that RFC
has been completed successfully.
1. Only in phys-mw1 server
phys-mw1#su sa
SunMicrosystems Inc. SunOS 5.6 Generic August 1997
Youhave new mail.
phys-mw1:/home/sa>showserver-----------------------------Sybase database
UID PID PPID C STIMETTY TIME CMD
sybase 6007 6001 0 Oct17 ? 1550:30 /opt/sybase/bin/dataserver -d/gisdbmw/data3/mastere/gisdbmw/syblog/gisdbmw.lo
sybase 6517 6007 0 Oct17 ? 2002:43 /opt/sybase/bin/dataserverONLINE:1,0,0x66006099,0xc3800000,0x2b4b6000,0x1159
sybase 6017 6015 0 Oct17 ? 2:05 /opt/sybase/bin/backupservere/gisdbmw/syblog/gisdbmw_back.log -N25 -C20 -Sgis
sybase 6527 6521 0 Oct17 ? 1519:07 /opt/sybase/bin/dataserverONLINE:3,0,0x66006099,0xc3800000,0x2b4b6000,0x1159
sybase 6521 6517 0 Oct17 ? 1633:38 /opt/sybase/bin/dataserverONLINE:2,0,0x66006099,0xc3800000,0x2b4b6000,0x1159
phys-mw1:/home/sa>
Note:If you find any problem with Sybase database please contact with1-WAMPAPPteam.
Pleaserefer Remedy Incident: 292913
11. List some Hot Keys for bash shell ? - Ctrl+l Clears the Screen. Ctrl+r Does a
search in previously given commands in shell. Ctrl+u - Clears the typing before the
hotkey. Ctrl+a Places cursor at the beginning of the command at shell. Ctrl+e Places
cursor at the end of the command at shell. Ctrl+d Kills the shell. Ctrl+z Places the
currently running process into background.
12. Display the files in the directory by file size ? - ls ltr | sort nr k 5
13. How to save man pages to a file ? - man | col b > Example : man top | col b >
top_help.txt
14. How to know the date & time for when script is executed ? - Add the following
script line in shell script.eval echo "Script is executed at `date`" >> timeinfo.infHere,
timeinfo.inf contains date & time details ie., when script is executed and history related
to execution.
15. How do you find out drive statistics ? - iostat -E
16. Display disk usage in Kilobytes ? - du -k
17. Display top ten largest files/directories ? - du -sk * | sort -nr | head
18. How much space is used for users in kilobytes ? - quot -af
19. How to create null file ? - cat /dev/null > filename1
20. Access common commands quicker ? - ps -ef | grep -i $@
21. Display the page size of memory ? - pagesize -a
22. Display Ethernet Address arp table ? - arp -a
23. Display the no.of active established connections to localhost ? - netstat -a | grep EST
24. Display the state of interfaces used for TCP/IP traffice ? - netstat -i
25. Display the parent/child tree of a process ? - ptree Example: ptree 1267
26. Show the working directory of a process ? - pwdx Example: pwdx 1267
27. Display the processes current open files ? - pfiles Example: pfiles 1267
28. Display the inter-process communication facility status ? - ipcs
29. Display the top most process utilizing most CPU ? - top b 1
30. Alternative for top command ? - prstat -a