Solved

add a hard disk on solaris 2.4

Posted on 1998-02-04
3
303 Views
Last Modified: 2013-12-16
how to add a new scsi hard disk on sun/solaris 2.4 ?
0
Comment
Question by:ancelot
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
burnotte earned 100 total points
ID: 1812889


just plug the this in scsi chain ( be carefull not to use a target id that is already in use * )

type the following commands ( you must be root)

drvconfig
devlinks
disks

that is all you have to do.

another way to do this is to stop the machine
plug the disk

type at the ok prompt : boot -r
----------------

than you can format the disk with the command : format
and create a file system file the command : newfs
________________________________

* usually cdrom use the target id 6
        root disk target id 3 if it is old machine ( ss5 , ss10 , ss20 , ....)
              or target id 0 if it is newer machine ( ultra ...)

if you are not sure which target id you can use then stop the machine and type at the ok promp : probe-scsi-all
and look for a free target id.


0
 

Author Comment

by:ancelot
ID: 1812890
ok, but do i have to use fdisk utility to partition and can i
have only one partition on this disk ?
0
 
LVL 1

Expert Comment

by:burnotte
ID: 1812891
to create partition on the disk , you have to use the command: format
type the command format then select the new disk for exemple c0t1d0

then choose  chose partition and then modifie .

and do what you want one or more partition

then label the disk and quit the format command

so once you have done this , you have to create a file system on the partition you have created.
for this you have to use the command : newfs

for exemple if you have create one partition on the slice 0 on the disk target 0 on the controler 0 type the following :
newfs /dev/rdsk/c0t1d0s0

in c0t1d0s0
c0 means controler 0
t1 means target id 1
s0 means slice 0
d0 is always d0 except if you have a SSA but i don t think it is the case .

i hope this will help you.
but for more information on the command format and newfs have a look at the man pages .
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question