Fedora Linux Support Community & Resources Center
  #1  
Old 27th October 2010, 10:22 AM
akaisora Offline
Registered User
 
Join Date: Nov 2009
Posts: 20
windows_xp_2003firefox
error trying to format /dev/md0p1 raid partition

need some help with raid. i am getting an error when trying to format a new raid partition "/dev/md0p1" that i created using "fdisk /dev/md0". this is a raid5 device with 3 harddisks. any help greatly appreciated!

[root@local~]# mkfs.ext3 /dev/md0p1
mke2fs 1.39 (29-May-2006)
Could not stat /dev/md0p1 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
Reply With Quote
  #2  
Old 27th October 2010, 11:09 AM
Keldorn Offline
Registered User
 
Join Date: Jun 2008
Location: Russia
Age: 26
Posts: 517
linuxfedorafirefox
Re: error trying to format /dev/md0p1 raid partition

show us
mdmon --all
Reply With Quote
  #3  
Old 27th October 2010, 02:51 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 50
Posts: 1,088
windows_xp_2003firefox
Re: error trying to format /dev/md0p1 raid partition

Hello,

Please post

fdisk -l
cat /proc/mdstat
cat /etc/mdadm.conf


Are you running Raid and LVM ?


You do not format /dev/md0p1

Last edited by scott32746; 27th October 2010 at 02:55 PM.
Reply With Quote
  #4  
Old 27th October 2010, 11:54 PM
akaisora Offline
Registered User
 
Join Date: Nov 2009
Posts: 20
windows_xp_2003firefox
Re: error trying to format /dev/md0p1 raid partition

i am just running raid. i have created the the partition /dev/md0p1 but how do i use it without formatting it first? it doesn't see

[root@local~]# mount /dev/md0p1 /mnt/raidpart
mount: special device /dev/md0p1 does not exist


-----------------------------------------------------------

[root@local~]# mdmon --all
bash: mdmon: command not found
[root@local~]# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdd1[2] sdc1[1] sdb1[0]
417536 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]

unused devices: <none>
[root@local~]# cat /etc/mdadm.conf
ARRAY /dev/md0 level=raid5 num-devices=3 metadata=0.90 UUID=4a74faa1:2cb1ff23:7d6116e0:7fa57a91
devices=/dev/sdb1,/dev/sdc1,/dev/sdd1
Reply With Quote
  #5  
Old 27th October 2010, 11:58 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 50
Posts: 1,088
windows_xp_2003firefox
Re: error trying to format /dev/md0p1 raid partition

Post
# fdisk -l

You should see something /dev/sdX1
That is what you need to format
Reply With Quote
  #6  
Old 28th October 2010, 12:16 AM
akaisora Offline
Registered User
 
Join Date: Nov 2009
Posts: 20
windows_xp_2003firefox
Re: error trying to format /dev/md0p1 raid partition

as per the instructions from linuxhomenetworking, i formatted /dev/md0 which was fine. should i have formatted each of the 3 disks (sdb1, sdc1, sdd1) that was used to create the raid device?

i am getting the impression that raid devices can not be used a partitions, only as itself (/dev/md0).. correct me if i'm wrong.

-------------------------------------------------
[root@local~]# fdisk -l

Disk /dev/sda: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6 48163+ 83 Linux
/dev/sda2 7 515 4088542+ 83 Linux
/dev/sda3 516 717 1622565 83 Linux
/dev/sda4 718 783 530145 5 Extended
/dev/sda5 718 783 530113+ 82 Linux swap / Solaris

Disk /dev/sdb: 213 MB, 213909504 bytes
64 heads, 32 sectors/track, 204 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 204 208880 fd Linux raid autodetect

Disk /dev/sdc: 213 MB, 213909504 bytes
64 heads, 32 sectors/track, 204 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 204 208880 fd Linux raid autodetect

Disk /dev/sdd: 213 MB, 213909504 bytes
64 heads, 32 sectors/track, 204 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 204 208880 fd Linux raid autodetect

Disk /dev/md0: 427 MB, 427556864 bytes
2 heads, 4 sectors/track, 104384 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Device Boot Start End Blocks Id System
/dev/md0p1 1 104384 417534 83 Linux
Reply With Quote
  #7  
Old 28th October 2010, 12:58 AM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 50
Posts: 1,088
windows_xp_2003firefox
Re: error trying to format /dev/md0p1 raid partition

OK,
Sorry, in raid you where correct to format /dev/md0

Are you trying to make more partition under /md0 ?

You should be able to mount /dev/md0

Here is a page I found may help you
http://www.linuxfromscratch.org/pipe...er/004936.html
read it, then the next message
Reply With Quote
  #8  
Old 28th October 2010, 01:24 AM
akaisora Offline
Registered User
 
Join Date: Nov 2009
Posts: 20
windows_xp_2003firefox
Re: error trying to format /dev/md0p1 raid partition

yes, i am trying to make more partition under /md0. i was able to create the partition md0p1 using fdisk but i can't seem to use the partition (can't format it, can't mount it etc)

yes, i can mount /dev/md0

thanks for the link, ill definitely check it out
Reply With Quote
  #9  
Old 28th October 2010, 06:26 AM
Keldorn Offline
Registered User
 
Join Date: Jun 2008
Location: Russia
Age: 26
Posts: 517
linuxfedorafirefox
Re: error trying to format /dev/md0p1 raid partition

I ahve one question: do you rebooted after creating partition on a raid device?
Reply With Quote
  #10  
Old 28th October 2010, 08:15 AM
akaisora Offline
Registered User
 
Join Date: Nov 2009
Posts: 20
windows_xp_2003firefox
Re: error trying to format /dev/md0p1 raid partition

ok, i am now able to create, format and mount the partition of a raid device. it just needed to be created as a "partitionable raid device" as per instructions from the link above posted by Scott. thanks all!
Reply With Quote
Reply

Tags
error, format, or dev or md0p1, partition, raid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Format and RAID XGM Using Fedora 2 27th January 2008 03:58 AM
A way to create RAID 1 w/o having to format? Waggoneer Using Fedora 0 28th December 2007 05:46 PM
Partition will not format all the way..... Postal1969 Installation, Upgrades and Live Media 3 3rd September 2005 02:48 AM
Do you format after partition?? masterzzz Using Fedora 6 1st June 2005 02:29 PM
Partition format that both XP and fc3 can access BiPolar EOL (End Of Life) Versions 1 20th March 2005 10:42 PM


Current GMT-time: 18:40 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Castilleja de la Cuesta Travel Photos - Ezhva Photos on Instagram - Novozybkov Travel Photos