LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-16-2016, 11:00 AM   #1
gabrielg
LQ Newbie
 
Registered: Mar 2016
Posts: 2

Rep: Reputation: Disabled
Stuck with creation software RAID1 (partitioning and formatting)


Hello All,

For some days I am trying to create software RAID1 on my CentOS 5.7

I connected two 2TB same disks on /dev/sdb and /dev/sdd
I made array looks like:
Code:
        Version : 0.90
  Creation Time : Wed Mar 16 14:03:50 2016
     Raid Level : raid1
     Array Size : 1953514496 (1863.02 GiB 2000.40 GB)
  Used Dev Size : 1953514496 (1863.02 GiB 2000.40 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Wed Mar 16 15:58:54 2016
          State : active, resyncing
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

 Rebuild Status : 81% complete

           UUID : c04a7f9a:2da28181:59fc1b56:a54772ff
         Events : 0.7

    Number   Major   Minor   RaidDevice State
       0       8       16        0      active sync   /dev/sdb
       1       8       48        1      active sync   /dev/sdd
so everything looks good so far, but when I try to make file system I have an error all the time.
When partitioning:
Code:
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
And then making fs (no matter restarted or not):
Code:
mkfs ext4 /dev/md0p1
I get
Code:
mkfs.ext2: invalid blocks count - /dev/md0p1
How number of blocks can be wrong? Why I get "Invalid argument" error when the same partitiong and formatting works perfectly on both disks separately?

Any help will be very valuable for me.

Regards

Gabriel

Last edited by gabrielg; 03-17-2016 at 05:30 AM.
 
Old 03-17-2016, 04:12 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,144

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Maybe you should wait until it finishes synching.
 
Old 03-17-2016, 05:25 AM   #3
gabrielg
LQ Newbie
 
Registered: Mar 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Reason and solution

I think I've found reason.
I needed other tool for making filesystem: mke4fs from e4fsprogs.

I've found info about it on http://unix.stackexchange.com/questi...d-blocks-count

Quote:
It's bad error checking in the argument parsing I think causing that message. The version of mke2fs on RHEL 5 doesn't support the -t type argument, so it's somehow parsing the /dev/VGora/oradata path as the last (optional) block count argument.

Anyway, the way you'll want to do it is to ensure you have e4fsprogs installed and then use mkfs.ext4 /dev/VGora/oradata or mke4fs.
So partitioning was okay, despite that error with refreshing partition info.
Thanks for suggestion syg00, I didn't write about it but I tried making fs after syncing too. With the same result.
No matter that I've found info that matrix is usable even during syncing.

What is strange for me that filesystem is created on /dev/md0 (I mean device) instead of /dev/md0p1 (I mean partition created on device). This was my additional misunderstanding.

Regards

Gabriel
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to clone a drive with RAID1. getting stuck at grub ncsuapex Linux - Software 13 02-12-2009 01:54 PM
trying to clone a drive with RAID1. getting stuck at grub ncsuapex Linux - Software 0 02-03-2009 12:12 PM
Formatting and Partitioning JonnyBlazed Mandriva 5 09-03-2004 07:03 AM
Partitioning and formatting ??? BajaNick General 5 12-25-2003 09:57 PM
partitioning ok, but formatting no go..... beginnerx Linux - Newbie 6 09-29-2003 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

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