LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to use my second hard disk space on centos? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-my-second-hard-disk-space-on-centos-4175497339/)

nixboy 03-07-2014 12:47 AM

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


Emerson 03-07-2014 01:36 AM

This is not hardware RAID. Use mdraid to assemble it.

chrism01 03-07-2014 04:20 AM

If you want to setup RAID1 (aka mirror) http://www.cyberciti.biz/faq/linux-c...id-one-arrays/

lleb 03-07-2014 06:39 AM

Quote:

Originally Posted by nixboy (Post 5130372)
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.

nixboy 03-07-2014 08:23 AM

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?

lleb 03-07-2014 12:27 PM

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.


All times are GMT -5. The time now is 12:43 PM.