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 12-22-2006, 10:46 PM   #1
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Rep: Reputation: 16
Hardrive Removal


Hi Guys

One of my hard drive in my HP server machine got crashed .on it /var/log/squid/ was mounted and it is my sdc.Now i have to remove this harddrive from my machine .How can i safely umount it without stoping any of my running services.

A clue or link to some howto would be enough.

Thanks
Talat
 
Old 12-23-2006, 12:01 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,133
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
I would not remove a hard drive without removing the power from it, turning the machine off.

To unmount a file system use umount
http://linuxcommand.org/man_pages/umount8.html
You'll have to be root.
 
Old 12-23-2006, 06:41 PM   #3
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
Hi teckk

Thanks for the reply .Actually harddrive in my server is hot swapable.So at the moment i just wanted to remove it and see if i can send it for repair work.

the link u provide is good but is there any better howto which discuss how to deal with situation like this

Regard
Talat
 
Old 12-24-2006, 08:19 AM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,133
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
I assume you still need /var/log/squid that resides on /dev/hdc but you need to remove the hard drive. Unless you have a raid array I don't know how you can do both. I guess you could do a
Code:
#umount /var/log/sqid
Partition and format another drive, make a /var/log/sqid on it and put it in the machine.
I think that you will have to unmount the whole file sys to do that though. I don't know if you can just unmount /var/log/squid, put another drive in and remount it. You may just have to get another drive ready, shut the machine off for 3 min, put the drive in, and power back up. I don't know if you can unmount /var with the file sys mounted, never tried.

Some Sys Admin may know better. If you can then use the mount and umount commands.
 
  


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
Second Hardrive Die Woud Linux - Hardware 16 05-04-2005 09:58 AM
New Hardrive jerimya Linux - Newbie 9 07-23-2004 06:21 PM
hardrive citrus Linux - Hardware 3 01-18-2004 09:35 AM
How much Hardrive would I need? snatale1 Mandriva 2 12-10-2003 06:31 PM
New Hardrive ggramajo Linux - Software 4 10-21-2001 08:31 AM

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

All times are GMT -5. The time now is 04:46 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