LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-10-2005, 07:16 AM   #1
asif_mohdshafi
LQ Newbie
 
Registered: Jul 2004
Location: somewhere
Distribution: RH9
Posts: 4

Rep: Reputation: 0
Question scsi hard disk removed


i have a linux system with 4 scsi hard-disks . I have removed scsi disk 2 .ie. sdb1.
Now the system boots and takes to me to shell and it says repair file system or press cntrl-D to continue.
Do i have to run fdisk and just rewrite the partition table.
Fdisk -l shows all my exsisiting partions intact with the ext3 partitions (but ofcourse except for the removed disk).
 
Old 01-10-2005, 07:43 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,862

Rep: Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358
I assume this disk was just a data disk. Try removing the reference to sdb1 in the /etc/fstab file.
 
Old 01-10-2005, 08:05 AM   #3
asif_mohdshafi
LQ Newbie
 
Registered: Jul 2004
Location: somewhere
Distribution: RH9
Posts: 4

Original Poster
Rep: Reputation: 0
what i did was removed the disk entry from /etc/fstab and shutdown and removed the disk. And on reboot it tells to correct the filesystem.
 
Old 01-10-2005, 08:34 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,862

Rep: Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358
So what was on this partition?
 
Old 01-10-2005, 08:48 AM   #5
asif_mohdshafi
LQ Newbie
 
Registered: Jul 2004
Location: somewhere
Distribution: RH9
Posts: 4

Original Poster
Rep: Reputation: 0
There was a single filesystem /mydata on this entire disk. I moved the data elsewhere and removed the disk.I want to start the sytem with only three disks and all data intact...
 
Old 01-10-2005, 10:16 AM   #6
asif_mohdshafi
LQ Newbie
 
Registered: Jul 2004
Location: somewhere
Distribution: RH9
Posts: 4

Original Poster
Rep: Reputation: 0
OK I solved the problem --my mistake i should have concentrated a bit more
"All I need to know I could have learned in Kindergarten
... if I'd just been paying attention."
I just edited the /etc/fstab and changed the sdc1 to sdb1 and sdd1 to sdc1
I should have paid attenton to the error message.
It was trying to fsck sdd1 which did not exist because the drive names had changed.
Thanks any way..
 
Old 01-16-2005, 02:50 AM   #7
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,852

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Ah...

That's been one of my biggest complaints about Linux handles disk devices: It's not much better than DOS disk drive letters. Add or remove a drive and everything "downstream" gets a new name. If you did this to the first SCSI bus, not only do the downstream devices get new names but the entire second (or third, etc.) bus is screwed up. Insane, IMHO. I had hoped, a few years ago, that the SCSI team might do well to adopt the SCSI naming convention used by, say, SYSV and some of the other commercial UNIxes and give devices names that specify the controller number, SCSI ID, partition numbers (ought to be familiar to anyone who's spent five minutes poking around on a Solaris box). I eas encouraged when I learned that the devfs filesystem was moving in that direction. It handled IDE devices in a similar fashion, IIRC. But now devfs is pretty much phased out. Using udev might be of some help but so far it looks to me to be a work in progress and a bit too complex to be really useful for this. (OK, end of rant :-) )

There is a method for making the OS less aware of changes to the SCSI devices names and it involves assigning a volume label to each partition. You then refer to that volume label in /etc/fstab. For example, instead of having
Code:
/dev/sda2  /usr ...
in fstab, you could label the partition using
Code:
tune2fs -L "usr" /dev/sda2
and then the record on fstab would be changed to read
Code:
LABEL=usr  /usr  ...
The downside to using the labels is that you eventually forget just where things are physically located and if a device fails, you may not immediately be able to tell just what's been clobbered. Keep a comment in /etc/fstab noting what the label is on each physical partition to avoid confusion later.

In your case, the boot process would still have complained but you would have seen the volume name that it was having trouble with. Then you would have been able go into single user mode and edit /etc/fstab and comment out the line(s) corresponding to the removed device.

Here's a couple of interesting situations where volume labels are handy: 1.) The boot time filesystem check complains that /dev/sdb1 has problems. Checking it in single user show all sorts of errors. You panic because that's where half of the OS is supposed to be. What happend? The second disk didn't spin up (future failure looming) and fsck just tried to check a swap partition on /dev/sdc1. (I just had this happen about a week ago.) 2.) The check of all of the filesystems on the last SCSI disk fail. What happened? Well, the same thing as case one could have happened; it depends on the layout of the partitions. Or drive three could have been the culprit and drive four got seen as drive three. Whatever. The use of labels would have nailed exactly which drive was the problem. (Like I mentioned above, having a record of what's where is still important.)

Check labels out. They aren't just a gimimicky thing thrown into tune2fs just for the heck of it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM - adding a new scsi hard disk ddaas Red Hat 1 07-28-2005 02:13 AM
SCSI hard disk detection??? jjonstar Linux - Hardware 2 06-11-2005 02:23 AM
Removed second hard disk, Mandrake will not boot. TravisOSF Linux - Hardware 5 06-22-2004 11:28 AM
Hard disk + IDE-SCSI palanisaravanan Linux - Hardware 4 04-21-2004 11:05 AM
Mounting SCSI hard disk michael_mead Linux - Hardware 15 09-25-2003 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration