Monday, December 3, 2007

creating raw partion on solaris and installing ASM

bash-2.05$ su -
Password:
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1f,4000/scsi@3/sd@0,0
1. c0t1d0
/pci@1f,4000/scsi@3/sd@1,0
2. c0t2d0
/pci@1f,4000/scsi@3/sd@2,0
3. c0t3d0
/pci@1f,4000/scsi@3/sd@3,0
Specify disk (enter its number): 3
selecting c0t3d0
[disk formatted]


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> print
`print' is not expected.
format> partition


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
! - execute , then return
quit
partition> print
Current partition table (original):
Total disk cylinders available: 7506 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 - 7505 16.86GB (7506/0/0) 35368272
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 7505 16.86GB (7506/0/0) 35368272
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

partition> modify
Select partitioning base:
0. Current partition table (original)
1. All Free Hog
Choose base (enter number) [0]? 1

Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 7505 16.86GB (7506/0/0) 35368272
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

Do you wish to continue creating a new partition
table based on above table[yes]? yes
Free Hog partition[6]? 6
Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 500mb
Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 15gb
Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]:

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 217 501.57MB (218/0/0) 1027216
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 7505 16.86GB (7506/0/0) 35368272
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 218 - 6893 15.00GB (6676/0/0) 31457312
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 6894 - 7505 1.38GB (612/0/0) 2883744
7 unassigned wm 0 0 (0/0/0) 0

Okay to make this the current partition table[yes]? yes
Enter table name (remember quotes): "asm"

Ready to label disk, continue? y

partition> q


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> verify

Primary label contents:

Volume name = < >
ascii name =
pcyl = 7508
ncyl = 7506
acyl = 2
nhead = 19
nsect = 248
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 - 217 501.57MB (218/0/0) 1027216
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 7505 16.86GB (7506/0/0) 35368272
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 218 - 6893 15.00GB (6676/0/0) 31457312
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 6894 - 7505 1.38GB (612/0/0) 2883744
7 unassigned wm 0 0 (0/0/0) 0

format> q
#


# ls -lL c0t3d0*
crw-r----- 1 root sys 32, 24 Nov 28 18:04 c0t3d0s0
crw-r----- 1 root sys 32, 25 Nov 28 18:04 c0t3d0s1
crw-r----- 1 root sys 32, 26 Nov 28 18:04 c0t3d0s2
crw-r----- 1 root sys 32, 27 Nov 28 18:04 c0t3d0s3
crw-r----- 1 root sys 32, 28 Nov 28 18:04 c0t3d0s4
crw-r----- 1 root sys 32, 29 Nov 28 18:04 c0t3d0s5
crw-r----- 1 root sys 32, 30 Nov 28 18:04 c0t3d0s6
crw-r----- 1 root sys 32, 31 Nov 28 18:04 c0t3d0s7
# cd
# pwd
/
# mkdir asmdisks
# cd asmdisks
# mknod disk1 c 32 28
# ls -l
total 0
crw-r--r-- 1 root other 32, 28 Dec 3 15:07 disk1
# cd disk1
ksh: disk1: not a directory
# chown oracle:dba disk1
# ls -l
total 0
crw-r--r-- 1 oracle dba 32, 28 Dec 3 15:07 disk1
#

I GOT this error

sh: sysdef: not found ( while running the runInstaller)

while installing the software mkae change diskovery path to /asmdisk1/disk1

i am trying with external redundancy

run when the installer asks /ofs/app/oracle/product/10.2.0.1/root.sh

No comments: