Académique Documents
Professionnel Documents
Culture Documents
Symptoms:
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 Oracle installation using the Veritas DBE/AC, a shared disk group and the
necessary volumes need to be created.
The following steps provide an example 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:
6. In order to create the cluster file system, on the other node, enter:
8. On both systems, create the mount point for the file system:
# mkdir /orasrv
9. On both systems, mount the file system, using the device file for the block device. Use the option flag
o cluster.
vxdctl -c mode
In the output, look for:
cluster active - MASTER
or:
cluster active - SLAVE
Resolution:
Step-I
1
The disks were hot-swappable & were replaced online.
We need to reboot the servers phys-mw1 & phys-mw2 for the disks to come under OS/Cluster control.
5
gisdbmw/d20: Trans
State: Okay
Size: 17107524 blocks
Master Device: gisdbmw/d21
Logging Device: gisdbmw/d24
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)
Size: 17107524 blocks
PARTITION MENU:
partition> p
Current partition table (original):
Total disk cylinders available: 4924 + 2 (reserved cylinders)
6
2 unassigned wm 0 0 (0/0/0) 0
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 2 - 116 201.64MB (115/0/0) 412965
5 unassigned wm 4881 - 4886 10.52MB (6/0/0) 21546
6 unassigned wm 4887 - 4923 64.88MB (37/0/0) 132867
7 unassigned wu 0- 1 3.51MB (2/0/0) 7182
partition> q
FORMAT MENU:
format> di
PARTITION MENU:
partition> p
Current partition table (original):
Total disk 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
7
Enter new starting cyl[148]:
Enter partition size[17150616b, 4776c, 8374.32mb, 8.18gb]: 0
partition> p
Current partition table (unnamed):
Total disk cylinders available: 4924 + 2 (reserved cylinders)
partition> 7
Part Tag Flag Cylinders Size Blocks
7 unassigned wm 0 0 (0/0/0) 0
partition> 0
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
8
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 2 - 116 201.64MB (115/0/0) 412965
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wu 0- 1 3.51MB (2/0/0) 7182
partition> 5
Part Tag Flag Cylinders Size Blocks
5 unassigned wm 0 0 (0/0/0) 0
partition> 6
Part Tag Flag Cylinders Size Blocks
6 unassigned wm 0 0 (0/0/0) 0
partition> l
Ready to label disk, continue? y
partition> q
FORMAT MENU:
format> q
9
Invoke: metareplace gisdbmw/d21 /dev/did/dsk/d18s0 <new device>
/dev/did/dsk/d18s0 0 No Maintenance
Invoke: metareplace gisdbmw/d121 /dev/did/dsk/d18s4 <new device>
/dev/did/dsk/d18s4 0 No Maintenance
Invoke: metareplace gisdbmw/d124 /dev/did/dsk/d18s6 <new device>
/dev/did/dsk/d18s6 0 No Maintenance
Invoke: metareplace gisdbmw/d0 /dev/did/dsk/d18s5 <new device>
/dev/did/dsk/d18s5 0 No Maintenance
Step-1
1. Replace the faulty disk(s).
phys-mw2# luxadm remove B,r6
>> Issue the above command , then inform to Synstar person to remove the faulty disk and then insert
the new disk . (In this case it is r6)
>> After getting confirmation from Synstar issue the following command
phys-mw2# luxadm insert B,r6
After rebooting the server, one disk (d17) is detected in did list of cluster but another disk (d9) is not configured in did
list.
10
Phys-mw1# drvconfig
Phys-mw1# devlinks
Phys-mw1# disks
Phys-mw2# drvconfig
Phys-mw2# devlinks
Phys-mw2# disks
Try to attach the disks in metadevice. If again facing same problem then following these steps:
Phys-mw1# drvconfig
Phys-mw1# devlinks
Phys-mw1# disks
Phys-mw2# drvconfig
Phys-mw2# devlinks
Phys-mw2# disks
Step-3
Things to be checked in phys-mw1 & phys-mw2 server before updating in the worklog that RFC has been completed
successfully.
1. Only in phys-mw1 server
phys-mw1# su sa
Sun Microsystems Inc. SunOS 5.6 Generic August 1997
You have new mail.
phys-mw1:/home/sa> showserver ----------------------------- Sybase database
UID PID PPID C STIME TTY TIME CMD
sybase 6007 6001 0 Oct 17 ? 1550:30 /opt/sybase/bin/dataserver -d/gisdbmw/data3/master
-e/gisdbmw/syblog/gisdbmw.lo
sybase 6517 6007 0 Oct 17 ? 2002:43 /opt/sybase/bin/dataserver
-ONLINE:1,0,0x66006099,0xc3800000,0x2b4b6000,0x1159
sybase 6017 6015 0 Oct 17 ? 2:05 /opt/sybase/bin/backupserver -e/gisdbmw/syblog/gisdbmw_back.log
-N25 -C20 -Sgis
sybase 6527 6521 0 Oct 17 ? 1519:07 /opt/sybase/bin/dataserver
-ONLINE:3,0,0x66006099,0xc3800000,0x2b4b6000,0x1159
sybase 6521 6517 0 Oct 17 ? 1633:38 /opt/sybase/bin/dataserver
-ONLINE:2,0,0x66006099,0xc3800000,0x2b4b6000,0x1159
phys-mw1:/home/sa>
Note : If you find any problem with Sybase database please contact with 1-WAMPAPP team.
Please refer Remedy Incident: 292913
1. List the files in current directory sorted by size ? - ls -l | grep ^- | sort -nr
2. List the hidden files in current directory ? - ls -a1 | grep "^\."
3. Delete blank lines in a file ? - cat sample.txt | grep -v ^$ > new_sample.txt
4. Search for a sample string in particular files ? - grep Debug *.confHere grep uses the string Debug to search in all
files with extension.conf under current directory.
5. Display the last newly appending lines of a file during appendingdata to the same file by some processes ? - tail f
Debug.logHere tail shows the newly appended data into Debug.log by some processes/user.
6. Display the Disk Usage of file sizes under each directory in currentDirectory ? - du -k * | sort nr (or) du k . | sort -nr
7. Change to a directory, which is having very long name ? - cd CDMA_3X_GEN*Here original directory name is
CDMA_3X_GENERATION_DATA.
8. Display the all files recursively with path under current directory ? - find . -depth -print
9. Set the Display automatically for the current new user ? - export DISPLAY=`eval who am i | cut -d"(" -f2 | cut -d")"
-f1`Here in above command, see single quote, double quote, grave ascent is used. Observe carefully.
11
10. Display the processes, which are running under yourusername ? - ps aef | grep MaheshvjHere, Maheshvj is the
username.
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 <command> | col b > <output-file>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 <pid> Example: ptree 1267
26. Show the working directory of a process ? - pwdx <pid> Example: pwdx 1267
27. Display the processes current open files ? - pfiles <pid> 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
12