LinuxQuestions.org
Visit Jeremy's Blog.
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 03-07-2014, 01:47 AM   #1
nixboy
LQ Newbie
 
Registered: Mar 2014
Location: root
Distribution: centos
Posts: 4

Rep: Reputation: Disabled
Question how to use my second hard disk space on centos?


I got this cheap hardware raid-1(2 x 1TB) server for learning purpose.

my question is how i can use disk space on 2nd disk?

Here is fdisk output..

Code:
#fdisk -l /dev/[sh]d?
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: 0x0003199b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2065    16582656   fd  Linux raid autodetect
/dev/sda2   *        2065        2091      204800   fd  Linux raid autodetect
/dev/sda3            2091      121602   959973376   fd  Linux raid autodetect

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: 0x000daed9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1      121602   976759808    7  HPFS/NTFS
 
Old 03-07-2014, 02:36 AM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
This is not hardware RAID. Use mdraid to assemble it.
 
Old 03-07-2014, 05:20 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
If you want to setup RAID1 (aka mirror) http://www.cyberciti.biz/faq/linux-c...id-one-arrays/
 
Old 03-07-2014, 07:39 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by nixboy View Post
I got this cheap hardware raid-1(2 x 1TB) server for learning purpose.

my question is how i can use disk space on 2nd disk?

Here is fdisk output..

Code:
#fdisk -l /dev/[sh]d?


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: 0x000daed9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1      121602   976759808    7  HPFS/NTFS
your 2nd disk is a NTFS MS Windows partition, and has nothing to do with RAID 1.
 
1 members found this post helpful.
Old 03-07-2014, 09:23 AM   #5
nixboy
LQ Newbie
 
Registered: Mar 2014
Location: root
Distribution: centos
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi @lleb, @Emerson, @chrism01

Thanks for help.

1. I tried smartctl and it shows that the system uses hardware raid controller - AMCC/3ware controller

Code:
smartctl -a /dev/sda
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-431.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

Smartctl open device: /dev/sda failed: AMCC/3ware controller, please try adding '-d 3ware,N',
you may need to replace /dev/sda with /dev/twlN, /dev/twaN or /dev/tweN
2. As I can see the 2nd disk uses windows ntfs partition. How can I format it and use it as a part of raid-1 config? Any one can help on this please?
 
Old 03-07-2014, 01:27 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
that would required starting over from scratch. as far as i know you can not create a raid on the fly so to speak. by creating the raid drive (combining more then 1 drive together to function as one) you will destroy all data on all drives you are combining.

this is done via the hardware controller, watch the splash screen there should be an option to enter the raid controller, something along the lines of ctrl+F5 or something odd like that.

Once the drives are raided then you can format and install the OS. the installer should recognize that you have 1 single drive that is hardware raid ready and off to the races you go.
 
1 members found this post helpful.
  


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
hard disk partitioning/I am out of space /how to increase linux space? RMLinux Red Hat 8 09-05-2008 01:33 PM
Problem with freeing disk space on a two hard disk Fedora Core 4 box favadalikhan Linux - Server 1 04-29-2008 10:04 PM
Hard disk space shaahul Linux - Newbie 1 08-25-2003 11:48 AM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 04:41 PM
space in hard disk jaac Linux - Software 3 11-13-2001 11:57 PM


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