On Mon, 17 Jul 2000 08:53:07 -0400, James Manning <[EMAIL PROTECTED]>
wrote:
>So far so good.
>Looks fine
>Also good.


>Being a non-primary partition shouldn't be a problem

No, that isn't a problem. I have two RAID5 arrays running with
non-primary partitions included (since I never use primary partitions
as a general rule, they're a nuisance)

>The only time I've been device too small was when I was accessing
>a device that didn't have a proper /dev entry.  the fdisk -l probably
>only needed /dev/hda to be valid, but for the mkraid to succeed
>/dev/hda7 will need to be valid (3,7).  Not likely, but that's the
>only time I saw it.

|haber@gwen[10/61]:~$ ls -al /dev/hda*
|brw-rw----    1 root     disk       3,   0 May  5 23:47 /dev/hda
|brw-rw----    1 root     disk       3,   1 May  5 23:47 /dev/hda1
|brw-rw----    1 root     disk       3,  10 May  5 23:47 /dev/hda10
|brw-rw----    1 root     disk       3,  11 May  5 23:47 /dev/hda11
|brw-rw----    1 root     disk       3,  12 May  5 23:47 /dev/hda12
|brw-rw----    1 root     disk       3,  13 May  5 23:47 /dev/hda13
|brw-rw----    1 root     disk       3,  14 May  5 23:47 /dev/hda14
|brw-rw----    1 root     disk       3,  15 May  5 23:47 /dev/hda15
|brw-rw----    1 root     disk       3,  16 May  5 23:47 /dev/hda16
|brw-rw----    1 root     disk       3,  17 May  5 23:47 /dev/hda17
|brw-rw----    1 root     disk       3,  18 May  5 23:47 /dev/hda18
|brw-rw----    1 root     disk       3,  19 May  5 23:47 /dev/hda19
|brw-rw----    1 root     disk       3,   2 May  5 23:47 /dev/hda2
|brw-rw----    1 root     disk       3,  20 May  5 23:47 /dev/hda20
|brw-rw----    1 root     disk       3,   3 May  5 23:47 /dev/hda3
|brw-rw----    1 root     disk       3,   4 May  5 23:47 /dev/hda4
|brw-rw----    1 root     disk       3,   5 May  5 23:47 /dev/hda5
|brw-rw----    1 root     disk       3,   6 May  5 23:47 /dev/hda6
|brw-rw----    1 root     disk       3,   7 May  5 23:47 /dev/hda7
|brw-rw----    1 root     disk       3,   8 May  5 23:47 /dev/hda8
|brw-rw----    1 root     disk       3,   9 May  5 23:47 /dev/hda9
|haber@gwen[11/62]:~$

I can also offer an strace of the mkraid process which has only 59
lines:
|618   execve("/sbin/mkraid", ["mkraid", "/dev/md0"], [/* 35 vars */]) = 0
|618   brk(0)                            = 0x804fdcc
|618   open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or director
|618   open("/etc/ld.so.cache", O_RDONLY) = 4
|618   fstat(4, {st_mode=S_IFREG|0644, st_size=3050, ...}) = 0
|618   old_mmap(NULL, 3050, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40014000
|618   close(4)                          = 0
|618   open("/lib/libc.so.6", O_RDONLY)  = 4
|618   fstat(4, {st_mode=S_IFREG|0755, st_size=888596, ...}) = 0
|618   read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\244\213"..., 4096
|618   old_mmap(NULL, 902972, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4001500
|618   mprotect(0x400ea000, 30524, PROT_NONE) = 0
|618   old_mmap(0x400ea000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4
|618   old_mmap(0x400ee000, 14140, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MA
|618   close(4)                          = 0
|618   munmap(0x40014000, 3050)          = 0
|618   personality(PER_LINUX)            = 0
|618   getpid()                          = 618
|618   brk(0)                            = 0x804fdcc
|618   brk(0x804fefc)                    = 0x804fefc
|618   brk(0x8050000)                    = 0x8050000
|618   open("/dev/md0", O_RDONLY)        = 4
|618   ioctl(4, 0x800c0910, 0x804fdb8)   = 0
|618   close(4)                          = 0
|618   open("/etc/raidtab", O_RDONLY)    = 4
|618   time(NULL)                        = 963839670
|618   fstat(4, {st_mode=S_IFREG|0644, st_size=273, ...}) = 0
|618   old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
|618   read(4, "raiddev /dev/md0\n        raid-le"..., 4096) = 273
|618   brk(0x8051000)                    = 0x8051000
|618   read(4, "", 4096)                 = 0
|618   open("/dev/md0", O_RDONLY)        = 5
|618   ioctl(5, 0x800c0910, 0xbffff950)  = 0
|618   close(5)                          = 0
|618   open("/proc/mdstat", O_RDONLY)    = 5
|618   fstat(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
|618   old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
|618   read(5, "Personalities : \nread_ahead not "..., 1024) = 59
|618   read(5, "", 1024)                 = 0
|618   close(5)                          = 0
|618   munmap(0x400f2000, 4096)          = 0
|618   stat("/dev/md0", {st_mode=S_IFBLK|0660, st_rdev=makedev(9, 0), ...}) = 0
|618   fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
|618   old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
|618   ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
|618   write(1, "handling MD device /dev/md0\n", 28) = 28
|618   write(1, "analyzing super-block\n", 22) = 22
|618   time(NULL)                        = 963839670
|618   stat("/dev/hda7", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 7), ...}) = 0
|618   stat("/dev/hdb7", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 71), ...}) = 0
|618   open("/dev/hda7", O_RDWR)         = 5
|618   ioctl(5, BLKGETSIZE, 0xbffff6c0)  = 0
|618   write(2, "/dev/hda7: device too small (0kB"..., 34) = 34
|618   close(5)                          = 0
|618   write(2, "mkraid: aborted, see the syslog "..., 70) = 70
|618   close(4)                          = 0
|618   munmap(0x40014000, 4096)          = 0
|618   munmap(0x400f2000, 4096)          = 0
|618   _exit(1)                          = ?

Any more ideas?

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29

Reply via email to