LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 02-06-2012, 10:50 AM   #1
JohnnyRuin
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
hotswap disk shows as sdb then sdc?


My backup process uses rsync to duplicate my backup onto hot-swapped hard drives. The SATA hot-swap unit is wired to SATA1 on the mobo. My script mounts /dev/sdb1 does the rsync, then umounts the disk. The disks used vary in size but they’re all ext3 file systems and it works pretty well most of the time. Every month or two I get a mount failure on the swapped drive. I use fdisk -l and discover that the drive is now seen as /dev/sdc1. I restart the machine and the disk appears as /dev/sdb1 again but it’s read-only. Disgusted, I format the disk and run the backup copy (which works fine). When next disk is replaced the system doesn’t see a disk at all. I restart the machine and everything hums along again until the next incident. CentOS 5.7.

Should I be doing more than umount prior to changing the drives? Having the disk come up /dev/sdc1 challenges my understanding of how these device names get assigned. Under what circumstance does the the second disk on a machine come up as /dev/sdc? It seems complicated to mount by UUID or Label (since my swap person sometimes forgets a disk, or is sick).
 
Old 02-06-2012, 11:12 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,405

Rep: Reputation: 212Reputation: 212Reputation: 212
Since the UUID uniquely identifies each device (and partition on a drive), you could try writing UDEV rules to mount each UUID at /dev/sdb1, assuming each backup drive has only one partition.

Bear in mind that if you try to attach two or more backup drives as the same time, you will have a conflict, with only the first drive mounted and the others generating error messages.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i dd if=/dev/sdb of=/dev/sdc if hdsize(sdb)>hdsize(sdc) & size(sdb)<hdsize(sdc) ? ununun Linux - Software 6 06-28-2011 11:48 AM
Problems with an USB hard disk (ext3) - sdb reappeared as sdc cabrilo Linux - Hardware 6 02-18-2011 04:44 AM
[SOLVED] Adding harddrive sdb becoms sdc jocef Linux - Hardware 2 01-13-2011 01:53 PM
Installing grub on /dev/sdb or /dev/sdc Skaperen Ubuntu 4 07-18-2009 07:45 PM
sda sdb sdc drives not consistent ufmale Linux - Newbie 6 05-27-2008 06:38 PM


All times are GMT -5. The time now is 07:24 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration