* [sisyphus] mdadm: No arrays found in config file @ 2006-07-12 13:21 Eugene Prokopiev 2006-07-12 13:59 ` Eugene Prokopiev ` (2 more replies) 0 siblings, 3 replies; 6+ messages in thread From: Eugene Prokopiev @ 2006-07-12 13:21 UTC (permalink / raw) To: Sisyphus Здравствуйте! Сегодня при dist-upgrade получил: # mdadm --assemble --scan mdadm: No arrays found in config file # cat /etc/mdadm.conf # # /etc/mdadm.conf -- mdadm configuration file # # Customized for ALTLinux # See complete sample on manual page and in documentation directory # # This is a minimalistic skeleton but it should work out-of:a+box! # MAILADDR root PROGRAM /usr/sbin/mdadm-syslog-events DEVICE partitions ARRAY /dev/md0 devices=/dev/hda1,/dev/hdc1 ARRAY /dev/md1 devices=/dev/hda3,/dev/hdc3 ## EOF ## И, соответственно, система загружается только в педально-ручном режиме, т.к. /etc/rc.d/scripts/raidstart обламывается :( Отчего такое может быть? Если это важно (похоже что да :) ибо проблем в этой конфигурации всегда хватало ;) ), то / системы живет на LVM2/RAID1 -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] mdadm: No arrays found in config file 2006-07-12 13:21 [sisyphus] mdadm: No arrays found in config file Eugene Prokopiev @ 2006-07-12 13:59 ` Eugene Prokopiev 2006-07-12 14:12 ` Sergey Vlasov 2006-07-12 18:51 ` Pavel Usischev 2 siblings, 0 replies; 6+ messages in thread From: Eugene Prokopiev @ 2006-07-12 13:59 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list > # mdadm --assemble --scan > mdadm: No arrays found in config file # starce mdadm --assemble --scan execve("/usr/sbin/mdadm", ["mdadm", "--assemble", "--scan"], [/* 28 vars */]) = 0 uname({sys="Linux", node="asterisk.donpac.ru", ...}) = 0 brk(0) = 0x8071000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=12696, ...}) = 0 mmap2(NULL, 12696, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f0b000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\336U\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1098384, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f0a000 mmap2(NULL, 1109076, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dfb000 mmap2(0xb7f04000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x108) = 0xb7f04000 mmap2(0xb7f07000, 11348, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f07000 close(3) = 0 mprotect(0xb7f04000, 4096, PROT_READ) = 0 munmap(0xb7f0b000, 12696) = 0 time(NULL) = 1152723570 getpid() = 5174 brk(0) = 0x8071000 brk(0x8092000) = 0x8092000 open("/etc/mdadm.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0600, st_size=390, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f0e000 read(3, "#\n# /etc/mdadm.conf -- mdadm "..., 4096) = 390 read(3, "", 4096) = 0 ... lstat64("/dev/shm", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=40, ...}) = 0 open("/dev/shm", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5 fstat64(5, {st_mode=S_IFDIR|S_ISVTX|0777, st_size=40, ...}) = 0 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 getdents64(5, /* 2 entries */, 4096) = 48 getdents64(5, /* 0 entries */, 4096) = 0 close(5) = 0 lstat64("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 open("/dev/pts", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5 fstat64(5, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 getdents64(5, /* 3 entries */, 1024) = 72 lstat64("/dev/pts/0", {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 getdents64(5, /* 0 entries */, 1024) = 0 close(5) = 0 getdents64(4, /* 0 entries */, 4096) = 0 close(4) = 0 read(3, "", 1024) = 0 close(3) = 0 munmap(0xb7f0e000, 4096) = 0 open("/dev/md0", O_RDWR) = 3 fstat64(3, {st_mode=S_IFBLK|0640, st_rdev=makedev(9, 0), ...}) = 0 ioctl(3, 0x800c0910, 0xbff212d8) = 0 ioctl(3, 0x80480911, 0xbff21690) = 0 close(3) = 0 open("/dev/md1", O_RDWR) = 3 fstat64(3, {st_mode=S_IFBLK|0640, st_rdev=makedev(9, 1), ...}) = 0 ioctl(3, 0x800c0910, 0xbff212d8) = 0 ioctl(3, 0x80480911, 0xbff21690) = 0 close(3) = 0 write(2, "mdadm: No arrays found in config"..., 38mdadm: No arrays found in config file ) = 38 exit_group(1) = ? Process 5174 detached И что может значить "mdadm: No arrays found in config", если конфиг прочитан и девайсы доступны? -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] mdadm: No arrays found in config file 2006-07-12 13:21 [sisyphus] mdadm: No arrays found in config file Eugene Prokopiev 2006-07-12 13:59 ` Eugene Prokopiev @ 2006-07-12 14:12 ` Sergey Vlasov 2006-07-12 17:21 ` Eugene Prokopiev 2006-07-12 18:14 ` Eugene Prokopiev 2006-07-12 18:51 ` Pavel Usischev 2 siblings, 2 replies; 6+ messages in thread From: Sergey Vlasov @ 2006-07-12 14:12 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list [-- Attachment #1: Type: text/plain, Size: 716 bytes --] On Wed, Jul 12, 2006 at 05:21:11PM +0400, Eugene Prokopiev wrote: > Сегодня при dist-upgrade получил: > > # mdadm --assemble --scan > mdadm: No arrays found in config file > # cat /etc/mdadm.conf > # > # /etc/mdadm.conf -- mdadm configuration file > # > # Customized for ALTLinux > # See complete sample on manual page and in documentation directory > # > # This is a minimalistic skeleton but it should work out-of:a+box! > # > > MAILADDR root > PROGRAM /usr/sbin/mdadm-syslog-events > DEVICE partitions > > ARRAY /dev/md0 devices=/dev/hda1,/dev/hdc1 > ARRAY /dev/md1 devices=/dev/hda3,/dev/hdc3 А если тут написать uuid=... вместо devices=... (что обычно и рекомендуется делать)? [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] mdadm: No arrays found in config file 2006-07-12 14:12 ` Sergey Vlasov @ 2006-07-12 17:21 ` Eugene Prokopiev 2006-07-12 18:14 ` Eugene Prokopiev 1 sibling, 0 replies; 6+ messages in thread From: Eugene Prokopiev @ 2006-07-12 17:21 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list Sergey Vlasov пишет: > On Wed, Jul 12, 2006 at 05:21:11PM +0400, Eugene Prokopiev wrote: > >>Сегодня при dist-upgrade получил: >> >># mdadm --assemble --scan >>mdadm: No arrays found in config file >># cat /etc/mdadm.conf >># >># /etc/mdadm.conf -- mdadm configuration file >># >># Customized for ALTLinux >># See complete sample on manual page and in documentation directory >># >># This is a minimalistic skeleton but it should work out-of:a+box! >># >> >>MAILADDR root >>PROGRAM /usr/sbin/mdadm-syslog-events >>DEVICE partitions >> >>ARRAY /dev/md0 devices=/dev/hda1,/dev/hdc1 >>ARRAY /dev/md1 devices=/dev/hda3,/dev/hdc3 > > > А если тут написать uuid=... вместо devices=... (что обычно и > рекомендуется делать)? # cat /etc/mdadm.conf # # /etc/mdadm.conf -- mdadm configuration file # # Customized for ALTLinux # See complete sample on manual page and in documentation directory # # This is a minimalistic skeleton but it should work out-of:a+box! # MAILADDR root PROGRAM /usr/sbin/mdadm-syslog-events DEVICE partitions #ARRAY /dev/md0 devices=/dev/hda1,/dev/hdc1 #ARRAY /dev/md1 devices=/dev/hda3,/dev/hdc3 ARRAY /dev/md0 UUID=2e670e60:a183c56a:e432bacb:f872fbc9 ARRAY /dev/md1 UUID=fbe41d91:5e64d182:068d746a:d87ff1a2 ## EOF ## # strace mdadm --assemble --scan execve("/usr/sbin/mdadm", ["mdadm", "--assemble", "--scan"], [/* 28 vars */]) = 0 uname({sys="Linux", node="asterisk.donpac.ru", ...}) = 0 brk(0) = 0x8071000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=12696, ...}) = 0 mmap2(NULL, 12696, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fcf000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\336U\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1098384, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fce000 mmap2(NULL, 1109076, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ebf000 mmap2(0xb7fc8000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x108) = 0xb7fc8000 mmap2(0xb7fcb000, 11348, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fcb000 close(3) = 0 mprotect(0xb7fc8000, 4096, PROT_READ) = 0 munmap(0xb7fcf000, 12696) = 0 time(NULL) = 1152734614 getpid() = 5437 brk(0) = 0x8071000 brk(0x8092000) = 0x8092000 open("/etc/mdadm.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0600, st_size=505, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fd2000 read(3, "#\n# /etc/mdadm.conf -- mdadm "..., 4096) = 505 read(3, "", 4096) = 0 lstat64("/dev/shm", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=40, ...}) = 0 open("/dev/shm", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5 fstat64(5, {st_mode=S_IFDIR|S_ISVTX|0777, st_size=40, ...}) = 0 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 getdents64(5, /* 2 entries */, 4096) = 48 getdents64(5, /* 0 entries */, 4096) = 0 close(5) = 0 lstat64("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 open("/dev/pts", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5 fstat64(5, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 getdents64(5, /* 3 entries */, 1024) = 72 lstat64("/dev/pts/0", {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 getdents64(5, /* 0 entries */, 1024) = 0 close(5) = 0 getdents64(4, /* 0 entries */, 4096) = 0 close(4) = 0 read(3, "", 1024) = 0 close(3) = 0 munmap(0xb7fd2000, 4096) = 0 open("/dev/md0", O_RDWR) = 3 fstat64(3, {st_mode=S_IFBLK|0640, st_rdev=makedev(9, 0), ...}) = 0 ioctl(3, 0x800c0910, 0xbfae4608) = 0 ioctl(3, 0x80480911, 0xbfae49c0) = 0 close(3) = 0 open("/dev/md1", O_RDWR) = 3 fstat64(3, {st_mode=S_IFBLK|0640, st_rdev=makedev(9, 1), ...}) = 0 ioctl(3, 0x800c0910, 0xbfae4608) = 0 ioctl(3, 0x80480911, 0xbfae49c0) = 0 close(3) = 0 write(2, "mdadm: No arrays found in config"..., 38mdadm: No arrays found in config file ) = 38 exit_group(1) = ? Process 5437 detached -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] mdadm: No arrays found in config file 2006-07-12 14:12 ` Sergey Vlasov 2006-07-12 17:21 ` Eugene Prokopiev @ 2006-07-12 18:14 ` Eugene Prokopiev 1 sibling, 0 replies; 6+ messages in thread From: Eugene Prokopiev @ 2006-07-12 18:14 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list вообще-то, на момент вызова: >># mdadm --assemble --scan уже было: # cat /proc/mdstat Personalities : [raid0] [raid1] md1 : active raid1 hdc3[0] hda3[1] 77071744 blocks [2/2] [UU] md0 : active raid1 hdc1[0] hda1[1] 96256 blocks [2/2] [UU] unused devices: <none> Но раньше это не было проблемой. Я попытался запустить mdadm (и без патчей), собранный с отладочной информацией, под gdb: # gdb mdadm (gdb) break main Breakpoint 1 at 0x8049a50: file mdadm.c, line 40. (gdb) run --assemble --scan Starting program: /home/john/mdadm --assemble --scan Breakpoint 1, main (argc=3, argv=0xbf853f64) at mdadm.c:40 warning: Source file is more recent than executable. 40 int mode = 0; (gdb) next 47 int chunk = 0; (gdb) next 48 long long size = -1; (gdb) next 49 int level = UnSet; (gdb) next 50 int layout = UnSet; (gdb) next 51 int raiddisks = 0; (gdb) next 52 int max_disks = MD_SB_DISKS; /* just a default */ (gdb) next 53 int sparedisks = 0; (gdb) next 55 char *configfile = NULL; (gdb) next 57 char *update = NULL; (gdb) next 58 int scan = 0; (gdb) next 59 char devmode = 0; (gdb) next 60 int runstop = 0; (gdb) next 61 int readonly = 0; (gdb) next 62 int write_behind = 0; (gdb) next 63 int bitmap_fd = -1; (gdb) next 64 char *bitmap_file = NULL; (gdb) next 65 char *backup_file = NULL; (gdb) next 66 int bitmap_chunk = UnSet; (gdb) next 67 int SparcAdjust = 0; (gdb) next 68 mddev_dev_t devlist = NULL; (gdb) next 69 mddev_dev_t *devlistend = & devlist; (gdb) next 71 int devs_found = 0; (gdb) next 72 int verbose = 0; (gdb) next 73 int quiet = 0; (gdb) next 74 int brief = 0; (gdb) next 75 int force = 0; (gdb) next 76 int test = 0; (gdb) next 77 int assume_clean = 0; (gdb) next 88 int autof = 0; (gdb) next 90 char *homehost = NULL; (gdb) next 92 char *mailaddr = NULL; (gdb) next 93 char *program = NULL; (gdb) next 94 int delay = 0; (gdb) next 95 int daemonise = 0; (gdb) next 96 char *pidfile = NULL; (gdb) next 97 int oneshot = 0; (gdb) next 98 struct supertype *ss = NULL; (gdb) next 99 int writemostly = 0; (gdb) next 100 int re_add = 0; (gdb) next 101 char *shortopt = short_options; (gdb) next 102 int dosyslog = 0; (gdb) next 103 int auto_update_home = 0; (gdb) next 106 int print_help = 0; (gdb) next 108 int mdfd = -1; (gdb) next 110 srandom(time(0) ^ getpid()); (gdb) next 112 ident.uuid_set=0; (gdb) next 113 ident.level = UnSet; (gdb) next 114 ident.raid_disks = UnSet; (gdb) next 115 ident.super_minor= UnSet; (gdb) next 116 ident.devices=0; (gdb) next 117 ident.spare_group = NULL; (gdb) 118 ident.autof = 0; (gdb) next 119 ident.st = NULL; (gdb) next 120 ident.bitmap_fd = -1; (gdb) next 121 ident.bitmap_file = NULL; (gdb) next 122 ident.name[0] = 0; (gdb) 124 while ((option_index = -1) , (gdb) next 128 int newmode = mode; (gdb) next 130 switch(opt) { (gdb) next 173 switch(opt) { (gdb) next 188 case 'A': newmode = ASSEMBLE; shortopt = short_bitmap_auto_options; break; (gdb) next 205 if (mode && newmode == mode) { (gdb) next 207 } else if (mode && newmode != mode) { (gdb) next 218 } else if (!mode && newmode) { (gdb) next 219 mode = newmode; (gdb) next 262 switch(opt) { (gdb) next 124 while ((option_index = -1) , (gdb) next 128 int newmode = mode; (gdb) next 130 switch(opt) { (gdb) next 173 switch(opt) { (gdb) next 205 if (mode && newmode == mode) { (gdb) next 262 switch(opt) { (gdb) next 272 if (opt == 1) { (gdb) next 303 switch (O(mode,opt)) { (gdb) next 613 scan = 1; (gdb) next 614 continue; (gdb) next 124 while ((option_index = -1) , (gdb) next 832 if (print_help) { (gdb) next 850 if (!mode && devs_found) { (gdb) next 856 if (!mode) { (gdb) next 870 if (mode==MANAGE || mode == BUILD || mode == CREATE || mode == GROW || (gdb) next 892 if (raiddisks) { (gdb) next 905 if (sparedisks) { (gdb) next 913 if (homehost == NULL) (gdb) next 914 homehost = conf_get_homehost(configfile); (gdb) next 915 if (homehost && strcmp(homehost, "<system>")==0) { (gdb) next 922 rv = 0; (gdb) next 923 switch(mode) { (gdb) next 937 if (devs_found == 1 && ident.uuid_set == 0 && (gdb) next 957 } else if (!scan) (gdb) next 961 else if (devs_found>0) { (gdb) next 990 mddev_ident_t array_list = conf_get_ident(configfile, NULL); (gdb) next 991 mddev_dev_t devlist = conf_get_devs(configfile); (gdb) next 992 int cnt = 0; (gdb) next 993 if (devlist == NULL) { (gdb) next 997 if (update) { (gdb) next 1001 if (backup_file) { (gdb) next 1005 for (; array_list; array_list = array_list->next) { (gdb) next 1007 mdfd = open_mddev(array_list->devname, (gdb) next 1009 if (mdfd < 0) { (gdb) next 1013 if (ioctl(mdfd, GET_ARRAY_INFO, &array)>=0) (gdb) next 1023 close(mdfd); (gdb) next 1005 for (; array_list; array_list = array_list->next) { (gdb) next 1007 mdfd = open_mddev(array_list->devname, (gdb) next 1009 if (mdfd < 0) { (gdb) next 1013 if (ioctl(mdfd, GET_ARRAY_INFO, &array)>=0) (gdb) next 1023 close(mdfd); (gdb) next 1005 for (; array_list; array_list = array_list->next) { (gdb) next 1025 if (homehost) { (gdb) next 1075 } else if (cnt == 0 && rv == 0) { (gdb) next 1076 fprintf(stderr, Name ": No arrays found in config file\n"); (gdb) next mdadm: No arrays found in config file 1077 rv = 1; (gdb) Но понять назначение переменных cnt и rv в плохо прокомментрованном коде я не могу :( Поможете? -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] mdadm: No arrays found in config file 2006-07-12 13:21 [sisyphus] mdadm: No arrays found in config file Eugene Prokopiev 2006-07-12 13:59 ` Eugene Prokopiev 2006-07-12 14:12 ` Sergey Vlasov @ 2006-07-12 18:51 ` Pavel Usischev 2 siblings, 0 replies; 6+ messages in thread From: Pavel Usischev @ 2006-07-12 18:51 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list Eugene Prokopiev пишет: > Сегодня при dist-upgrade получил: > > # mdadm --assemble --scan > mdadm: No arrays found in config file > И, соответственно, система загружается только в педально-ручном режиме, > т.к. /etc/rc.d/scripts/raidstart обламывается :( > > Отчего такое может быть? > > Если это важно (похоже что да :) ибо проблем в этой конфигурации всегда > хватало ;) ), то / системы живет на LVM2/RAID1 https://bugzilla.altlinux.org/show_bug.cgi?id=9286 Резюме ("идеологически неправильно, зато работает"): добавить к параметрам ядра noraidtab. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-07-12 18:51 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-07-12 13:21 [sisyphus] mdadm: No arrays found in config file Eugene Prokopiev 2006-07-12 13:59 ` Eugene Prokopiev 2006-07-12 14:12 ` Sergey Vlasov 2006-07-12 17:21 ` Eugene Prokopiev 2006-07-12 18:14 ` Eugene Prokopiev 2006-07-12 18:51 ` Pavel Usischev
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git