 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

27th October 2010, 10:22 AM
|
|
Registered User
|
|
Join Date: Nov 2009
Posts: 20

|
|
|
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?
|

27th October 2010, 11:09 AM
|
 |
Registered User
|
|
Join Date: Jun 2008
Location: Russia
Age: 25
Posts: 515

|
|
|
Re: error trying to format /dev/md0p1 raid partition
show us
mdmon --all
|

27th October 2010, 02:51 PM
|
|
Registered User
|
|
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082

|
|
|
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.
|

27th October 2010, 11:54 PM
|
|
Registered User
|
|
Join Date: Nov 2009
Posts: 20

|
|
|
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
|

27th October 2010, 11:58 PM
|
|
Registered User
|
|
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082

|
|
|
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
|

28th October 2010, 12:16 AM
|
|
Registered User
|
|
Join Date: Nov 2009
Posts: 20

|
|
|
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
|

28th October 2010, 12:58 AM
|
|
Registered User
|
|
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082

|
|
|
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
|

28th October 2010, 01:24 AM
|
|
Registered User
|
|
Join Date: Nov 2009
Posts: 20

|
|
|
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
|

28th October 2010, 06:26 AM
|
 |
Registered User
|
|
Join Date: Jun 2008
Location: Russia
Age: 25
Posts: 515

|
|
|
Re: error trying to format /dev/md0p1 raid partition
I ahve one question: do you rebooted after creating partition on a raid device?
|

28th October 2010, 08:15 AM
|
|
Registered User
|
|
Join Date: Nov 2009
Posts: 20

|
|
|
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!
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 20:25 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|