Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r7 x86_64) ================================================================= System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5, 2.4.2 dev-python/pycrypto: [Not Present] dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.11, 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="YES" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache cvs distlocks noclean notitles sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.inode.at" LINGUAS="en de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X Xaw3d a52 aac aalib accessibility acl acpi aim alsa apache2 apm arts audiofile avi bcmath berkdb bindist bitmap-fonts bluetooth bzip2 calendar caps cdinstall cdparanoia cdr clamav cli crypt cscope ctype cups curl curlwrappers dio directfb doc dri dts dv dvb dvd dvdr dvdread eds emboss emul-linux-x86 encode esd ethereal exif expat fam fastcgi fbcon ffmpeg flac flash foomaticdb fortran freetds ftp gd ggi gif glut gmp gnustep gphoto2 gpm gstreamer gtk gtk2 howl icq idea idn imagemagick imap imlib ipv6 irc isdnlog jabber jpeg jpeg2k kde kdeenablefinal kerberos krb4 lcms ldap libcaca libwww lzw lzw-tiff mad mailwrapper mime ming mmap mng mnogosearch motif mozilla mp3 mpeg msn mysql ncurses nls nsplugin ogg oggvorbis openal opengl osc oscar oss pam pcre pdf pdflib perl php png ppds pppd python qt quicktime readline reflection samba sasl sdl session simplexml sndfile soap sockets sox speex spell spl ssl svg szip tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev usb v4l vcd videos vorbis wmf wxwindows xine xinerama xml xml2 xmms xorg xosd xpm xv xvid yahoo zlib linguas_en linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
I have the Following Problem with sed, if I do: cat /proc/mdstat | grep -E [a-z]d[a-z][0-9] | sed -e 's/\[[0-9]\]//g' | awk '{print $1, $5, $6}' I get the following: md1 hda3[ hdc3[ md0 hda2[ hdc2[ md2 hda1[ hdc1[ I expected to get: md1 hda3 hdc3 md0 hda2 hdc2 md2 hda1 hdc1 as on Debian, where sed is verison 1.4.5 I guess...
Works fine here... $ cat /proc/mdstat | grep -E [a-z]d[a-z][0-9] | sed -e 's/\[[0-9]\]//g' | awk '{print $1, $5, $6}' md1 sdb1 sda1 md5 sdb5 sda5 md6 sda6 sdb6 md9 sdf1 sde1 md3 sda3 sdb3 $ emerge -pv sed [ebuild R ] sys-apps/sed-4.1.4-r1 USE="-bootstrap -build nls -static" 0 kB
[ebuild R ] sys-apps/sed-4.1.4-r1 -bootstrap -build +nls -static 0 kB the same on the two Systems I have here... strange.
post your /proc/mdstat file you're having trouble with as an attachment
Created attachment 87324 [details] mdstat as requested here's the mdstat, there is nothing unusal about it i guess...
works fine for me ... $ grep -E '[a-z]d[a-z][0-9]' mdstat md1 : active raid1 hda3[0] hdc3[1] md0 : active raid1 hda2[0] hdc2[1] md2 : active raid1 hda1[0] hdc1[1] $ grep -E '[a-z]d[a-z][0-9]' mdstat | sed -e 's/\[[0-9]\]//g' md1 : active raid1 hda3 hdc3 md0 : active raid1 hda2 hdc2 md2 : active raid1 hda1 hdc1 $ grep -E '[a-z]d[a-z][0-9]' mdstat | sed -e 's/\[[0-9]\]//g' | awk '{print $1, $5, $6}' md1 hda3 hdc3 md0 hda2 hdc2 md2 hda1 hdc1
Well, OK then, it is strange but it doesn't work on these systems. However I did it in Perl...
*what* doesnt work post the same thing i posted as run on your system
No response from user.