LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-02-2011, 10:12 AM   #1
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 242

Rep: Reputation: 1
Apache Server


Hi Friends!
I was asked this question in an interview,
What would be the answer of this question?

question was-
There are two partitions A and B both of 50 GB Apache Server is running on Partition A which is now getting full i.e. 48 GB only 2GB remaining.
I have B partition which is of 50GB completely free.
LVM concept is not used here.What should I do in this case?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-02-2011, 03:08 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Pretty simple. Assuming A and B are contiguous partitions:

1. Make sure you have a backup
2. Boot from CD/DVD with gparted
3. Delete B
4. Grow A into the now free space

parted will take care of resizing the ext2 or ext3 filesystem. If you have some weird filesystem, you may have to resize and check it with its own tools after rebooting.
 
2 members found this post helpful.
Old 04-02-2011, 03:10 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well there is no definite "right" answer. smallponds answer is fine, and in the longest terms probably the best without LVM - although there is no details about the partitions being on the same device, let alone contiguous. Alternatively though you could easily look to split directories across the two partitions, mounting one under the other, and there should be no blockers preventing that being possible at all, other than the directory layout and usage.

Last edited by acid_kewpie; 04-02-2011 at 03:12 PM.
 
1 members found this post helpful.
Old 04-04-2011, 10:36 AM   #4
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 242

Original Poster
Rep: Reputation: 1
NO, We are not supposed to reboot the system it is production server!
i want answer of this interview question!
 
0 members found this post helpful.
Old 04-04-2011, 10:46 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by manalisharmabe View Post
NO, We are not supposed to reboot the system it is production server!
i want answer of this interview question!
Barking orders at us will NOT get you an answer. You want an answer? Then figure it out yourself....if you can't you're not qualified for the job.

Sorry to sound harsh, but you were given two good answers, then you complain about them?
 
Old 04-04-2011, 01:39 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by manalisharmabe View Post
NO, We are not supposed to reboot the system it is production server!
i want answer of this interview question!
Wow, you really do appear to be a total tool. You certainly don't deserve to pass any intervirews with an awful attitude like that.
 
1 members found this post helpful.
Old 04-04-2011, 02:13 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by manalisharmabe
question was-
There are two partitions A and B both of 50 GB Apache Server is running on Partition A which is now getting full i.e. 48 GB only 2GB remaining.
I have B partition which is of 50GB completely free.
LVM concept is not used here.What should I do in this case?
For posterity's sake, I'd mention that the question on its own doesn't lend itself to a proper answer. More investigation would be needed to determine the root cause of the problem. (i.e. Is a log file growing out of control? Is something creating large core dump files? Is a shell user doing something that's chewing up space? Is this just a normal condition of a long-used system?)

Trying to tack on bandaids without first understanding the problem is only a temporary "fix".
 
2 members found this post helpful.
Old 04-04-2011, 02:13 PM   #8
Nermal
Member
 
Registered: Jan 2009
Distribution: Debian
Posts: 59
Blog Entries: 2

Rep: Reputation: 6
Quote:
Originally Posted by manalisharmabe View Post
NO, We are not supposed to reboot the system it is production server!
i want answer of this interview question!
Mate, there are some of us here that can understand where this type of question leads. These show the journey that the candidate takes and shows the desire to understand the problem and then offer solutions. Yes there is more than one correct answer, depending on the roll and type of company you interviewing for, and this then causes you to have to think about it.

Rebooting a production server is a problem... Then I would suggest that, if they are offering a critical service, their DR plan's are woefully inadequate.

What do you want, quick hack for an internal web server or full blue chip answer with bells and a risk study attached.

Have fun
 
  


Reply



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
apache server redirecting to apache.org? exley Linux - Software 1 03-13-2006 01:02 AM
problems setting up apache and vsftp server behind a router that serves as a server xone Linux - Security 1 04-08-2004 10:46 AM
Setup linux-apache server to access documents on NT server josephswagner Linux - Software 11 04-11-2003 08:35 AM
Apache Server Config, Mail Server, & Uploading johan the olive Linux - Networking 5 03-14-2003 11:42 PM

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

All times are GMT -5. The time now is 09:16 AM.

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