Removable External SCSI Harddrive


 
Thread Tools Search this Thread
Operating Systems Solaris Removable External SCSI Harddrive
# 1  
Old 07-18-2008
Removable External SCSI Harddrive

Hi guys,

I have a solaris 9 operating system on a sun solaris machine and one external removable scsi drive connected to it.

When i type the following command this is what is displayed:

#format

AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 17832 alt 2 hd 255 sec 63>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@0,0
1. c1t0d0 <DEFAULT cyl 17846 alt 2 hd 255 sec 63>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0


i then took out the drive 1. and type in format command:

#format
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 17832 alt 2 hd 255 sec 63>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@0,0
1. c0t2d0 <Drive not available>


As soon as i take out the removable external hard drive and re-type in the format command it will say the drive is not available....

How do i remove drive 1? I understand this can be done when i reboot the system. I dont want to reboot the system every time and I want to manually remove it and not show in the format display.

Firstly, where does this information reside about the drive?

Secondly, is there a command which remove drive 1 manually and not permanently remove it after I want to re-plug it?

Thanks
# 2  
Old 07-18-2008
You may want to clean up the device files and rebuild them by doing:
devfsadm -Cv
Btw whats the model of your solaris box? if using FC-AL disk, you have to unconfigure using cfgadm command.
# 3  
Old 07-22-2008
I have a sunblade 2000 sun machine.

I typed in:
#devfsadm -Cv

then i type in:
#format

but still the drive c2t2d0 <Drive not available>.

I then typed in
#rm -r /dev/rdsk/c2t2d0s*

then i typed:
#format

this removes it temporary.

meaning if i re-typed
#devfsadm

it would re-establish the drive being there c2t2d0 <Drive not available>.

how would i remove it even when i re-type in devfsadm?

I did try to cfgadm command but that show the drive as configured even those it is not connected??
# 4  
Old 07-22-2008
You should never do this. #rm -r /dev/rdsk/c2t2d0s* . Its a dangerous attempt, yup also depends on your h/w architecture.
#drvconfig -c disks (did you do this)

If you keep on seeing that the disk drive is not available, most probably the disk has gone bad (possible). meaning you wont be able to access any data on that disk, unless your disk is mirrored to the primary.

what does your iostat -En output display? can you post the output of the following command as well?
#grep -i warn /var/adm/messages
# 5  
Old 07-22-2008
"If you keep on seeing that the disk drive is not available, most probably the disk has gone bad (possible). meaning you wont be able to access any data on that disk, unless your disk is mirrored to the primary."


No, the disk was disconnected and therefore i expected that when i type in format. This line "c2t2d0 <Drive not available>" should not even appear.


The main reason i want to remove this line ""c2t2d0 <Drive not available>" is because i have a script that checks the output of the format command. If this line exists than it will pump out scsi not connected for that drive.

Also i have tried the command #drvconfig -c /dev/rdsk/c2t2d0s0

i couldnt see what this does?
# 6  
Old 07-22-2008
use this:
devfsadm -C -c disk -v
# 7  
Old 07-22-2008
Workaround: You'll just have to wait for the next reboot. people
recommended the -C flag to devfsadm, adding -v as well so that you could see
what was happening, 'update_drv sd', manually deleting the offending /dev/dsk and /dev/rdsk entries, and cfgadm. But I will say none will work. So, wait for next reboot. If you've done miracles to clear that out, pls share with all of us Smilie Gd luck dude!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 8 - Removable hard disk

Hi Gurus, I have difficulty in configuring removable hard disk in Solaris 8. I have connected hard disk to machine but I do not know how to configure it. Kindly tell me, how should I configure it .. so that I can create a mount point on this and write files to them. Regards Srini (7 Replies)
Discussion started by: sri243
7 Replies

2. Solaris

Connect an External SCSI Hard Drive to Ultra 80

Guys, I have googled and checked this forum in detail and couldn't find any satisfactory answers for my problem. I am trying to connect a external SCSI hard Drive(Sea Gate) to a Ultra 80. I connected it powered it up and at OK prompt did : boot -r system comes up and complains about not... (6 Replies)
Discussion started by: ajnabi
6 Replies

3. Solaris

removable flash drive

I have a removable usb flash drive which is visible below as no. 2 # rmformat Looking for devices... 1. Volmgt Node: /vol/dev/aliases/cdrom0 Logical Node: /dev/rdsk/c0t0d0s2 Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0 Connected Device: HL-DT-ST DVD+-RW... (4 Replies)
Discussion started by: seyiisq
4 Replies

4. UNIX for Dummies Questions & Answers

How to copy MBR from old harddrive to new harddrive?

How do I copy the master boot record from one harddrive to another or how to install just the MBR? (7 Replies)
Discussion started by: shorty
7 Replies

5. Solaris

Unix command to remove external SCSI harddrive

Hi All, I have an external scsi harddrive (HD) connected directly to the workstation. I understand when the external HD is connected and turned on, and type in "devfsadm" command. Unix will detect it but not mount the drive. So by typing in "format" command it will display the following: #... (6 Replies)
Discussion started by: tlee
6 Replies

6. AIX

mirror external scsi to san

Hi, How do I mirror an external scsi vg to one hdisk san? The vg has multiple hdisks and the san hdisk has only one. Is this possible or do I need to create the same hdisks as the scsi? What I meant is, if the scsi vg has 10 hdisk then I need to create also 10 hdisk of san with the same... (6 Replies)
Discussion started by: itik
6 Replies

7. UNIX for Dummies Questions & Answers

External SCSI hard drive

Someone gave me a small external SCSI hard drive for my SunOS 5.8 test system. How do I make Unix see the hard drive? (2 Replies)
Discussion started by: FredSmith
2 Replies

8. UNIX for Dummies Questions & Answers

Connecting an external SCSI drive to a unix computer

I am interested in booting up my unix computer by connecting an external SCSI drive( intergraph) to it. The unix box is also an intergraph computer. Whenever I boot it, it gives me an error that says Drive not ready, Insert Boot Diskette in A. What am I doing wrong? Any input would be... (3 Replies)
Discussion started by: teruotor
3 Replies

9. Solaris

mounting an external scsi tape drive

hi- I just installed a quad gigaswift ethernet scsi card to my sunblade 150. I checked with the docs, and got all of the required drivers on the box. Now, I'm trying to mount an external scsi tape drive with no luck. I set the scsi address on the external drive to 0. Here's what I'm coming... (9 Replies)
Discussion started by: ECBROWN
9 Replies

10. Linux

read removable disk

Hello I am trying to read from a small disk , 256 MB , removable sandisk.I am not able to access the device. The system does not recognise my disk to copy file s from the disk. Please post your solution in this issue. Thanks (2 Replies)
Discussion started by: singh85
2 Replies
Login or Register to Ask a Question