Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Partitions on a partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Sun Aug 17, 2008 5:47 am    Post subject: Partitions on a partition? Reply with quote

Hi all,

Just for fun I tried partitioning a raid partition, /dev/md0. This seems to work:
Code:
fdisk -l /dev/md0

Disk /dev/md0: 10.7 GB, 10737287168 bytes
2 heads, 4 sectors/track, 2621408 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0xc75bf1c1

    Device Boot      Start         End      Blocks   Id  System
/dev/md0p1               1     1220704     4882814   83  Linux
/dev/md0p2         1220705     2621408     5602816   83  Linux


However, when I then try to format one, it doesn't exist?
Code:
mke2fs /dev/md0p1
mke2fs 1.40.9 (27-Apr-2008)
Could not stat /dev/md0p1 --- No such file or directory

The device apparently does not exist; did you specify it correctly?

_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
Jointy
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2005
Posts: 142
Location: Saarbrücken

PostPosted: Sun Aug 17, 2008 11:31 am    Post subject: Reply with quote

Hi,

what does an "mdadm --detail --scan /dev/md0" say.

Code:

pandora ~ # mdadm --detail --scan /dev/md0
/dev/md0:
        Version : 00.90.03
  Creation Time : Mon Jul  7 15:10:27 2008
     Raid Level : raid1
     Array Size : 58613056 (55.90 GiB 60.02 GB)
  Used Dev Size : 58613056 (55.90 GiB 60.02 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Sun Aug 17 11:45:49 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : b16e8306:2d6c8eb3:814001e4:9408904d
         Events : 0.26

    Number   Major   Minor   RaidDevice State
       0       3       65        0      active sync   /dev/hdb1
       1      22       65        1      active sync   /dev/hdd1


or try "cat /proc/mdstat"

But by the way I never saw that someone create not directly the partition on the raid. Maybe that doesn't work.

http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID

or

http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID_mirror_and_LVM2_on_top_of_RAID


j0inty
_________________
[Host: Arko]
ASUS G1S
http://gentoo-wiki.com/HARDWARE_Asus_G1S
[Host: Pandora]
PIII 1Ghz (133) / 512MB
1x40GB & 60GB (mdRAID1)
Hardened Stage 1 Server
[Host: Plato]
verkauft (OpenSuse 11.0)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54809
Location: 56N 3W

PostPosted: Sun Aug 17, 2008 11:50 am    Post subject: Reply with quote

meulie,

The space for the MBR exists on /dev/md... but the kernel does not allocate any device major/minor numbers for partitions on md raid sets, so there are no /dev entries for them.

Look in /usr/src/linux/Documentation/devices.txt
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum