* mdadm 3.0.2 won't read mdadm.conf file @ 2009-09-28 7:13 Aggelos Kyritsis 2009-09-28 9:18 ` Kristleifur Daðason 0 siblings, 1 reply; 9+ messages in thread From: Aggelos Kyritsis @ 2009-09-28 7:13 UTC (permalink / raw) To: linux-raid Dear sir/madam, I am running ubuntu 9.04. Until recently I used the mdadm version that exists in the ubuntu repositories, with perfect success. However, since that version is fairly old (2.6, I think), I decided to install the latest version 3.0.2. On a freshly formatted system with no mdadm I downloaded http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-3.0.2.tar.gz, unzipped it and run the "sudo make" and "sudo make install" commands. According to mdadm --version, I succesfuly installed version 3.0.2 of the program. I was also successful on creating and mounting a fresh raid 5 array. However, the installation didn't create either the /etc/mdadm/mdadm.conf or the /etc/mdadm.conf file, where I need to specify the array details so that it is assembled during boot time. I manually created the mdadm.conf file in both locations and added the "DEVICE partitions" line and a line with the result from mdadm --examine --scan Even though this was enough on the old version of mdadm for auto assemble during the boot sequence (so that /etc/fstab could mount /dev/md0), on version 3.0.2 it made no diferrence at all, as if the mdadm I compiled and installed manually wouldn't read the mdadm.config file, neither on /etc/mdadm/mdadm.conf or on /etc/mdadm.conf Is there anything I could do to address this problem? Any way to permanently point the mdadm to its mdadm.conf file? is there an mdadm.conf file created on some other location on the disk, where I can add the array information? Thanks in advance Kind regards Angelos Kyritsis. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mdadm 3.0.2 won't read mdadm.conf file 2009-09-28 7:13 mdadm 3.0.2 won't read mdadm.conf file Aggelos Kyritsis @ 2009-09-28 9:18 ` Kristleifur Daðason [not found] ` <1e36c70e0909280536s513fa655n9533efe220dceddf@mail.gmail.com> 0 siblings, 1 reply; 9+ messages in thread From: Kristleifur Daðason @ 2009-09-28 9:18 UTC (permalink / raw) To: linux-raid; +Cc: Aggelos Kyritsis On Mon, Sep 28, 2009 at 7:13 AM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: > > Dear sir/madam, > > I am running ubuntu 9.04. Until recently I used the mdadm version that > exists in the ubuntu repositories, with perfect success. However, > since that version is fairly old (2.6, I think), I decided to install > the latest version 3.0.2. > > On a freshly formatted system with no mdadm I downloaded > http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-3.0.2.tar.gz, > unzipped it and run the "sudo make" and "sudo make install" commands. > According to mdadm --version, I succesfuly installed version 3.0.2 of > the program. I was also successful on creating and mounting a fresh > raid 5 array. > > However, the installation didn't create either the > /etc/mdadm/mdadm.conf or the /etc/mdadm.conf file, where I need to > specify the array details so that it is assembled during boot time. > > I manually created the mdadm.conf file in both locations and added the > "DEVICE partitions" line and a line with the result from mdadm > --examine --scan > > Even though this was enough on the old version of mdadm for auto > assemble during the boot sequence (so that /etc/fstab could mount > /dev/md0), on version 3.0.2 it made no diferrence at all, as if the > mdadm I compiled and installed manually wouldn't read the mdadm.config > file, neither on /etc/mdadm/mdadm.conf or on /etc/mdadm.conf > > Is there anything I could do to address this problem? Any way to > permanently point the mdadm to its mdadm.conf file? is there an > mdadm.conf file created on some other location on the disk, where I > can add the array information? > > Thanks in advance > > Kind regards > > Angelos Kyritsis. Hi, I've tried almost exactly the same setup. I suspect that you may simply need to update the initramfs, specifically to place the mdadm.conf in the init-ramdisk. Try "sudo update-initramfs -u -k all". "-u" means update the initrd, "-k all" means to update for all kernels. -- Kristleifur ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <1e36c70e0909280536s513fa655n9533efe220dceddf@mail.gmail.com>]
[parent not found: <73e903670909280553t3de93c68t5673ba234ac72bef@mail.gmail.com>]
[parent not found: <1e36c70e0909280652j42ee420mabaa4141363a976a@mail.gmail.com>]
[parent not found: <73e903670909280704r1189e86aoc08cbc260e6d8ab8@mail.gmail.com>]
* Re: mdadm 3.0.2 won't read mdadm.conf file [not found] ` <73e903670909280704r1189e86aoc08cbc260e6d8ab8@mail.gmail.com> @ 2009-09-28 14:14 ` Aggelos Kyritsis 2009-09-28 14:48 ` Aggelos Kyritsis 0 siblings, 1 reply; 9+ messages in thread From: Aggelos Kyritsis @ 2009-09-28 14:14 UTC (permalink / raw) To: linux-raid; +Cc: Kristleifur Daðason [-- Attachment #1: Type: text/plain, Size: 5623 bytes --] Even if they are compiler flags, they are referring to the exact same file (mdadm.conf) that my mdadm 3.0.2 completely ignores. It might be a complete coincidence, but it does look suspicious, doesn't it? I resend the attachment for the list to see On Mon, Sep 28, 2009 at 5:04 PM, Kristleifur Daðason <kristleifur@gmail.com> wrote: > Hi, > > it looks like we have actually started talking off-list :) (I think so at > least ...) > > Btw, Those "-Werror" things are compiler flags (it means "warn on error") -- > you're getting neither errors nor warnings there -- compilation is going > fine > > You'd better take this back to the list, there's probably smarter people > than me there ... and maybe also try the Ubuntu forums > > -- Kristleifur > > On Mon, Sep 28, 2009 at 1:52 PM, Aggelos Kyritsis <filodoksos@gmail.com> > wrote: >> >> I think I found the cause of the whole situation. >> >> During the compilation of mdadm 3.0.2 several error messages appear >> considering the mdadm.conf file. >> >> I attach a file with the compiler's output. I have a feeling that if >> we can pinpoint the cause of those errors, the problem will be solved. >> >> Maybe my system is missing some compilation libraries? I have already >> installed the build-essential and gcc packages. >> >> >> >> On Mon, Sep 28, 2009 at 3:53 PM, Kristleifur Daðason >> <kristleifur@gmail.com> wrote: >> > Hi again :) >> > >> > I forgot that I have the old mdadm 2.6.9 on this machine, so it's >> > probably >> > not 100% the same; I did have 3.0.x but not currently, sorry about that. >> > >> > The /etc/mdadm/mdadm.conf is probably copied automatically into the >> > initramdisk when you have the Ubuntu package for mdadm, but I'm not sure >> > what happens if you have a custom-built mdadm. >> > >> > I would guess that there is probably some config file for >> > update-initramfs >> > that tells it to take this and that file. >> > >> > Wish I could help you better. >> > >> > Have you tried expanding the updated initramfs and checking what the >> > mdadm.conf file in looks like? >> > >> > Good luck and by all means ask me any further questions you have! >> > >> > -- Kristleifur >> > >> > On Mon, Sep 28, 2009 at 12:36 PM, Aggelos Kyritsis >> > <filodoksos@gmail.com> >> > wrote: >> >> >> >> Thanks for the quick responce :-) >> >> >> >> I tried the "sudo update-initramfs -u -k all" command and it got the >> >> following two messages >> >> >> >> update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic >> >> update-initramfs: Generating /boot/initrd.img-2.6.28-11-generic >> >> >> >> But still no luck with the mdadm >> >> >> >> I have found a guide on creating a custom initial ramdisk >> >> (http://www.ibm.com/developerworks/linux/library/l-initrd.html) but it >> >> still isn't clear to me how to place the mdadm.conf in it (and make >> >> mdadm read the file). >> >> >> >> Could you please elaborate? >> >> >> >> >> >> >> >> >> >> On Mon, Sep 28, 2009 at 12:18 PM, Kristleifur Daðason >> >> <kristleifur@gmail.com> wrote: >> >> > On Mon, Sep 28, 2009 at 7:13 AM, Aggelos Kyritsis >> >> > <filodoksos@gmail.com> >> >> > wrote: >> >> >> >> >> >> Dear sir/madam, >> >> >> >> >> >> I am running ubuntu 9.04. Until recently I used the mdadm version >> >> >> that >> >> >> exists in the ubuntu repositories, with perfect success. However, >> >> >> since that version is fairly old (2.6, I think), I decided to >> >> >> install >> >> >> the latest version 3.0.2. >> >> >> >> >> >> On a freshly formatted system with no mdadm I downloaded >> >> >> http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-3.0.2.tar.gz, >> >> >> unzipped it and run the "sudo make" and "sudo make install" >> >> >> commands. >> >> >> According to mdadm --version, I succesfuly installed version 3.0.2 >> >> >> of >> >> >> the program. I was also successful on creating and mounting a fresh >> >> >> raid 5 array. >> >> >> >> >> >> However, the installation didn't create either the >> >> >> /etc/mdadm/mdadm.conf or the /etc/mdadm.conf file, where I need to >> >> >> specify the array details so that it is assembled during boot time. >> >> >> >> >> >> I manually created the mdadm.conf file in both locations and added >> >> >> the >> >> >> "DEVICE partitions" line and a line with the result from mdadm >> >> >> --examine --scan >> >> >> >> >> >> Even though this was enough on the old version of mdadm for auto >> >> >> assemble during the boot sequence (so that /etc/fstab could mount >> >> >> /dev/md0), on version 3.0.2 it made no diferrence at all, as if the >> >> >> mdadm I compiled and installed manually wouldn't read the >> >> >> mdadm.config >> >> >> file, neither on /etc/mdadm/mdadm.conf or on /etc/mdadm.conf >> >> >> >> >> >> Is there anything I could do to address this problem? Any way to >> >> >> permanently point the mdadm to its mdadm.conf file? is there an >> >> >> mdadm.conf file created on some other location on the disk, where I >> >> >> can add the array information? >> >> >> >> >> >> Thanks in advance >> >> >> >> >> >> Kind regards >> >> >> >> >> >> Angelos Kyritsis. >> >> > >> >> > Hi, >> >> > >> >> > I've tried almost exactly the same setup. I suspect that you may >> >> > simply need to update the initramfs, specifically to place the >> >> > mdadm.conf in the init-ramdisk. Try "sudo update-initramfs -u -k >> >> > all". >> >> > "-u" means update the initrd, "-k all" means to update for all >> >> > kernels. >> >> > >> >> > -- Kristleifur >> >> > >> > >> > > > [-- Attachment #2: compiler-message --] [-- Type: application/octet-stream, Size: 6938 bytes --] gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o mdadm.o mdadm.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o config.o config.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o mdstat.o mdstat.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o ReadMe.o ReadMe.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o util.o util.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Manage.o Manage.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Assemble.o Assemble.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Build.o Build.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Create.o Create.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Detail.o Detail.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Examine.o Examine.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Grow.o Grow.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Monitor.o Monitor.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o dlink.o dlink.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Kill.o Kill.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Query.o Query.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o Incremental.o Incremental.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o mdopen.o mdopen.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o super0.o super0.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o super1.o super1.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o super-ddf.o super-ddf.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o super-intel.o super-intel.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o bitmap.o bitmap.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o restripe.o restripe.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o sysfs.o sysfs.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DHAVE_STDINT_H -o sha1.o -c sha1.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o mapfile.o mapfile.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o crc32.o crc32.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o sg_io.o sg_io.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o msg.o msg.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o platform-intel.o platform-intel.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o probe_roms.o probe_roms.c gcc -o mdadm mdadm.o config.o mdstat.o ReadMe.o util.o Manage.o Assemble.o Build.o Create.o Detail.o Examine.o Grow.o Monitor.o dlink.o Kill.o Query.o Incremental.o mdopen.o super0.o super1.o super-ddf.o super-intel.o bitmap.o restripe.o sysfs.o sha1.o mapfile.o crc32.o sg_io.o msg.o platform-intel.o probe_roms.o gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o mdmon.o mdmon.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o monitor.o monitor.c gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o managemon.o managemon.c gcc -o mdmon mdmon.o monitor.o managemon.o util.o mdstat.o sysfs.o config.o Kill.o sg_io.o dlink.o ReadMe.o super0.o super1.o super-intel.o super-ddf.o sha1.o crc32.o msg.o bitmap.o platform-intel.o probe_roms.o nroff -man mdadm.8 > mdadm.man nroff -man md.4 > md.man nroff -man mdadm.conf.5 > mdadm.conf.man nroff -man mdmon.8 > mdmon.man ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mdadm 3.0.2 won't read mdadm.conf file 2009-09-28 14:14 ` Aggelos Kyritsis @ 2009-09-28 14:48 ` Aggelos Kyritsis 2009-09-28 16:32 ` Majed B. 0 siblings, 1 reply; 9+ messages in thread From: Aggelos Kyritsis @ 2009-09-28 14:48 UTC (permalink / raw) To: linux-raid; +Cc: Kristleifur Daðason Well, I tried a simple and dirty solution (aren't they the best?) and it worked: On a fresh install of Ubuntu (I 'm a bit format-happy) I installed mdadm version 2.6.7 (or something) from the repositories: ------------ sudo apt-get install mdadm sudo mdadm -A --scan sudo su mdadm --detail --scan >> /etc/mdadm/mdadm.conf gedit /etc/mdadm/mdadm.conf (made some corrections there, corrected metadata 00.90 to 0.90) mkdir /home/cthulhu/raid chown -R cthulhu:cthulhu /home/cthulhu/raid echo "/dev/md0 /home/cthulhu/raid auto defaults 0 3" >> /etc/fstab gedit /etc/fstab (to make sure it was correctly added) ----------- Then I compiled version 3.0.2, reboot, and now the system correctly mounts the array on startup. Checked mdadm --version and it is indeed 3.0.2, 25 September 2009 I 'm really curious, though, why the plain vanilla 3.0.2 installation wouldn't work for me. On Mon, Sep 28, 2009 at 5:14 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: > Even if they are compiler flags, they are referring to the exact same > file (mdadm.conf) that my mdadm 3.0.2 completely ignores. It might be > a complete coincidence, but it does look suspicious, doesn't it? > > I resend the attachment for the list to see > > On Mon, Sep 28, 2009 at 5:04 PM, Kristleifur Daðason > <kristleifur@gmail.com> wrote: >> Hi, >> >> it looks like we have actually started talking off-list :) (I think so at >> least ...) >> >> Btw, Those "-Werror" things are compiler flags (it means "warn on error") -- >> you're getting neither errors nor warnings there -- compilation is going >> fine >> >> You'd better take this back to the list, there's probably smarter people >> than me there ... and maybe also try the Ubuntu forums >> >> -- Kristleifur >> >> On Mon, Sep 28, 2009 at 1:52 PM, Aggelos Kyritsis <filodoksos@gmail.com> >> wrote: >>> >>> I think I found the cause of the whole situation. >>> >>> During the compilation of mdadm 3.0.2 several error messages appear >>> considering the mdadm.conf file. >>> >>> I attach a file with the compiler's output. I have a feeling that if >>> we can pinpoint the cause of those errors, the problem will be solved. >>> >>> Maybe my system is missing some compilation libraries? I have already >>> installed the build-essential and gcc packages. >>> >>> >>> >>> On Mon, Sep 28, 2009 at 3:53 PM, Kristleifur Daðason >>> <kristleifur@gmail.com> wrote: >>> > Hi again :) >>> > >>> > I forgot that I have the old mdadm 2.6.9 on this machine, so it's >>> > probably >>> > not 100% the same; I did have 3.0.x but not currently, sorry about that. >>> > >>> > The /etc/mdadm/mdadm.conf is probably copied automatically into the >>> > initramdisk when you have the Ubuntu package for mdadm, but I'm not sure >>> > what happens if you have a custom-built mdadm. >>> > >>> > I would guess that there is probably some config file for >>> > update-initramfs >>> > that tells it to take this and that file. >>> > >>> > Wish I could help you better. >>> > >>> > Have you tried expanding the updated initramfs and checking what the >>> > mdadm.conf file in looks like? >>> > >>> > Good luck and by all means ask me any further questions you have! >>> > >>> > -- Kristleifur >>> > >>> > On Mon, Sep 28, 2009 at 12:36 PM, Aggelos Kyritsis >>> > <filodoksos@gmail.com> >>> > wrote: >>> >> >>> >> Thanks for the quick responce :-) >>> >> >>> >> I tried the "sudo update-initramfs -u -k all" command and it got the >>> >> following two messages >>> >> >>> >> update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic >>> >> update-initramfs: Generating /boot/initrd.img-2.6.28-11-generic >>> >> >>> >> But still no luck with the mdadm >>> >> >>> >> I have found a guide on creating a custom initial ramdisk >>> >> (http://www.ibm.com/developerworks/linux/library/l-initrd.html) but it >>> >> still isn't clear to me how to place the mdadm.conf in it (and make >>> >> mdadm read the file). >>> >> >>> >> Could you please elaborate? >>> >> >>> >> >>> >> >>> >> >>> >> On Mon, Sep 28, 2009 at 12:18 PM, Kristleifur Daðason >>> >> <kristleifur@gmail.com> wrote: >>> >> > On Mon, Sep 28, 2009 at 7:13 AM, Aggelos Kyritsis >>> >> > <filodoksos@gmail.com> >>> >> > wrote: >>> >> >> >>> >> >> Dear sir/madam, >>> >> >> >>> >> >> I am running ubuntu 9.04. Until recently I used the mdadm version >>> >> >> that >>> >> >> exists in the ubuntu repositories, with perfect success. However, >>> >> >> since that version is fairly old (2.6, I think), I decided to >>> >> >> install >>> >> >> the latest version 3.0.2. >>> >> >> >>> >> >> On a freshly formatted system with no mdadm I downloaded >>> >> >> http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-3.0.2.tar.gz, >>> >> >> unzipped it and run the "sudo make" and "sudo make install" >>> >> >> commands. >>> >> >> According to mdadm --version, I succesfuly installed version 3.0.2 >>> >> >> of >>> >> >> the program. I was also successful on creating and mounting a fresh >>> >> >> raid 5 array. >>> >> >> >>> >> >> However, the installation didn't create either the >>> >> >> /etc/mdadm/mdadm.conf or the /etc/mdadm.conf file, where I need to >>> >> >> specify the array details so that it is assembled during boot time. >>> >> >> >>> >> >> I manually created the mdadm.conf file in both locations and added >>> >> >> the >>> >> >> "DEVICE partitions" line and a line with the result from mdadm >>> >> >> --examine --scan >>> >> >> >>> >> >> Even though this was enough on the old version of mdadm for auto >>> >> >> assemble during the boot sequence (so that /etc/fstab could mount >>> >> >> /dev/md0), on version 3.0.2 it made no diferrence at all, as if the >>> >> >> mdadm I compiled and installed manually wouldn't read the >>> >> >> mdadm.config >>> >> >> file, neither on /etc/mdadm/mdadm.conf or on /etc/mdadm.conf >>> >> >> >>> >> >> Is there anything I could do to address this problem? Any way to >>> >> >> permanently point the mdadm to its mdadm.conf file? is there an >>> >> >> mdadm.conf file created on some other location on the disk, where I >>> >> >> can add the array information? >>> >> >> >>> >> >> Thanks in advance >>> >> >> >>> >> >> Kind regards >>> >> >> >>> >> >> Angelos Kyritsis. >>> >> > >>> >> > Hi, >>> >> > >>> >> > I've tried almost exactly the same setup. I suspect that you may >>> >> > simply need to update the initramfs, specifically to place the >>> >> > mdadm.conf in the init-ramdisk. Try "sudo update-initramfs -u -k >>> >> > all". >>> >> > "-u" means update the initrd, "-k all" means to update for all >>> >> > kernels. >>> >> > >>> >> > -- Kristleifur >>> >> > >>> > >>> > >> >> > -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mdadm 3.0.2 won't read mdadm.conf file 2009-09-28 14:48 ` Aggelos Kyritsis @ 2009-09-28 16:32 ` Majed B. 2009-09-28 16:50 ` Aggelos Kyritsis 0 siblings, 1 reply; 9+ messages in thread From: Majed B. @ 2009-09-28 16:32 UTC (permalink / raw) To: Aggelos Kyritsis; +Cc: linux-raid, Kristleifur Daðason Did you update initramfs after installing mdadm 3.0.2? On Mon, Sep 28, 2009 at 5:48 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: > Well, I tried a simple and dirty solution (aren't they the best?) and it worked: > > On a fresh install of Ubuntu (I 'm a bit format-happy) I installed > mdadm version 2.6.7 (or something) from the repositories: > ------------ > > sudo apt-get install mdadm > > sudo mdadm -A --scan > > sudo su > > mdadm --detail --scan >> /etc/mdadm/mdadm.conf > > gedit /etc/mdadm/mdadm.conf (made some corrections there, corrected > metadata 00.90 to 0.90) > > mkdir /home/cthulhu/raid > > chown -R cthulhu:cthulhu /home/cthulhu/raid > > echo "/dev/md0 /home/cthulhu/raid auto defaults 0 3" >> /etc/fstab > > gedit /etc/fstab (to make sure it was correctly added) > > ----------- > > Then I compiled version 3.0.2, reboot, and now the system correctly > mounts the array on startup. Checked mdadm --version and it is indeed > 3.0.2, 25 September 2009 > > I 'm really curious, though, why the plain vanilla 3.0.2 installation > wouldn't work for me. > > > On Mon, Sep 28, 2009 at 5:14 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: >> Even if they are compiler flags, they are referring to the exact same >> file (mdadm.conf) that my mdadm 3.0.2 completely ignores. It might be >> a complete coincidence, but it does look suspicious, doesn't it? >> >> I resend the attachment for the list to see >> >> On Mon, Sep 28, 2009 at 5:04 PM, Kristleifur Daðason >> <kristleifur@gmail.com> wrote: >>> Hi, >>> >>> it looks like we have actually started talking off-list :) (I think so at >>> least ...) >>> >>> Btw, Those "-Werror" things are compiler flags (it means "warn on error") -- >>> you're getting neither errors nor warnings there -- compilation is going >>> fine >>> >>> You'd better take this back to the list, there's probably smarter people >>> than me there ... and maybe also try the Ubuntu forums >>> >>> -- Kristleifur >>> >>> On Mon, Sep 28, 2009 at 1:52 PM, Aggelos Kyritsis <filodoksos@gmail.com> >>> wrote: >>>> >>>> I think I found the cause of the whole situation. >>>> >>>> During the compilation of mdadm 3.0.2 several error messages appear >>>> considering the mdadm.conf file. >>>> >>>> I attach a file with the compiler's output. I have a feeling that if >>>> we can pinpoint the cause of those errors, the problem will be solved. >>>> >>>> Maybe my system is missing some compilation libraries? I have already >>>> installed the build-essential and gcc packages. >>>> >>>> >>>> >>>> On Mon, Sep 28, 2009 at 3:53 PM, Kristleifur Daðason >>>> <kristleifur@gmail.com> wrote: >>>> > Hi again :) >>>> > >>>> > I forgot that I have the old mdadm 2.6.9 on this machine, so it's >>>> > probably >>>> > not 100% the same; I did have 3.0.x but not currently, sorry about that. >>>> > >>>> > The /etc/mdadm/mdadm.conf is probably copied automatically into the >>>> > initramdisk when you have the Ubuntu package for mdadm, but I'm not sure >>>> > what happens if you have a custom-built mdadm. >>>> > >>>> > I would guess that there is probably some config file for >>>> > update-initramfs >>>> > that tells it to take this and that file. >>>> > >>>> > Wish I could help you better. >>>> > >>>> > Have you tried expanding the updated initramfs and checking what the >>>> > mdadm.conf file in looks like? >>>> > >>>> > Good luck and by all means ask me any further questions you have! >>>> > >>>> > -- Kristleifur >>>> > >>>> > On Mon, Sep 28, 2009 at 12:36 PM, Aggelos Kyritsis >>>> > <filodoksos@gmail.com> >>>> > wrote: >>>> >> >>>> >> Thanks for the quick responce :-) >>>> >> >>>> >> I tried the "sudo update-initramfs -u -k all" command and it got the >>>> >> following two messages >>>> >> >>>> >> update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic >>>> >> update-initramfs: Generating /boot/initrd.img-2.6.28-11-generic >>>> >> >>>> >> But still no luck with the mdadm >>>> >> >>>> >> I have found a guide on creating a custom initial ramdisk >>>> >> (http://www.ibm.com/developerworks/linux/library/l-initrd.html) but it >>>> >> still isn't clear to me how to place the mdadm.conf in it (and make >>>> >> mdadm read the file). >>>> >> >>>> >> Could you please elaborate? >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> On Mon, Sep 28, 2009 at 12:18 PM, Kristleifur Daðason >>>> >> <kristleifur@gmail.com> wrote: >>>> >> > On Mon, Sep 28, 2009 at 7:13 AM, Aggelos Kyritsis >>>> >> > <filodoksos@gmail.com> >>>> >> > wrote: >>>> >> >> >>>> >> >> Dear sir/madam, >>>> >> >> >>>> >> >> I am running ubuntu 9.04. Until recently I used the mdadm version >>>> >> >> that >>>> >> >> exists in the ubuntu repositories, with perfect success. However, >>>> >> >> since that version is fairly old (2.6, I think), I decided to >>>> >> >> install >>>> >> >> the latest version 3.0.2. >>>> >> >> >>>> >> >> On a freshly formatted system with no mdadm I downloaded >>>> >> >> http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-3.0.2.tar.gz, >>>> >> >> unzipped it and run the "sudo make" and "sudo make install" >>>> >> >> commands. >>>> >> >> According to mdadm --version, I succesfuly installed version 3.0.2 >>>> >> >> of >>>> >> >> the program. I was also successful on creating and mounting a fresh >>>> >> >> raid 5 array. >>>> >> >> >>>> >> >> However, the installation didn't create either the >>>> >> >> /etc/mdadm/mdadm.conf or the /etc/mdadm.conf file, where I need to >>>> >> >> specify the array details so that it is assembled during boot time. >>>> >> >> >>>> >> >> I manually created the mdadm.conf file in both locations and added >>>> >> >> the >>>> >> >> "DEVICE partitions" line and a line with the result from mdadm >>>> >> >> --examine --scan >>>> >> >> >>>> >> >> Even though this was enough on the old version of mdadm for auto >>>> >> >> assemble during the boot sequence (so that /etc/fstab could mount >>>> >> >> /dev/md0), on version 3.0.2 it made no diferrence at all, as if the >>>> >> >> mdadm I compiled and installed manually wouldn't read the >>>> >> >> mdadm.config >>>> >> >> file, neither on /etc/mdadm/mdadm.conf or on /etc/mdadm.conf >>>> >> >> >>>> >> >> Is there anything I could do to address this problem? Any way to >>>> >> >> permanently point the mdadm to its mdadm.conf file? is there an >>>> >> >> mdadm.conf file created on some other location on the disk, where I >>>> >> >> can add the array information? >>>> >> >> >>>> >> >> Thanks in advance >>>> >> >> >>>> >> >> Kind regards >>>> >> >> >>>> >> >> Angelos Kyritsis. >>>> >> > >>>> >> > Hi, >>>> >> > >>>> >> > I've tried almost exactly the same setup. I suspect that you may >>>> >> > simply need to update the initramfs, specifically to place the >>>> >> > mdadm.conf in the init-ramdisk. Try "sudo update-initramfs -u -k >>>> >> > all". >>>> >> > "-u" means update the initrd, "-k all" means to update for all >>>> >> > kernels. >>>> >> > >>>> >> > -- Kristleifur >>>> >> > >>>> > >>>> > >>> >>> >> > -- > To unsubscribe from this list: send the line "unsubscribe linux-raid" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Majed B. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mdadm 3.0.2 won't read mdadm.conf file 2009-09-28 16:32 ` Majed B. @ 2009-09-28 16:50 ` Aggelos Kyritsis 2009-09-28 17:30 ` John Robinson 2009-09-28 17:47 ` Majed B. 0 siblings, 2 replies; 9+ messages in thread From: Aggelos Kyritsis @ 2009-09-28 16:50 UTC (permalink / raw) To: Majed B.; +Cc: linux-raid Yes, it was one of the first things I tried, as advised by Kristleifur, and it didn't work. On Mon, Sep 28, 2009 at 7:32 PM, Majed B. <majedb@gmail.com> wrote: > Did you update initramfs after installing mdadm 3.0.2? > > On Mon, Sep 28, 2009 at 5:48 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: >> Well, I tried a simple and dirty solution (aren't they the best?) and it worked: >> >> On a fresh install of Ubuntu (I 'm a bit format-happy) I installed >> mdadm version 2.6.7 (or something) from the repositories: >> ------------ >> >> sudo apt-get install mdadm >> >> sudo mdadm -A --scan >> >> sudo su >> >> mdadm --detail --scan >> /etc/mdadm/mdadm.conf >> >> gedit /etc/mdadm/mdadm.conf (made some corrections there, corrected >> metadata 00.90 to 0.90) >> >> mkdir /home/cthulhu/raid >> >> chown -R cthulhu:cthulhu /home/cthulhu/raid >> >> echo "/dev/md0 /home/cthulhu/raid auto defaults 0 3" >> /etc/fstab >> >> gedit /etc/fstab (to make sure it was correctly added) >> >> ----------- >> >> Then I compiled version 3.0.2, reboot, and now the system correctly >> mounts the array on startup. Checked mdadm --version and it is indeed >> 3.0.2, 25 September 2009 >> >> I 'm really curious, though, why the plain vanilla 3.0.2 installation >> wouldn't work for me. >> >> >> On Mon, Sep 28, 2009 at 5:14 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: >>> Even if they are compiler flags, they are referring to the exact same >>> file (mdadm.conf) that my mdadm 3.0.2 completely ignores. It might be >>> a complete coincidence, but it does look suspicious, doesn't it? >>> >>> I resend the attachment for the list to see >>> >>> On Mon, Sep 28, 2009 at 5:04 PM, Kristleifur Daðason >>> <kristleifur@gmail.com> wrote: >>>> Hi, >>>> >>>> it looks like we have actually started talking off-list :) (I think so at >>>> least ...) >>>> >>>> Btw, Those "-Werror" things are compiler flags (it means "warn on error") -- >>>> you're getting neither errors nor warnings there -- compilation is going >>>> fine >>>> >>>> You'd better take this back to the list, there's probably smarter people >>>> than me there ... and maybe also try the Ubuntu forums >>>> >>>> -- Kristleifur >>>> >>>> On Mon, Sep 28, 2009 at 1:52 PM, Aggelos Kyritsis <filodoksos@gmail.com> >>>> wrote: >>>>> >>>>> I think I found the cause of the whole situation. >>>>> >>>>> During the compilation of mdadm 3.0.2 several error messages appear >>>>> considering the mdadm.conf file. >>>>> >>>>> I attach a file with the compiler's output. I have a feeling that if >>>>> we can pinpoint the cause of those errors, the problem will be solved. >>>>> >>>>> Maybe my system is missing some compilation libraries? I have already >>>>> installed the build-essential and gcc packages. >>>>> >>>>> >>>>> >>>>> On Mon, Sep 28, 2009 at 3:53 PM, Kristleifur Daðason >>>>> <kristleifur@gmail.com> wrote: >>>>> > Hi again :) >>>>> > >>>>> > I forgot that I have the old mdadm 2.6.9 on this machine, so it's >>>>> > probably >>>>> > not 100% the same; I did have 3.0.x but not currently, sorry about that. >>>>> > >>>>> > The /etc/mdadm/mdadm.conf is probably copied automatically into the >>>>> > initramdisk when you have the Ubuntu package for mdadm, but I'm not sure >>>>> > what happens if you have a custom-built mdadm. >>>>> > >>>>> > I would guess that there is probably some config file for >>>>> > update-initramfs >>>>> > that tells it to take this and that file. >>>>> > >>>>> > Wish I could help you better. >>>>> > >>>>> > Have you tried expanding the updated initramfs and checking what the >>>>> > mdadm.conf file in looks like? >>>>> > >>>>> > Good luck and by all means ask me any further questions you have! >>>>> > >>>>> > -- Kristleifur >>>>> > >>>>> > On Mon, Sep 28, 2009 at 12:36 PM, Aggelos Kyritsis >>>>> > <filodoksos@gmail.com> >>>>> > wrote: >>>>> >> >>>>> >> Thanks for the quick responce :-) >>>>> >> >>>>> >> I tried the "sudo update-initramfs -u -k all" command and it got the >>>>> >> following two messages >>>>> >> >>>>> >> update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic >>>>> >> update-initramfs: Generating /boot/initrd.img-2.6.28-11-generic >>>>> >> >>>>> >> But still no luck with the mdadm >>>>> >> >>>>> >> I have found a guide on creating a custom initial ramdisk >>>>> >> (http://www.ibm.com/developerworks/linux/library/l-initrd.html) but it >>>>> >> still isn't clear to me how to place the mdadm.conf in it (and make >>>>> >> mdadm read the file). >>>>> >> >>>>> >> Could you please elaborate? >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> On Mon, Sep 28, 2009 at 12:18 PM, Kristleifur Daðason >>>>> >> <kristleifur@gmail.com> wrote: >>>>> >> > On Mon, Sep 28, 2009 at 7:13 AM, Aggelos Kyritsis >>>>> >> > <filodoksos@gmail.com> >>>>> >> > wrote: >>>>> >> >> >>>>> >> >> Dear sir/madam, >>>>> >> >> >>>>> >> >> I am running ubuntu 9.04. Until recently I used the mdadm version >>>>> >> >> that >>>>> >> >> exists in the ubuntu repositories, with perfect success. However, >>>>> >> >> since that version is fairly old (2.6, I think), I decided to >>>>> >> >> install >>>>> >> >> the latest version 3.0.2. >>>>> >> >> >>>>> >> >> On a freshly formatted system with no mdadm I downloaded >>>>> >> >> http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-3.0.2.tar.gz, >>>>> >> >> unzipped it and run the "sudo make" and "sudo make install" >>>>> >> >> commands. >>>>> >> >> According to mdadm --version, I succesfuly installed version 3.0.2 >>>>> >> >> of >>>>> >> >> the program. I was also successful on creating and mounting a fresh >>>>> >> >> raid 5 array. >>>>> >> >> >>>>> >> >> However, the installation didn't create either the >>>>> >> >> /etc/mdadm/mdadm.conf or the /etc/mdadm.conf file, where I need to >>>>> >> >> specify the array details so that it is assembled during boot time. >>>>> >> >> >>>>> >> >> I manually created the mdadm.conf file in both locations and added >>>>> >> >> the >>>>> >> >> "DEVICE partitions" line and a line with the result from mdadm >>>>> >> >> --examine --scan >>>>> >> >> >>>>> >> >> Even though this was enough on the old version of mdadm for auto >>>>> >> >> assemble during the boot sequence (so that /etc/fstab could mount >>>>> >> >> /dev/md0), on version 3.0.2 it made no diferrence at all, as if the >>>>> >> >> mdadm I compiled and installed manually wouldn't read the >>>>> >> >> mdadm.config >>>>> >> >> file, neither on /etc/mdadm/mdadm.conf or on /etc/mdadm.conf >>>>> >> >> >>>>> >> >> Is there anything I could do to address this problem? Any way to >>>>> >> >> permanently point the mdadm to its mdadm.conf file? is there an >>>>> >> >> mdadm.conf file created on some other location on the disk, where I >>>>> >> >> can add the array information? >>>>> >> >> >>>>> >> >> Thanks in advance >>>>> >> >> >>>>> >> >> Kind regards >>>>> >> >> >>>>> >> >> Angelos Kyritsis. >>>>> >> > >>>>> >> > Hi, >>>>> >> > >>>>> >> > I've tried almost exactly the same setup. I suspect that you may >>>>> >> > simply need to update the initramfs, specifically to place the >>>>> >> > mdadm.conf in the init-ramdisk. Try "sudo update-initramfs -u -k >>>>> >> > all". >>>>> >> > "-u" means update the initrd, "-k all" means to update for all >>>>> >> > kernels. >>>>> >> > >>>>> >> > -- Kristleifur >>>>> >> > >>>>> > >>>>> > >>>> >>>> >>> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-raid" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > > > > -- > Majed B. > -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mdadm 3.0.2 won't read mdadm.conf file 2009-09-28 16:50 ` Aggelos Kyritsis @ 2009-09-28 17:30 ` John Robinson 2009-09-28 17:47 ` Majed B. 1 sibling, 0 replies; 9+ messages in thread From: John Robinson @ 2009-09-28 17:30 UTC (permalink / raw) To: Aggelos Kyritsis; +Cc: Majed B., Linux RAID On 28/09/2009 17:50, Aggelos Kyritsis wrote: [re-ordered for clarity] > On Mon, Sep 28, 2009 at 7:32 PM, Majed B. <majedb@gmail.com> wrote: >> Did you update initramfs after installing mdadm 3.0.2? > Yes, it was one of the first things I tried, as advised by > Kristleifur, and it didn't work. I don't know Ubuntu at all but I bet its mdadm package adds some bits so mdadm and md RAID modules can get automatically included in the initramfs, while installing by hand won't. You could probably have reconfigured the initramfs generator on Ubuntu to do it, though. Cheers, John. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mdadm 3.0.2 won't read mdadm.conf file 2009-09-28 16:50 ` Aggelos Kyritsis 2009-09-28 17:30 ` John Robinson @ 2009-09-28 17:47 ` Majed B. 2009-09-28 18:13 ` Aggelos Kyritsis 1 sibling, 1 reply; 9+ messages in thread From: Majed B. @ 2009-09-28 17:47 UTC (permalink / raw) To: Aggelos Kyritsis; +Cc: linux-raid No I meant, did you update initramfs after installing mdadm 3.0.2, after you configured your array with the old version? You just mentioned that you used 2.6.7 to configure your array, then installed mdadm 3.0.2 <- after that, did you update initramfs? On Mon, Sep 28, 2009 at 7:50 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: > Yes, it was one of the first things I tried, as advised by > Kristleifur, and it didn't work. > > > On Mon, Sep 28, 2009 at 7:32 PM, Majed B. <majedb@gmail.com> wrote: >> Did you update initramfs after installing mdadm 3.0.2? >> >> On Mon, Sep 28, 2009 at 5:48 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: >>> Well, I tried a simple and dirty solution (aren't they the best?) and it worked: >>> >>> On a fresh install of Ubuntu (I 'm a bit format-happy) I installed >>> mdadm version 2.6.7 (or something) from the repositories: >>> ------------ >>> >>> sudo apt-get install mdadm >>> >>> sudo mdadm -A --scan >>> >>> sudo su >>> >>> mdadm --detail --scan >> /etc/mdadm/mdadm.conf >>> >>> gedit /etc/mdadm/mdadm.conf (made some corrections there, corrected >>> metadata 00.90 to 0.90) >>> >>> mkdir /home/cthulhu/raid >>> >>> chown -R cthulhu:cthulhu /home/cthulhu/raid >>> >>> echo "/dev/md0 /home/cthulhu/raid auto defaults 0 3" >> /etc/fstab >>> >>> gedit /etc/fstab (to make sure it was correctly added) >>> >>> ----------- >>> >>> Then I compiled version 3.0.2, reboot, and now the system correctly >>> mounts the array on startup. Checked mdadm --version and it is indeed >>> 3.0.2, 25 September 2009 >>> >>> I 'm really curious, though, why the plain vanilla 3.0.2 installation >>> wouldn't work for me. >>> >>> >>> On Mon, Sep 28, 2009 at 5:14 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: >>>> Even if they are compiler flags, they are referring to the exact same >>>> file (mdadm.conf) that my mdadm 3.0.2 completely ignores. It might be >>>> a complete coincidence, but it does look suspicious, doesn't it? >>>> >>>> I resend the attachment for the list to see >>>> >>>> On Mon, Sep 28, 2009 at 5:04 PM, Kristleifur Daðason >>>> <kristleifur@gmail.com> wrote: >>>>> Hi, >>>>> >>>>> it looks like we have actually started talking off-list :) (I think so at >>>>> least ...) >>>>> >>>>> Btw, Those "-Werror" things are compiler flags (it means "warn on error") -- >>>>> you're getting neither errors nor warnings there -- compilation is going >>>>> fine >>>>> >>>>> You'd better take this back to the list, there's probably smarter people >>>>> than me there ... and maybe also try the Ubuntu forums >>>>> >>>>> -- Kristleifur >>>>> >>>>> On Mon, Sep 28, 2009 at 1:52 PM, Aggelos Kyritsis <filodoksos@gmail.com> >>>>> wrote: >>>>>> >>>>>> I think I found the cause of the whole situation. >>>>>> >>>>>> During the compilation of mdadm 3.0.2 several error messages appear >>>>>> considering the mdadm.conf file. >>>>>> >>>>>> I attach a file with the compiler's output. I have a feeling that if >>>>>> we can pinpoint the cause of those errors, the problem will be solved. >>>>>> >>>>>> Maybe my system is missing some compilation libraries? I have already >>>>>> installed the build-essential and gcc packages. >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Sep 28, 2009 at 3:53 PM, Kristleifur Daðason >>>>>> <kristleifur@gmail.com> wrote: >>>>>> > Hi again :) >>>>>> > >>>>>> > I forgot that I have the old mdadm 2.6.9 on this machine, so it's >>>>>> > probably >>>>>> > not 100% the same; I did have 3.0.x but not currently, sorry about that. >>>>>> > >>>>>> > The /etc/mdadm/mdadm.conf is probably copied automatically into the >>>>>> > initramdisk when you have the Ubuntu package for mdadm, but I'm not sure >>>>>> > what happens if you have a custom-built mdadm. >>>>>> > >>>>>> > I would guess that there is probably some config file for >>>>>> > update-initramfs >>>>>> > that tells it to take this and that file. >>>>>> > >>>>>> > Wish I could help you better. >>>>>> > >>>>>> > Have you tried expanding the updated initramfs and checking what the >>>>>> > mdadm.conf file in looks like? >>>>>> > >>>>>> > Good luck and by all means ask me any further questions you have! >>>>>> > >>>>>> > -- Kristleifur >>>>>> > >>>>>> > On Mon, Sep 28, 2009 at 12:36 PM, Aggelos Kyritsis >>>>>> > <filodoksos@gmail.com> >>>>>> > wrote: >>>>>> >> >>>>>> >> Thanks for the quick responce :-) >>>>>> >> >>>>>> >> I tried the "sudo update-initramfs -u -k all" command and it got the >>>>>> >> following two messages >>>>>> >> >>>>>> >> update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic >>>>>> >> update-initramfs: Generating /boot/initrd.img-2.6.28-11-generic >>>>>> >> >>>>>> >> But still no luck with the mdadm >>>>>> >> >>>>>> >> I have found a guide on creating a custom initial ramdisk >>>>>> >> (http://www.ibm.com/developerworks/linux/library/l-initrd.html) but it >>>>>> >> still isn't clear to me how to place the mdadm.conf in it (and make >>>>>> >> mdadm read the file). >>>>>> >> >>>>>> >> Could you please elaborate? >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> On Mon, Sep 28, 2009 at 12:18 PM, Kristleifur Daðason >>>>>> >> <kristleifur@gmail.com> wrote: >>>>>> >> > On Mon, Sep 28, 2009 at 7:13 AM, Aggelos Kyritsis >>>>>> >> > <filodoksos@gmail.com> >>>>>> >> > wrote: >>>>>> >> >> >>>>>> >> >> Dear sir/madam, >>>>>> >> >> >>>>>> >> >> I am running ubuntu 9.04. Until recently I used the mdadm version >>>>>> >> >> that >>>>>> >> >> exists in the ubuntu repositories, with perfect success. However, >>>>>> >> >> since that version is fairly old (2.6, I think), I decided to >>>>>> >> >> install >>>>>> >> >> the latest version 3.0.2. >>>>>> >> >> >>>>>> >> >> On a freshly formatted system with no mdadm I downloaded >>>>>> >> >> http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-3.0.2.tar.gz, >>>>>> >> >> unzipped it and run the "sudo make" and "sudo make install" >>>>>> >> >> commands. >>>>>> >> >> According to mdadm --version, I succesfuly installed version 3.0.2 >>>>>> >> >> of >>>>>> >> >> the program. I was also successful on creating and mounting a fresh >>>>>> >> >> raid 5 array. >>>>>> >> >> >>>>>> >> >> However, the installation didn't create either the >>>>>> >> >> /etc/mdadm/mdadm.conf or the /etc/mdadm.conf file, where I need to >>>>>> >> >> specify the array details so that it is assembled during boot time. >>>>>> >> >> >>>>>> >> >> I manually created the mdadm.conf file in both locations and added >>>>>> >> >> the >>>>>> >> >> "DEVICE partitions" line and a line with the result from mdadm >>>>>> >> >> --examine --scan >>>>>> >> >> >>>>>> >> >> Even though this was enough on the old version of mdadm for auto >>>>>> >> >> assemble during the boot sequence (so that /etc/fstab could mount >>>>>> >> >> /dev/md0), on version 3.0.2 it made no diferrence at all, as if the >>>>>> >> >> mdadm I compiled and installed manually wouldn't read the >>>>>> >> >> mdadm.config >>>>>> >> >> file, neither on /etc/mdadm/mdadm.conf or on /etc/mdadm.conf >>>>>> >> >> >>>>>> >> >> Is there anything I could do to address this problem? Any way to >>>>>> >> >> permanently point the mdadm to its mdadm.conf file? is there an >>>>>> >> >> mdadm.conf file created on some other location on the disk, where I >>>>>> >> >> can add the array information? >>>>>> >> >> >>>>>> >> >> Thanks in advance >>>>>> >> >> >>>>>> >> >> Kind regards >>>>>> >> >> >>>>>> >> >> Angelos Kyritsis. >>>>>> >> > >>>>>> >> > Hi, >>>>>> >> > >>>>>> >> > I've tried almost exactly the same setup. I suspect that you may >>>>>> >> > simply need to update the initramfs, specifically to place the >>>>>> >> > mdadm.conf in the init-ramdisk. Try "sudo update-initramfs -u -k >>>>>> >> > all". >>>>>> >> > "-u" means update the initrd, "-k all" means to update for all >>>>>> >> > kernels. >>>>>> >> > >>>>>> >> > -- Kristleifur >>>>>> >> > >>>>>> > >>>>>> > >>>>> >>>>> >>>> >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-raid" in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>> >> >> >> >> -- >> Majed B. >> > -- Majed B. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mdadm 3.0.2 won't read mdadm.conf file 2009-09-28 17:47 ` Majed B. @ 2009-09-28 18:13 ` Aggelos Kyritsis 0 siblings, 0 replies; 9+ messages in thread From: Aggelos Kyritsis @ 2009-09-28 18:13 UTC (permalink / raw) To: Majed B.; +Cc: linux-raid No, I just installed mdadm 3.0.2, rebooted and it worked On Mon, Sep 28, 2009 at 8:47 PM, Majed B. <majedb@gmail.com> wrote: > No I meant, did you update initramfs after installing mdadm 3.0.2, > after you configured your array with the old version? > > You just mentioned that you used 2.6.7 to configure your array, then > installed mdadm 3.0.2 <- after that, did you update initramfs? > > On Mon, Sep 28, 2009 at 7:50 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: >> Yes, it was one of the first things I tried, as advised by >> Kristleifur, and it didn't work. >> >> >> On Mon, Sep 28, 2009 at 7:32 PM, Majed B. <majedb@gmail.com> wrote: >>> Did you update initramfs after installing mdadm 3.0.2? >>> >>> On Mon, Sep 28, 2009 at 5:48 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: >>>> Well, I tried a simple and dirty solution (aren't they the best?) and it worked: >>>> >>>> On a fresh install of Ubuntu (I 'm a bit format-happy) I installed >>>> mdadm version 2.6.7 (or something) from the repositories: >>>> ------------ >>>> >>>> sudo apt-get install mdadm >>>> >>>> sudo mdadm -A --scan >>>> >>>> sudo su >>>> >>>> mdadm --detail --scan >> /etc/mdadm/mdadm.conf >>>> >>>> gedit /etc/mdadm/mdadm.conf (made some corrections there, corrected >>>> metadata 00.90 to 0.90) >>>> >>>> mkdir /home/cthulhu/raid >>>> >>>> chown -R cthulhu:cthulhu /home/cthulhu/raid >>>> >>>> echo "/dev/md0 /home/cthulhu/raid auto defaults 0 3" >> /etc/fstab >>>> >>>> gedit /etc/fstab (to make sure it was correctly added) >>>> >>>> ----------- >>>> >>>> Then I compiled version 3.0.2, reboot, and now the system correctly >>>> mounts the array on startup. Checked mdadm --version and it is indeed >>>> 3.0.2, 25 September 2009 >>>> >>>> I 'm really curious, though, why the plain vanilla 3.0.2 installation >>>> wouldn't work for me. >>>> >>>> >>>> On Mon, Sep 28, 2009 at 5:14 PM, Aggelos Kyritsis <filodoksos@gmail.com> wrote: >>>>> Even if they are compiler flags, they are referring to the exact same >>>>> file (mdadm.conf) that my mdadm 3.0.2 completely ignores. It might be >>>>> a complete coincidence, but it does look suspicious, doesn't it? >>>>> >>>>> I resend the attachment for the list to see >>>>> >>>>> On Mon, Sep 28, 2009 at 5:04 PM, Kristleifur Daðason >>>>> <kristleifur@gmail.com> wrote: >>>>>> Hi, >>>>>> >>>>>> it looks like we have actually started talking off-list :) (I think so at >>>>>> least ...) >>>>>> >>>>>> Btw, Those "-Werror" things are compiler flags (it means "warn on error") -- >>>>>> you're getting neither errors nor warnings there -- compilation is going >>>>>> fine >>>>>> >>>>>> You'd better take this back to the list, there's probably smarter people >>>>>> than me there ... and maybe also try the Ubuntu forums >>>>>> >>>>>> -- Kristleifur >>>>>> >>>>>> On Mon, Sep 28, 2009 at 1:52 PM, Aggelos Kyritsis <filodoksos@gmail.com> >>>>>> wrote: >>>>>>> >>>>>>> I think I found the cause of the whole situation. >>>>>>> >>>>>>> During the compilation of mdadm 3.0.2 several error messages appear >>>>>>> considering the mdadm.conf file. >>>>>>> >>>>>>> I attach a file with the compiler's output. I have a feeling that if >>>>>>> we can pinpoint the cause of those errors, the problem will be solved. >>>>>>> >>>>>>> Maybe my system is missing some compilation libraries? I have already >>>>>>> installed the build-essential and gcc packages. >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Mon, Sep 28, 2009 at 3:53 PM, Kristleifur Daðason >>>>>>> <kristleifur@gmail.com> wrote: >>>>>>> > Hi again :) >>>>>>> > >>>>>>> > I forgot that I have the old mdadm 2.6.9 on this machine, so it's >>>>>>> > probably >>>>>>> > not 100% the same; I did have 3.0.x but not currently, sorry about that. >>>>>>> > >>>>>>> > The /etc/mdadm/mdadm.conf is probably copied automatically into the >>>>>>> > initramdisk when you have the Ubuntu package for mdadm, but I'm not sure >>>>>>> > what happens if you have a custom-built mdadm. >>>>>>> > >>>>>>> > I would guess that there is probably some config file for >>>>>>> > update-initramfs >>>>>>> > that tells it to take this and that file. >>>>>>> > >>>>>>> > Wish I could help you better. >>>>>>> > >>>>>>> > Have you tried expanding the updated initramfs and checking what the >>>>>>> > mdadm.conf file in looks like? >>>>>>> > >>>>>>> > Good luck and by all means ask me any further questions you have! >>>>>>> > >>>>>>> > -- Kristleifur >>>>>>> > >>>>>>> > On Mon, Sep 28, 2009 at 12:36 PM, Aggelos Kyritsis >>>>>>> > <filodoksos@gmail.com> >>>>>>> > wrote: >>>>>>> >> >>>>>>> >> Thanks for the quick responce :-) >>>>>>> >> >>>>>>> >> I tried the "sudo update-initramfs -u -k all" command and it got the >>>>>>> >> following two messages >>>>>>> >> >>>>>>> >> update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic >>>>>>> >> update-initramfs: Generating /boot/initrd.img-2.6.28-11-generic >>>>>>> >> >>>>>>> >> But still no luck with the mdadm >>>>>>> >> >>>>>>> >> I have found a guide on creating a custom initial ramdisk >>>>>>> >> (http://www.ibm.com/developerworks/linux/library/l-initrd.html) but it >>>>>>> >> still isn't clear to me how to place the mdadm.conf in it (and make >>>>>>> >> mdadm read the file). >>>>>>> >> >>>>>>> >> Could you please elaborate? >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> On Mon, Sep 28, 2009 at 12:18 PM, Kristleifur Daðason >>>>>>> >> <kristleifur@gmail.com> wrote: >>>>>>> >> > On Mon, Sep 28, 2009 at 7:13 AM, Aggelos Kyritsis >>>>>>> >> > <filodoksos@gmail.com> >>>>>>> >> > wrote: >>>>>>> >> >> >>>>>>> >> >> Dear sir/madam, >>>>>>> >> >> >>>>>>> >> >> I am running ubuntu 9.04. Until recently I used the mdadm version >>>>>>> >> >> that >>>>>>> >> >> exists in the ubuntu repositories, with perfect success. However, >>>>>>> >> >> since that version is fairly old (2.6, I think), I decided to >>>>>>> >> >> install >>>>>>> >> >> the latest version 3.0.2. >>>>>>> >> >> >>>>>>> >> >> On a freshly formatted system with no mdadm I downloaded >>>>>>> >> >> http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-3.0.2.tar.gz, >>>>>>> >> >> unzipped it and run the "sudo make" and "sudo make install" >>>>>>> >> >> commands. >>>>>>> >> >> According to mdadm --version, I succesfuly installed version 3.0.2 >>>>>>> >> >> of >>>>>>> >> >> the program. I was also successful on creating and mounting a fresh >>>>>>> >> >> raid 5 array. >>>>>>> >> >> >>>>>>> >> >> However, the installation didn't create either the >>>>>>> >> >> /etc/mdadm/mdadm.conf or the /etc/mdadm.conf file, where I need to >>>>>>> >> >> specify the array details so that it is assembled during boot time. >>>>>>> >> >> >>>>>>> >> >> I manually created the mdadm.conf file in both locations and added >>>>>>> >> >> the >>>>>>> >> >> "DEVICE partitions" line and a line with the result from mdadm >>>>>>> >> >> --examine --scan >>>>>>> >> >> >>>>>>> >> >> Even though this was enough on the old version of mdadm for auto >>>>>>> >> >> assemble during the boot sequence (so that /etc/fstab could mount >>>>>>> >> >> /dev/md0), on version 3.0.2 it made no diferrence at all, as if the >>>>>>> >> >> mdadm I compiled and installed manually wouldn't read the >>>>>>> >> >> mdadm.config >>>>>>> >> >> file, neither on /etc/mdadm/mdadm.conf or on /etc/mdadm.conf >>>>>>> >> >> >>>>>>> >> >> Is there anything I could do to address this problem? Any way to >>>>>>> >> >> permanently point the mdadm to its mdadm.conf file? is there an >>>>>>> >> >> mdadm.conf file created on some other location on the disk, where I >>>>>>> >> >> can add the array information? >>>>>>> >> >> >>>>>>> >> >> Thanks in advance >>>>>>> >> >> >>>>>>> >> >> Kind regards >>>>>>> >> >> >>>>>>> >> >> Angelos Kyritsis. >>>>>>> >> > >>>>>>> >> > Hi, >>>>>>> >> > >>>>>>> >> > I've tried almost exactly the same setup. I suspect that you may >>>>>>> >> > simply need to update the initramfs, specifically to place the >>>>>>> >> > mdadm.conf in the init-ramdisk. Try "sudo update-initramfs -u -k >>>>>>> >> > all". >>>>>>> >> > "-u" means update the initrd, "-k all" means to update for all >>>>>>> >> > kernels. >>>>>>> >> > >>>>>>> >> > -- Kristleifur >>>>>>> >> > >>>>>>> > >>>>>>> > >>>>>> >>>>>> >>>>> >>>> -- >>>> To unsubscribe from this list: send the line "unsubscribe linux-raid" in >>>> the body of a message to majordomo@vger.kernel.org >>>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>>> >>> >>> >>> >>> -- >>> Majed B. >>> >> > > > > -- > Majed B. > -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-09-28 18:13 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-28 7:13 mdadm 3.0.2 won't read mdadm.conf file Aggelos Kyritsis
2009-09-28 9:18 ` Kristleifur Daðason
[not found] ` <1e36c70e0909280536s513fa655n9533efe220dceddf@mail.gmail.com>
[not found] ` <73e903670909280553t3de93c68t5673ba234ac72bef@mail.gmail.com>
[not found] ` <1e36c70e0909280652j42ee420mabaa4141363a976a@mail.gmail.com>
[not found] ` <73e903670909280704r1189e86aoc08cbc260e6d8ab8@mail.gmail.com>
2009-09-28 14:14 ` Aggelos Kyritsis
2009-09-28 14:48 ` Aggelos Kyritsis
2009-09-28 16:32 ` Majed B.
2009-09-28 16:50 ` Aggelos Kyritsis
2009-09-28 17:30 ` John Robinson
2009-09-28 17:47 ` Majed B.
2009-09-28 18:13 ` Aggelos Kyritsis
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).