Adding a SCSI disk

Posted on 2007-12-02
Last Modified: 2013-12-27

Anyone can show me a step-by-step procedure to add a new SCSI disk into a Sun Solaris system?

So, imagine a working Sun Solaris system and I bought a new SCSI disk (from Sun).

I put the disk inside.

Now what?

Please describe the steps in much detail.

The disk should be mounted in /backup

The goal is to use the disk and write a small text file in it.

Question by:kapot
LVL 38

Expert Comment

ID: 20394099
after install the hard drive, power on the box to OBP promp
( <Stop> A, to get to OBP), type in:
to make sure the box can see the new hard disk, then perform a reconfigure boot, by typing in:
boot -rv
when the system fully boot up, login as root (or login as a user then su as root), then:

 1. run format -> partition the new disk
  2. creat a new file systems on the hard disk :
             newfs /dev/rdsk/c0t1d0s7
  3. create the mount point for the hard disk:
     mkdir /backup
  4. edit /etc/vfstab
     /dev/dsk/c0t1d0s7       /dev/rdsk/c0t1d0s7     /backup ufs     2       yes     -
5. mount the hard disk:
    mount /backup

    Note: please replace c0t1d0s7 with your real disk partion name.

Author Comment

ID: 20394331
Hi yuzh,

How did you get the "s7" from the /c0t1d0s7   ?

When I run format, it displays only something like /c0t1d0

LVL 40

Expert Comment

ID: 20394361

The device name foe the disk is c0t1d0 (controller 0 target 1 disk 0).

Each disk can have up to 8 partitions / slices from 0 to 7.

When you want to refer to partition 7 / slice 7 device name to create a file system / mount it then you use c0t1d0s7
LVL 16

Accepted Solution

Hanno Schröder earned 250 total points
ID: 20409701
Use format this way:
a) Define disk type
    - run "format" -> select disk (assume it to be 1 or higher)
    - choose "type" and use "auto" if available, otherwise a matching type
b) Partition the disk for usage
    - still in format select "partition"
    - Change partitions (start, sizes etc.) as you like. Partition 2 is always,
       the whole disk and should not be changed.
    - When done, save the partiton table with "label" command in format
c) Exit format by entering "quit" twice or simply pressing "^D".
btw: Entering "h" or "?" always display the menu of choices in format.
d) Now, you are ready to place file systems on any of the partitions you
    created above, using the "newfs" command.
e) Newly created filesystems can be mounted using "mount":
     # mkdir /my/fs1 /my/fs2
     # mount /dev/dsk/c0t1d0s5 /my/fs1
     # mount /dev/dsk/c0t1d0s6 /my/fs2
f)  To make these mounts permanent (to have it mounted automatically
    when your syste boots), they must be entered into /etc/vfstab:
     /dev/dsk/c0t1d0s5 /dev/rdsk/c0t1d0s5    /my/fs1  ufs     2       yes     -
     /dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s6    /my/fs2  ufs     2       yes     -
    If you are not familiar with "vi", you can add these two lines kile this:
     # echo "/dev/dsk/c0t1d0s5 /dev/rdsk/c0t1d0s5   /my/fs1  ufs   2   yes   -" >> /etc/vfstab
     # echo "/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s6   /my/fs2  ufs   2   yes   -" >> /etc/vfstab
   You may want to make a backup copy before applying these modifcations:
     # cp /etc/vfstab /etc/vfstab.SAVE


Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

770 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