add a hard disk on solaris 2.4

how to add a new scsi hard disk on sun/solaris 2.4 ?
ancelotAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
burnotteConnect With a Mentor Commented:


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
 
ancelotAuthor Commented:
ok, but do i have to use fdisk utility to partition and can i
have only one partition on this disk ?
0
 
burnotteCommented:
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
All Courses

From novice to tech pro — start learning today.