Computing.Net > Forums > Solaris > Hard Disk Stuff

Hard Disk Stuff

Reply to Message Icon

Original Message
Name: Unksoc
Date: December 30, 2003 at 08:00:45 Pacific
Subject: Hard Disk Stuff
OS: Solaris 9
CPU/Ram: 256
Comment:

Im trying to get some help about couple things, first im a newbie in solaris, and sometime when i was install it, i saw a "console" where i could see some icons with the computers in the lan and some other specifications of my sparc, does anybody know where is that program or how does it call, coz i need to know how many hds the machine has, and other help that i need is that if im not wrong the hd that is using now has 40 gb but when i try to install oracle i get a message about not enough space, then what can i do pls help me, thanks for all and have a happy new year


Report Offensive Message For Removal


Response Number 1
Name: rickfarrell
Date: December 30, 2003 at 12:29:54 Pacific
Reply: (edit)

The problem with the disk space may be that you don't have enough room in the partition. You may want to run the "df -k" to see how the drive is partitioned. For the first problem you mentioned I'm not sure what you're talking about, you mean the CDE? If that's the case at the "Welcome to ..." you have options to select what envirnment you want to log into, from there select CDE and I'm sure you will see your tool bar, if that's what you were referring to.


Report Offensive Follow Up For Removal

Response Number 2
Name: Unksoc
Date: December 30, 2003 at 12:49:34 Pacific
Reply: (edit)

Well i found what i need is SMC, now when i use the command that u tell me i get this
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t2d0s0 241599 63205 154235 30% /
/dev/dsk/c0t2d0s6 4130982 2054885 2034788 51% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/dsk/c0t2d0s5 4130982 51692 4037981 2% /var
swap 1668960 24 1668936 1% /var/run
swap 2446016 777080 1668936 32% /tmp
/dev/dsk/c0t2d0s4 2055463 204519 1789281 11% /opt
/dev/dsk/c0t2d0s7 25826376 9 25568104 1% /export/spare
/vol/dev/dsk/c0t3d0/iws
238552 238552 0 100% /cdrom/iws

but dunno how to use this info hope u can help me, thanks again


Report Offensive Follow Up For Removal

Response Number 3
Name: phaedo
Date: December 31, 2003 at 06:32:47 Pacific
Reply: (edit)

How many hard drives? EASY!
root# format

select the disk you want to look at or partition/format/or muck with.

EXAMPLE:
# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@0,0
1. c0t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@1,0
2. c0t2d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
...
...
<truncated for space>

"^D" to break out. Or select a disk and "q"

(Note, if you are working on a E450, those disk numbers do not correlate to the disk numbers on the chassie. c0 will always be disks 0-3, after that it depends on how the scsi controllers were cabled.)

ADMIN TIP: note the hardware device name on the second line. If a disk goes bad /var/adm/messages will tell you something like:

Dec 31 08:02:57 out009 scsi: [ID 107833 kern.warning] WARNING: /pci@6,4000/scsi@4/sd@3,0 (sd63):
Dec 31 08:02:57 out009 disk not responding to selection

With `format` you can find the bad disk rather easily.


You want to know the disk size?
$ iostat -En

this will give you detailed info on all your disks, including disk size. (I don't think -n is supported in 2.6 so you'll be given the sd# instead of the full c0t0d0 #.)

Installing Oracle: read the install docs first!

You want to make sure you stay within OFA (Optimal Flexable Architecture) guidelines--- even if you have a single disk!
MEANING: Oracle wants you to place everything in a specific hierarchy. You can name it what you want, but the structure is the same. So for almost every Oracle install, you will see a list of directories like /db01, /db02, /db03. "db01" will hold $ORACLE_HOME and be install directory and hold data if you want. The install directory would be in /db01/app/oracle where as your DBF files will be under /db01/oradata/${ORACLE_SID} . In /db02 your DBF files will be under /db02/oradata/${ORACLE_SID} (without a /db02/app/oracle directory), etc. Since your ORACLE_SID is your database, this makes it really easy to divide multiple databases on a single server without installing ORACLE twice.

Examples, my lab database is on multiple disks:
/dev/dsk/c2t0d2s7 10397084 1569483 8723631 16% /u02
/dev/dsk/c2t0d1s7 10397084 2704995 7588119 27% /u01
/dev/dsk/c2t0d3s7 10397084 1569483 8723631 16% /u03
/dev/dsk/c2t0d4s7 10397084 4877952 5415162 48% /u04

"/u01" is where I installed oracle

You can see I have one database:
ahlstrom@markjump:/u02/oradata
$ ls -l
drwxr-xr-x 2 oracle dba 512 Sep 29 16:15 MAHLSTRO

Example of mutliple databases:
stats1ha:oracle:SMTPAUTH:/stt1/ora01/oradata
$ ls
SMTPAUTH STS1R

since this is my install direcotry (ora01) I also have an app/oracle directory

stats1ha:oracle:SMTPAUTH:/stt1/ora01
$ ls -l
total 0
drwxr-xr-x 3 oracle dba 24 Nov 24 1999 app
drwxr-xr-x 4 oracle dba 40 Apr 17 2002 oradata

If you have the disks and space, make sure you give your database enough room. One DBA issue: while running in archivelog mode, if the filesystem housing your archivelogs (arch_dest) fills up, your database will hang /crash because a new achivelog file can not be generated. And then there are performance issues, etc.,etc.


Report Offensive Follow Up For Removal

Response Number 4
Name: rburnette59
Date: January 7, 2004 at 20:13:27 Pacific
Reply: (edit)

Followup question for Solaris/Oracle admins...
I'm about to install Oracle 9i on an Ultra 10
with 1GB of RAM, one 40Gb drive for OS, and one 80Gb drive for Oracle and whatever else I install later. Not a production machine...just playing/learning at home.

Any recommendations on how OS should be partitioned? For example, Oracle wants /tmp at least 600mb. Should that be its own partition/slice?

Thanks for the feedback...Ron


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Hard Disk Stuff

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge