Solved

Adding a SCSI disk

Posted on 2007-12-02
4
873 Views
Last Modified: 2013-12-27
Hi,

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.

Thanks
0
Comment
Question by:kapot
4 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 20394099
after install the hard drive, power on the box to OBP promp
( <Stop> A, to get to OBP), type in:
probe-scsi
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 :
            eg:
             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.
0
 

Author Comment

by:kapot
ID: 20394331
Hi yuzh,

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

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

0
 
LVL 40

Expert Comment

by:omarfarid
ID: 20394361
Hi,

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
0
 
LVL 16

Accepted Solution

by:
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

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Title # Comments Views Activity
Vmware Vswitch  VS  Redhat  Bridge 1 115
Convert OverPunch 25 66
Unix Script: Loop over all days of a month 17 106
Field name with special character (Ñ) in Oracle 11 87
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.

860 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