[gentoo-user] no javac on gentoo amd64?
hi, my system is gentoo amd 64. java-config -L show i have two VMs on my system: The following VMs are available for generation-2: 1) IcedTea6-bin 1.7.1 [icedtea6-bin] *) Sun JRE 1.6.0.18 [sun-jre-bin-1.6] but when i ran javac, it says: * javac is not available for sun-jre-bin-1.6 on x86_64 * IMPORTANT: some Java tools are not available on some VMs on some architectures we do not have javac on amd64 system? how to fix this? i did not find much use information on http://www.gentoo.org/doc/en/java.xml -- Best Regards, David Shen http://twitter.com/davidshen84/
Re: [gentoo-user] no javac on gentoo amd64?
On Saturday 03 April 2010 09:17:47 Xi Shen wrote: hi, my system is gentoo amd 64. java-config -L show i have two VMs on my system: The following VMs are available for generation-2: 1) IcedTea6-bin 1.7.1 [icedtea6-bin] *) Sun JRE 1.6.0.18 [sun-jre-bin-1.6] but when i ran javac, it says: * javac is not available for sun-jre-bin-1.6 on x86_64 * IMPORTANT: some Java tools are not available on some VMs on some architectures we do not have javac on amd64 system? how to fix this? i did not find much use information on http://www.gentoo.org/doc/en/java.xml The JRE (Java Runtime Environment) only has the Runtime tools. You need to install the JDK. It works on my system: ** jo...@eve ~ $ java-config -L The following VMs are available for generation-2: *) Sun JDK 1.6.0.17 [sun-jdk-1.6] VMs marked as Build Only may contain Security Vulnerabilities and/or be EOL. Gentoo recommends not setting these VMs as either your System or User VM. Please see http://www.gentoo.org/doc/en/java.xml#build-only for more information ** jo...@eve ~ $ eix -I jdk [I] dev-java/sun-jdk Available versions: (1.4) ~*1.4.2.19-r1!f!s[1] (1.5) 1.5.0.22-r1!s (1.6) 1.6.0.17!s ~1.6.0.18!s ~1.6.0.18-r1!s ~1.6.0.19!s {X alsa derby doc examples jce nsplugin odbc} Installed versions: 1.6.0.17(1.6)!s(09:05:13 AM 11/18/2009)(X alsa nsplugin -derby -doc -examples -jce -odbc) Homepage:http://java.sun.com/javase/6/ Description: Sun's Java SE Development Kit [I] virtual/jdk Available versions: (1.4) ~1.4.2-r1[1] (1.5) 1.5.0 ~1.5.0-r1[1] ~1.5.0-r2[1] (1.6) 1.6.0 ~1.6.0-r1[1] ~1.6.0-r2[1] Installed versions: 1.6.0(1.6)(09:07:44 AM 11/18/2009) Homepage:http://java.sun.com/ Description: Virtual for JDK [1] layman/java-overlay Found 2 matches. ** jo...@eve ~ $ javac Usage: javac options source files where possible options include: -g Generate all debugging info snipped rest of output ** jo...@eve ~ $ uname -a Linux eve 2.6.30-gentoo-r5 #1 SMP Wed Nov 18 12:23:47 CET 2009 x86_64 AMD Phenom(tm) 9950 Quad-Core Processor AuthenticAMD GNU/Linux ** HTH, Joost Roeleveld
Re: [gentoo-user] Re: language
I propose an experiment. For example, if gedit is displaying the wrong language, then type this at a command prompt (in xterm or gterm, etc): $LC_ALL='fr' gedit Thank you Walt, but it doesn't work. Here is the message: (process:5573): Gtk-WARNING**: locale not supported by C library. Using the fallback 'C' locale. Roger
[gentoo-user] Disk or filesystem issue?
For the last few weeks i have been getting the single user prompt on shutdown, and reiserfs3 is performing a check(fix?) during boot. Seems to happen about 4 times out of 5. smartctl report looks ok. I have been using 2.6.31-gentoo-r6 for ages without issue. Any ideas?
Re: [gentoo-user] Disk or filesystem issue?
On Saturday 03 April 2010 09:08:08 Adam wrote: For the last few weeks i have been getting the single user prompt on shutdown, and reiserfs3 is performing a check(fix?) during boot. Seems to happen about 4 times out of 5. smartctl report looks ok. I have been using 2.6.31-gentoo-r6 for ages without issue. Any ideas? Probably neither. Can you Ctrl+F12 to see what the logs are saying? I've been getting kernel Oops! on shutdown on one machine of mine with the 2.6.31-gentoo-r10 kernel. Might be similar? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] OT:Choosing a filesystem
On Fri, 2 Apr 2010 18:01:50 -0400, stosss wrote: I have been following this thread. I decided to research to do my own comparisons of ext3, ext4, JFS and XFS. Why have you ignored reiser3 and reiser4? The former in particular is widely used. -- Neil Bothwick Pepperami. Its a bit of an animal. What animal what bit? signature.asc Description: PGP signature
Re: [gentoo-user] Re: language
Le 03/04/2010 09:34, Roger Cahn a gentiment tapote: I propose an experiment. For example, if gedit is displaying the wrong language, then type this at a command prompt (in xterm or gterm, etc): $LC_ALL='fr' gedit Thank you Walt, but it doesn't work. Here is the message: (process:5573): Gtk-WARNING**: locale not supported by C library. Using the fallback 'C' locale. Roger Try $LC_ALL=fr_FR.UTF-8 gedit Jacques
Re: [gentoo-user] OT:Choosing a filesystem
On Friday 02 April 2010 14:45:29 Volker Armin Hemmann wrote: On Freitag 02 April 2010, meino.cra...@gmx.de wrote: Neil Bothwick n...@digimed.co.uk [10-04-02 14:08]: On Fri, 2 Apr 2010 13:04:53 +0200, meino.cra...@gmx.de wrote: only to be sure to have understood everything correctly: Suggestion is to create for example one root partition and a swap partion. And I will create on big rest of the disk-partition. The last one will be subdivided with LVM into portions as needed. Yes. Since the last big partition is big due to physical reasons (not for logical one): What will happen, if -- for example -- one portion will be not unmounted cleanly and while booting/checking fails to recover? Are all others damaged/lost? No, because the failure you describe is at the filesystem level. Even the volume containing that filesystem will retain integrity, only the filesystem itself will be corrupted. As you have left free space on the volume group, you can just create a new volume, format it and copy over everything you can recover from the broken filesystem before deleting it. Hi Neil, yes, sounds good, very good. Last question: How heavy is the performance impact of such a setup ? seriously lvm sounds nice. But it isn't. It easily breaks. Can you back that up with some facts? I use LVM on many machines and have never had it breaks. I'm also quite ruthless on some machines with how I use it - manipulating volumes with apparently gay abandon. I attribute this lack of failure to me understanding how LVm works and using it as designed, without trying to be cute and/or clever. You want a save setup? Go raid5 or raid6. As a bonus - you can get more space if you need it by just adding another disk. And you are not depending on some complex stuff to get it working. The various raid levels do not address the problem that LVM solves - how to rapidly create and manipulate sub-volumes. If your /var/log fills up, how would you add an extra 10G to it to gain breathing space without using something LVM-like (evms is for example LVM-like. So are the native HP-UX tools)? -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] OT:Choosing a filesystem
On Friday 02 April 2010 23:28:26 Neil Bothwick wrote: On Fri, 2 Apr 2010 21:50:09 +0200, Volker Armin Hemmann wrote: Assuming your controller supports hotplugging, assuming you have a drive available to plug in, assuming you are able to physically add a drive. sata can hotplug. all ahci controlers can hotplug and all sata drives can hotplug. If you insist on technology straight from the stone ages that is your problem. I'd like to see you hotplug another SATA drive into this netbook, whereas I can add another volume in seconds. I'd like to see him add another SATA drive to my nameservers sitting in New York or the vmhost in Nairobi. I'm in Johannesburg. Taking down that NewYork nameserver on a whim to add disks is not an option. It's an old machine, but a critical one and serves DNS to our entire European and US markets. Taking it down on a whim gets me fired. -- alan dot mckinnon at gmail dot com
[gentoo-user] Re: language
Le 03/04/10 09:34, Roger Cahn a écrit : (process:5573): Gtk-WARNING**: locale not supported by C library. Using the fallback 'C' locale. Any similar message if you simple run gedit ? What's the output of locale -a, and of locale ? Btw, did you need to install/modify anything to get the projector working ? -- Nico.
Re: [gentoo-user] Re: language [solved]
Try $LC_ALL=fr_FR.UTF-8 gedit I did it, but it opens gedit in english. The idea came to search where the config file of gedit is on my desktop computer. I made a locate gedit and I found within other files /usr/share/locale/fr/LC_MESSAGES/gedit.mo I saw that gedit.mo is a binary file. With an usb key I put it in /usr/share/locale/fr/LC_MESSAGES of my laptop where it wasn't. And it worked :-) I made a second try with xfdesktop.mo, and it succeeded also. Now I have to do the same thing for the other packages. I'm surprised that the video projector could change the language in many files. Thanks for your help Roger
Re: [gentoo-user] Re: language [solved]
With an usb key I put it in /usr/share/locale/fr/LC_MESSAGES of my laptop where it wasn't. And it worked :-) I made a second try with xfdesktop.mo, and it succeeded also. An other method given by a friend, and more easier: compile again a package in english, and it will become in french. I tried with gimp and it worked. I don't indeed understand what happened! Roger
[gentoo-user] Which drive is hooked to which controller?
Hi, A new system has 2 SATA controllers, 6 SATA ports, 3 drives and 1 CDRW. Without opening the box is there a way I can determine which drives are hooked to the Intel controller vs which are hooked to the Marvell? Thanks, Mark keeper ~ # lspci -k | grep SATA 00:1f.2 SATA controller: Intel Corporation 82801JI (ICH10 Family) SATA AHCI Controller 06:00.0 IDE interface: Marvell Technology Group Ltd. 88SE6121 SATA II Controller (rev b2) keeper ~ # Cdrecord-ProDVD-ProBD-Clone 2.01.01a77 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2010 Jörg Schilling Linux sg driver version: 3.5.34 Using libscg version 'schily-0.9'. scsibus0: 0,0,0 0) 'ATA ' 'WDC WD10EARS-00Y' '80.0' Disk 0,1,0 1) * 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * scsibus1: 1,0,0 100) 'Optiarc ' 'DVD RW AD-7241S ' '1.03' Removable CD-ROM 1,1,0 101) * 1,2,0 102) * 1,3,0 103) * 1,4,0 104) * 1,5,0 105) * 1,6,0 106) * 1,7,0 107) * scsibus2: 2,0,0 200) 'ATA ' 'WDC WD10EARS-00Y' '80.0' Disk 2,1,0 201) * 2,2,0 202) * 2,3,0 203) * 2,4,0 204) * 2,5,0 205) * 2,6,0 206) * 2,7,0 207) * scsibus4: 4,0,0 400) 'ATA ' 'WDC WD10EARS-00Y' '80.0' Disk 4,1,0 401) * 4,2,0 402) * 4,3,0 403) * 4,4,0 404) * 4,5,0 405) * 4,6,0 406) * 4,7,0 407) * keeper ~ #
[gentoo-user] X crashes, how to troubleshoot?
Recently X has spontaneously crashed on me several times. Each time it is triggered by opening up a new webpage in a new tab in Firefox. The URL of the webpages are random, so I don't think it has to do with any particular site (and those url often open fine on subsequent visits). The message that I end up having from X is: Backtrace: 0: X (xorg_backtrace+0x3b) [0x80ab23b] 1: X (0x8048000+0x5e1d5) [0x80a61d5] 2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb782240c] 3: /usr/lib/xorg/modules/drivers/intel_drv.so (0xb7299000+0x32cae) [0xb72cbcae] 4: X (0x8048000+0xc6550) [0x810e550] 5: X (0x8048000+0x20745) [0x8068745] 6: X (0x8048000+0x22df7) [0x806adf7] 7: X (0x8048000+0x1d285) [0x8065285] 8: /lib/libc.so.6 (__libc_start_main+0xe5) [0xb7397bb5] 9: X (0x8048000+0x1ce51) [0x8064e51] Bus error at address 0xb61f4000 Fatal server error: Caught signal 7 (Bus error). Server aborting which is not too much to go on. As you can see, I use the intel drivers. The behaviour may have started after my March 19 upgrades: Fri Mar 19 11:08:54 2010 x11-libs/libXau-1.0.5 Fri Mar 19 11:09:41 2010 x11-libs/libXdmcp-1.0.3 Fri Mar 19 11:10:06 2010 x11-misc/util-macros-1.6.1 Fri Mar 19 11:20:13 2010 x11-libs/libX11-1.3.3 Fri Mar 19 11:21:17 2010 x11-libs/libdrm-2.4.19 Fri Mar 19 11:22:44 2010 x11-libs/libXt-1.0.8 Fri Mar 19 11:23:26 2010 x11-libs/libXScrnSaver-1.2.0 Fri Mar 19 11:41:42 2010 x11-libs/openmotif-2.3.3 Fri Mar 19 11:42:17 2010 x11-apps/xinput-1.5.1 Fri Mar 19 12:30:55 2010 x11-apps/xinit-1.2.1 Fri Mar 19 12:54:23 2010 x11-base/xorg-server-1.7.6 Fri Mar 19 12:55:55 2010 x11-drivers/xf86-video-intel-2.10.0-r1 For what it's worth, here's the lspci output: Gee-Mi-Ni elog # lspci -vs 00:02.* 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller]) Subsystem: Giga-byte Technology Device 1999 Flags: bus master, fast devsel, latency 0, IRQ 16 Memory at 5828 (32-bit, non-prefetchable) [size=512K] I/O ports at 60c0 [size=8] Memory at 4000 (32-bit, prefetchable) [size=256M] Memory at 5830 (32-bit, non-prefetchable) [size=256K] Expansion ROM at unassigned [disabled] Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [d0] Power Management version 2 Kernel driver in use: i915 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03) Subsystem: Giga-byte Technology Device 1999 Flags: bus master, fast devsel, latency 0 Memory at 5820 (32-bit, non-prefetchable) [size=512K] Capabilities: [d0] Power Management version 2 Any suggestions on what I can do to figure out what the problem is? Thanks, W -- Willie W. Wong ww...@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton
Re: [gentoo-user] Which drive is hooked to which controller?
On Saturday 03 April 2010 17:16:37 Mark Knecht wrote: Hi, A new system has 2 SATA controllers, 6 SATA ports, 3 drives and 1 CDRW. Without opening the box is there a way I can determine which drives are hooked to the Intel controller vs which are hooked to the Marvell? Try lshw. The two controllers will have their separate trees of drives shown indented below them. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] gentoo-wiki.com
On Friday 02 April 2010 17.06:31 Dan Johansson wrote: On Friday 02 April 2010 16.50:56 erdun...@gmail.com wrote: On Fri, Apr 02, 2010 at 09:34:12AM -0500, Paul Hartman wrote: On Fri, Apr 2, 2010 at 8:24 AM, Dan Johansson dan.johans...@dmj.nu wrote: Hallo, Someone knows what's up with gentoo-wiki.com? I get a Connection to 207.98.216.138 Failed and downforeveryoneorjustme.com reports It's not just you! http://gentoo-wiki.com looks down from here. Looks like his other website (gentoo-portage.com) is also down. He hasn't posted anything about it on his Twitter account. http://twitter.com/mikevalstar The machine doesn't even respond to ping… pts/1:erdun...@alice:/home/erdunand % ping gentoo-wiki.com [16:39] PING gentoo-wiki.com (207.98.216.138) 56(84) bytes of data. ^C --- gentoo-wiki.com ping statistics --- 12 packets transmitted, 0 received, 100% packet loss, time 11000ms I didn't know about downforeveryoneorjustme.com It gives me the same answer though. Do you know how they test if the computer is up ? No, I have no idea on how they do it. gentoo-wiki.com is up and running again. (:-) -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Which drive is hooked to which controller?
On Sat, Apr 3, 2010 at 9:47 AM, Mick michaelkintz...@gmail.com wrote: On Saturday 03 April 2010 17:16:37 Mark Knecht wrote: Hi, A new system has 2 SATA controllers, 6 SATA ports, 3 drives and 1 CDRW. Without opening the box is there a way I can determine which drives are hooked to the Intel controller vs which are hooked to the Marvell? Try lshw. The two controllers will have their separate trees of drives shown indented below them. -- Regards, Mick Thanks Mick. Exactly what I needed. Cheers, Mark
[gentoo-user] How does grub assemble a RAID1 for / ??
Hi, I'm doing an install roughly following this guide: http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml Differences: 1) AMD64 2) A non-RAID Gentoo install already resides /dev/sda 3) I'm doing the RAID install on /dev/sdb3 /dev/sdc3 4) RAID1 only 5) No LVM 6) Shared /boot grub 7) grub not installed for the RAID installation as I am using the non-raid grub to boot options The install is complete but it won't boot. grub finds the kernel and starts booting but then I get the typical VFS file sync error as the kernel starts looking for the install on /dev/md3. What I'm not understanding is how does the boot process get the information required to assemble the RAID device. By hand in the non-RAID install I do this: keeper ~ # mdadm -A /dev/md3 /dev/sdb3 /dev/sdc3 mdadm: /dev/md3 has been started with 2 drives. keeper ~ # cat /proc/mdstat Personalities : [raid1] md3 : active raid1 sdb3[0] sdc3[1] 52436092 blocks super 1.1 [2/2] [UU] unused devices: none keeper ~ # but when I try to boot the RAID install it says it cannot find /dev/md3. From within the non-RAID install I can mount md3. It's got the RAID install and I can chroot into it and continue doing install like things so all the data is there but I cannot boot it. I don't see what allows grub (I gruss) to start up mdadm, assemble the device and then continue the boot. What am I missing? grub.conf and fdisk info follows. Thanks, Mark keeper ~ # cat /boot/grub/grub.conf default 0 timeout 30 splashimage=(hd0,0)/boot/grub/splash.xpm.gz title /dev/sda1 Gentoo Linux 2.6.33-gentoo root (hd0,0) kernel (hd0,0)/boot/bzImage-2.6.33-gentoo root=/dev/sda3 title /dev/sda1 Gentoo Linux 2.6.33-gentoo-RAID root (hd0,0) kernel (hd0,0)/boot/bzImage-2.6.33-gentoo-RAID root=/dev/md3 keeper ~ # keeper ~ # fdisk -l /dev/sda /dev/sdb /dev/sdc Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x1d23ae47 Device Boot Start End Blocks Id System /dev/sda1 * 1 14 112423+ 83 Linux /dev/sda2 16 538 4200997+ 82 Linux swap / Solaris /dev/sda32048596431463302+ 83 Linux /dev/sda46000 121601 9285730655 Extended /dev/sda56000 19054 104864256 83 Linux Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xa06ef201 Device Boot Start End Blocks Id System /dev/sdb1 1 14 112423+ 83 Linux /dev/sdb2 16 538 4200997+ 82 Linux swap / Solaris /dev/sdb3 544707152436160 fd Linux raid autodetect Disk /dev/sdc: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x2ab15637 Device Boot Start End Blocks Id System /dev/sdc1 1 14 112423+ 83 Linux /dev/sdc2 16 538 4200997+ 82 Linux swap / Solaris /dev/sdc3 544707152436160 fd Linux raid autodetect keeper ~ # From the RAID1 fstab /dev/sda1 /boot ext2noauto,noatime 1 2 /dev/md3/ ext3noatime 0 1 /dev/sda2 noneswapsw 0 0 /dev/sdb2 noneswapsw 0 0 /dev/sdc2 noneswapsw 0 0
Re: [gentoo-user] How does grub assemble a RAID1 for / ??
On Sat, 3 Apr 2010 16:07:06 -0700, Mark Knecht wrote: The install is complete but it won't boot. grub finds the kernel and starts booting but then I get the typical VFS file sync error as the kernel starts looking for the install on /dev/md3. What I'm not understanding is how does the boot process get the information required to assemble the RAID device. By hand in the non-RAID install I do this: keeper ~ # mdadm -A /dev/md3 /dev/sdb3 /dev/sdc3 mdadm: /dev/md3 has been started with 2 drives. keeper ~ # cat /proc/mdstat Personalities : [raid1] md3 : active raid1 sdb3[0] sdc3[1] 52436092 blocks super 1.1 [2/2] [UU] unused devices: none keeper ~ # but when I try to boot the RAID install it says it cannot find /dev/md3. You need to set the partition type for the RAIDed partitions to Linux raid autodetect. You'll probably then find that the kernel sets the RAID as /dev/md0, not md3. -- Neil Bothwick You want us to do WHAT? - Ancient Chinese wall engineer. signature.asc Description: PGP signature
[gentoo-user] Can't find bluetooth device (BCM2046)
My lsusb shows as much: Bus 002 Device 004: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth) dmesg: Bluetooth: Core ver 2.15 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized Bluetooth: L2CAP ver 2.14 Bluetooth: L2CAP socket layer initialized Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Bluetooth: BNEP filters: protocol multicast Bluetooth: SCO (Voice Link) ver 0.6 Bluetooth: SCO socket layer initialized Bluetooth: RFCOMM TTY layer initialized Bluetooth: RFCOMM socket layer initialized Bluetooth: RFCOMM ver 1.11 I've installed bluez and modprobe btusb, because /etc/init.d/bluetooth does not load it: Bluetooth: Generic Bluetooth USB driver ver 0.6 usbcore: registered new interface driver btusb when I run: $ hcitool dev Devices: or # hciconfig # I am not seeing a device there. Is there a particular module in the kernel that I am missing? CONFIG_BT=m CONFIG_BT_L2CAP=m CONFIG_BT_SCO=m CONFIG_BT_RFCOMM=m CONFIG_BT_RFCOMM_TTY=y CONFIG_BT_BNEP=m CONFIG_BT_BNEP_MC_FILTER=y CONFIG_BT_BNEP_PROTO_FILTER=y CONFIG_BT_HIDP=m CONFIG_BT_HCIBTUSB=m CONFIG_BT_HCIBTSDIO=m # CONFIG_BT_HCIUART is not set CONFIG_BT_HCIBCM203X=m CONFIG_BT_HCIBPA10X=m CONFIG_BT_HCIBFUSB=m # CONFIG_BT_HCIDTL1 is not set # CONFIG_BT_HCIBT3C is not set # CONFIG_BT_HCIBLUECARD is not set # CONFIG_BT_HCIBTUART is not set # CONFIG_BT_HCIVHCI is not set # CONFIG_BT_MRVL is not set -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] How does grub assemble a RAID1 for / ??
On Sat, 2010-04-03 at 16:07 -0700, Mark Knecht wrote: The install is complete but it won't boot. grub finds the kernel and starts booting but then I get the typical VFS file sync error as the kernel starts looking for the install on /dev/md3. What I'm not understanding is how does the boot process get the information required to assemble the RAID device. GRUB does not assemble raid. That's why it only works with RAID1. By your own account, GRUB has succeeded, therefore GRUB is not the problem. The problem is the kernel The kernel assembles RAID by looking for partitions of with the Linux RAID partition type, finding out what kind of RAID they are, and assembling them (according to their RAID volume UUID). You apparently only have one RAID volume. It's probably being assigned to /dev/md0, yet you are passing root=/dev/md3.. not sure why you are doing that.
Re: [gentoo-user] Disk or filesystem issue?
Probably neither. Can you Ctrl+F12 to see what the logs are saying? I've been getting kernel Oops! on shutdown on one machine of mine with the 2.6.31-gentoo-r10 kernel. Might be similar Ok, i found this, which is mentioning fglrx, and the problem may have started when i changed driver versions. So is it possible for an X driver to cause filesystem issues? I would have assumed not. Apr 4 10:38:08 sphinx shutdown[5768]: shutting down for system reboot Apr 4 10:38:09 sphinx init: Switching to runlevel: 6 Apr 4 10:38:09 sphinx gnome-session[5585]: WARNING: Detected that screensaver has left the bus Apr 4 10:38:09 sphinx gnome-keyring-daemon[5614]: dbus failure unregistering from session: Connection is closed Apr 4 10:38:09 sphinx su[5753]: pam_unix(su:session): session closed for user root Apr 4 10:38:09 sphinx kernel: uhci_hcd :00:1d.1: release dev 2 ep81-INT, period 8, phase 4, 93 us Apr 4 10:38:09 sphinx kernel: uhci_hcd :00:1a.0: release dev 4 ep81-INT, period 8, phase 4, 14 us Apr 4 10:38:09 sphinx kernel: __ratelimit: 20 callbacks suppressed Apr 4 10:38:09 sphinx kernel: BUG: using smp_processor_id() in preemptible [] code: X/5275 Apr 4 10:38:09 sphinx kernel: caller is KAS_GetExecutionLevel+0xd/0x120 [fglrx] Apr 4 10:38:09 sphinx kernel: Pid: 5275, comm: X Tainted: P 2.6.31-gentoo-r6 #4 Apr 4 10:38:09 sphinx kernel: Call Trace: Apr 4 10:38:09 sphinx kernel: [811bc329] ? debug_smp_processor_id+0xd9/0xe0 Apr 4 10:38:09 sphinx kernel: [a022514d] ? KAS_GetExecutionLevel+0xd/0x120 [fglrx] Apr 4 10:38:09 sphinx kernel: [a02403e9] ? MCIL_GetExecutionLevel+0x39/0x80 [fglrx] Apr 4 10:38:09 sphinx kernel: [a02ecacb] ? CallbackQueueAccess+0x2b/0x2a0 [fglrx] Apr 4 10:38:09 sphinx kernel: [a02e49a0] ? UnRegisterIRQClient_Worker+0x0/0xe0 [fglrx] Apr 4 10:38:09 sphinx kernel: [a023ff42] ? MCIL_bMiniportCapEnabled+0x82/0xa0 [fglrx] Apr 4 10:38:09 sphinx kernel: [a02e4323] ? UnRegisterIRQClient+0x83/0xe0 [fglrx] Apr 4 10:38:09 sphinx kernel: [a02e163e] ? IRQMGR_IRQSourceSupported+0x7e/0xa0 [fglrx] Apr 4 10:38:09 sphinx kernel: [a02e1791] ? IRQMGR_Access+0x131/0x190 [fglrx] Apr 4 10:38:09 sphinx kernel: [a0256e83] ? fireglAsyncioUnregisterIntMsgHandlers+0x2c3/0x3c0 [fglrx] Apr 4 10:38:09 sphinx kernel: [a0283794] ? asyncIONotifyMsg+0x234/0x3e0 [fglrx] Apr 4 10:38:09 sphinx kernel: [a02560b9] ? firegl_asyncio_write+0x189/0x250 [fglrx] Apr 4 10:38:09 sphinx kernel: [a0229048] ? ip_firegl_write+0x58/0xa0 [fglrx] Apr 4 10:38:09 sphinx kernel: [810abecb] ? vfs_write+0xcb/0x180 Apr 4 10:38:09 sphinx kernel: [810ac083] ? sys_write+0x53/0xa0 Apr 4 10:38:09 sphinx kernel: [8100b4c2] ? system_call_fastpath+0x16/0x1b Apr 4 10:38:09 sphinx kernel: BUG: using smp_processor_id() in preemptible [] code: X/5275 Apr 4 10:38:09 sphinx kernel: caller is KCL_SPINLOCK_STATIC_Grab+0x25/0x110 [fglrx] Apr 4 10:38:09 sphinx kernel: Pid: 5275, comm: X Tainted: P 2.6.31-gentoo-r6 #4 Apr 4 10:38:09 sphinx kernel: Call Trace: Apr 4 10:38:09 sphinx kernel: [811bc329] ? debug_smp_processor_id+0xd9/0xe0
Re: [gentoo-user] How does grub assemble a RAID1 for / ??
On Sat, Apr 3, 2010 at 4:37 PM, Neil Bothwick n...@digimed.co.uk wrote: On Sat, 3 Apr 2010 16:07:06 -0700, Mark Knecht wrote: The install is complete but it won't boot. grub finds the kernel and starts booting but then I get the typical VFS file sync error as the kernel starts looking for the install on /dev/md3. What I'm not understanding is how does the boot process get the information required to assemble the RAID device. By hand in the non-RAID install I do this: keeper ~ # mdadm -A /dev/md3 /dev/sdb3 /dev/sdc3 mdadm: /dev/md3 has been started with 2 drives. keeper ~ # cat /proc/mdstat Personalities : [raid1] md3 : active raid1 sdb3[0] sdc3[1] 52436092 blocks super 1.1 [2/2] [UU] unused devices: none keeper ~ # but when I try to boot the RAID install it says it cannot find /dev/md3. You need to set the partition type for the RAIDed partitions to Linux raid autodetect. You'll probably then find that the kernel sets the RAID as /dev/md0, not md3. -- Neil Bothwick Tried changing root=/dev/md0. No change. The actual failure message is the fairly standard VFS - Unable to mount root fs on unknown-block(9,0) I can control this using (for instance) title /dev/sda1 Gentoo Linux 2.6.33-gentoo-RAID root (hd0,0) kernel (hd0,0)/boot/bzImage-2.6.33-gentoo-RAID root=/dev/md3 md=3,1,/dev/sdb3,/dev/sdc3 which changes the message to 'unknown-block(9,3)' Since the mknod command for md devices is always 9 1 or 9 3 those match up. Is this saying that the special file thing for 9,0 and 9,3 are missing at boot time? As I posted in the first post the partitions are marked as autodetect, but if it matters I did that late in the process after the RAID was built. keeper ~ # fdisk -l /dev/sdb /dev/sdc Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xa06ef201 Device Boot Start End Blocks Id System /dev/sdb1 1 14 112423+ 83 Linux /dev/sdb2 16 538 4200997+ 82 Linux swap / Solaris /dev/sdb3 544707152436160 fd Linux raid autodetect Disk /dev/sdc: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x2ab15637 Device Boot Start End Blocks Id System /dev/sdc1 1 14 112423+ 83 Linux /dev/sdc2 16 538 4200997+ 82 Linux swap / Solaris /dev/sdc3 544707152436160 fd Linux raid autodetect keeper ~ # Answering Albert - I did it with /dev/md3 because that's how the install guide did it: mknod /dev/md3 b 9 3 mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3 From fstab: /dev/md3 / ext3 noatime 0 1 From grub.conf: title Gentoo root (hd0,0) kernel /boot/kernel root=/dev/md3 Granted, my kernel line is a little different: root (hd0,0) kernel (hd0,0)/boot/bzImage-2.6.33-gentoo-RAID root=/dev/md3 but I didn't make it up. I just followed the guide. I set the same RAID kernel options as shown in the guide but maybe there is some other requirement not shown in the guide but actually required? The CONFIG_RAID_ATTRS is not discussed for instance:: keeper / # cat /usr/src/linux/.config | grep RAID CONFIG_RAID_ATTRS=m # CONFIG_BLK_DEV_3W__RAID is not set # CONFIG_SCSI_AACRAID is not set # CONFIG_MEGARAID_NEWGEN is not set # CONFIG_MEGARAID_LEGACY is not set # CONFIG_MEGARAID_SAS is not set # CONFIG_SCSI_PMCRAID is not set CONFIG_MD_RAID0=y CONFIG_MD_RAID1=y # CONFIG_MD_RAID10 is not set # CONFIG_MD_RAID456 is not set keeper / # Thanks! - Mark
[gentoo-user] Re: How does grub assemble a RAID1 for / ??
On 04/04/2010 02:01, Mark Knecht wrote: Tried changing root=/dev/md0. No change. The actual failure message is the fairly standard VFS - Unable to mount root fs on unknown-block(9,0) [snip] CONFIG_MD_RAID1=y That's all that needs to be enabled within the RAID section of the kernel. However, all the other options that would normally be required to boot must also be compiled in statically for things to work as expected (ATA/SCSI controller driver, filesystem of choice, CONFIG_BLK_DEV_SD and so forth). It seems that you may have overlooked something. However, it's impossible to determine whether that's the case based on the information presented thus far. I would suggest that you double-check your .config in full, or present it here for review, along with the output of lspci -nn. Cheers, --Kerin
[gentoo-user] Checking sanity of system...
Hi, this is no security issue in sense of attacks...it is related to the consistency of the system. Simple question (and may be complicate to answer... ;) ) How can I check, that my Gentoo system is uptodate, consistent and sane? Best regards, mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.