LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2006, 03:50 AM   #1
dimsh
Member
 
Registered: Aug 2005
Distribution: Debian, Ubuntu, Fedora
Posts: 74

Rep: Reputation: 15
Is it safe to remount a partition on a working server


Hi,

I want to remount /dev/hdb1 which is ext3 and it is mounted with defaults option, and I need to mount it with noatime option on a working mail server.

My question is, is it safe to issue "mount /dev/hdb1 -o defaults,remount,noatime" ?
can I do it while the server is runing and the filesystem handling files IO operations or I have to change /etc/fstab and restart the server.


Regards
 
Old 05-31-2006, 06:31 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Hi Dimsh,


You can do following which I found to be safe:-


change /etc/fstab and add noatime option to "/"

Then issue following command:-


mount -a

I have tested it on machine.


Disclaimer:- blah...
 
Old 05-31-2006, 06:36 AM   #3
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
NOATIME?

Did not worked I think:-
STAT REESULTS:-
BEFORE

File: `./xl.tar'
Size: 575150080 Blocks: 1124456 IO Block: 4096 regular file
Device: 1602h/5634d Inode: 1245282 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2006-04-05 11:51:21.000000000 +0530
Modify: 2006-04-05 11:51:21.000000000 +0530
Change: 2006-04-05 11:51:21.000000000 +0530

BEFORE AND "TOUCH" ED

File: `./xl.tar'
Size: 575150080 Blocks: 1124456 IO Block: 4096 regular file
Device: 1602h/5634d Inode: 1245282 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2006-05-31 17:02:19.000000000 +0530
Modify: 2006-05-31 17:02:19.000000000 +0530
Change: 2006-05-31 17:02:19.000000000 +0530

AFTER
File: `./xl.tar'
Size: 575150080 Blocks: 1124456 IO Block: 4096 regular file
Device: 1602h/5634d Inode: 1245282 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2006-05-31 17:02:19.000000000 +0530
Modify: 2006-05-31 17:02:19.000000000 +0530
Change: 2006-05-31 17:02:19.000000000 +0530

TOUCHED:-
File: `./xl.tar'
Size: 575150080 Blocks: 1124456 IO Block: 4096 regular file
Device: 1602h/5634d Inode: 1245282 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2006-05-31 17:04:04.000000000 +0530
Modify: 2006-05-31 17:04:04.000000000 +0530
Change: 2006-05-31 17:04:04.000000000 +0530

I "diff"ed those files and found last three lines changed every time. So I concluded that It did not worked!

Am I correct?
 
Old 05-31-2006, 06:58 AM   #4
dimsh
Member
 
Registered: Aug 2005
Distribution: Debian, Ubuntu, Fedora
Posts: 74

Original Poster
Rep: Reputation: 15
My method works,

Code:
mount /dev/sda3 -o defaults,remount,noatime
then the access time does not change.

thanks, but I am considering files corruption or some thing bad on a running server, that what i meant by safe

regards
 
  


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
Partition Error "errors=remount-ro" xpix Ubuntu 4 02-17-2006 04:48 PM
adding a partition - is it possible/safe ? kloss Linux - General 5 12-04-2005 11:33 AM
Safe to resize linux partition? Mackentack Linux - Newbie 4 05-02-2005 06:18 AM
Safe to resize root partition with PM8? Ohmn Mandriva 6 07-09-2004 09:29 AM
remount root to new partition khutze Linux - Software 0 08-20-2002 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration