LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-23-2012, 11:13 PM   #1
LnxNeophyte
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
How do I add the second hard drive to the server


If this is a newbie post please move to that forum

I have a dedicated server that has 2 1TB hard drives, but I only see one 1 TB hard drive, customer support tells me this

"Note because you have installed a non raid system the second drive might be mounted to a different mointpoint."

I want the second 1 Tb hard drive to be extra space
becasue the one 1tb hard drive is at 90%

I have Plesk 10.3.1 but do I have to add the second hard drive on the shell command line? or where in plesk can I add the extra HD.

Plesk gives me this
-----------------------------------------------------
Disk Needs attention
Partition "/" utilization 89.5% used (819 GB of 914 GB) (?)

Partition "/boot" utilization 7.8% used (39.4 MB of 504 MB) (?)

Partition "sda" data transfer 10 B 1.02

Partition "sdb" data transfer 0 B
---------------------------------------------------

what commands do I need to add the second hard drive as extra space to the server, I dont want anything to happen to the main hardrive with 1 tb of content like acidentaly delete it.

Thanks
 
Old 09-24-2012, 04:48 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
Lightbulb

--->Check out the /etc/fstab file on the server and the man page ( man fstab in the teminal ) . You need to configure the drive for use .

I would also look at permisions and ownership to ensure the only the correct people get access. ( man chmod , usermod ) .

Sample -->

There are a number of ways to configure both from dive indentification ( UID , Dive Connection , Label ) and mounting options. This is my home personal system so it is a very plane jane. You may want to dig in on the subject as it sounds like there are multiple users.


Code:
# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid,size=4G	0	0

# OCZ : SSD -- /dev/sda
LABEL="Arch" 	/	ext4	defaults	0	1 
LABEL="Home" 	/home	ext4	defaults	0	1 

LABEL="swapfs" 	none	swap	defaults	0	1

# Main Storage

LABEL="E-Space"	/media/E-Space	ext4	defaults	0	1
LABEL="K-9"	/media/K-9	ext4	defaults	0	1  
LABEL="N-Space"	/media/N-Space	ext4	defaults	0	1 


# Back Up
LABEL="Archive-I"	/media/Archive-I	ext4	defaults	0	1
LABEL="Archive-II"	/media/Archive-II	ext4	defaults	0	1
 
Old 09-24-2012, 04:58 AM   #3
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Could you post the output of fdisk -l? Looks like all you need is to configure the mount point.

Regards
 
Old 09-24-2012, 05:25 AM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
You also need to format the drive first before it can be mount
 
Old 09-24-2012, 09:15 AM   #5
LnxNeophyte
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ukiuki View Post
Could you post the output of fdisk -l? Looks like all you need is to configure the mount point.

Regards

Hello here it is

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 1 121602 976762583+ ee GPT

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c4320

Device Boot Start End Blocks Id System
/dev/sda1 * 1 66 524288 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 66 327 2097152 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 327 121602 974139392 83 Linux

I would like to know what are the commands to make sdb1 extra space on my website I just have one website on a dedicated server, sda1 is the boot one that is used right?

Also would like to know at what moment those the second hard drive begin to work, I dont want the main hard drive to get 100% full so I dont get errors, I would like the second hard drive to begin storing data at 94% capacity of the main hard drive.
I hope I can do that.

Last edited by LnxNeophyte; 09-24-2012 at 10:23 AM.
 
Old 09-25-2012, 04:37 AM   #6
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
You need to install, format then edit the /etc/fstab configuration to be able to use.

Here is a link to a fstab tutorial.

http://www.linuxplanet.com/linuxplanet/tutorials/7048/1
 
Old 09-25-2012, 01:16 PM   #7
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Useful tool for formating hard disks is gparted, i noticed your sdb drive has been set under GPT you might want to take a look at this. As jv2112 mentioned you will need to add to the file fstab the command to mount your drive/partitions on boot.
Quote:
Originally Posted by LnxNeophyte View Post
I would like to know what are the commands to make sdb1 extra space on my website...
The mount point can be a new folder or directory under your website directory, this is just an idea, i dunno what exactly do you have there, but this is basically what you need. The fstab file is under etc folder, remember to make a backup of that file before you do any changes.

Regards
 
  


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
Add New Hard Drive L1nuxbug Linux - Hardware 5 06-14-2007 02:55 AM
How to Add a Hard Drive? notooth Linux - Newbie 12 10-26-2005 04:16 PM
Add hard drive Wardy Linux - Newbie 3 01-19-2005 05:34 PM
How to add a hard drive vicvac Linux - Hardware 9 03-18-2004 02:17 PM
add hard drive mnauta Linux - Hardware 1 01-09-2004 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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