[gentoo-user] Re: OT: Is EVMS dead?
Eric S. Johansson [EMAIL PROTECTED] wrote: Neil Bothwick wrote: On Mon, 05 Nov 2007 18:01:28 -0500, Eric S. Johansson wrote: If you machine dies and your backups are inadequate, you may want to try and recover the disc by putting it into another system. How? If you didn't back up a bunch of magic information from the original system's /etc directory, you're well and truly screwed. Or you could run vgscan, provided everything is not auto-detected before you get the chance. if I remember correctly, and it has been quite a while, vgscan only works if your lvm.conf is intact. Merging one lvm.conf with one from another machine is tricky and is not always successful unless you are living with LVM and then it is only mostly successful. if you don't have your original lvm.conf, again if memory serves, you need to go rooting through the first fewsectors of your disk to find what looks like it might be perhaps, possibly the data you need. What the heck are you talking about? All that's needed to be done is a vgscan followed by a vgchange. That's it. in looking for examples for this kind of recovery process, I came across a rather nice page from our friends at Novell. friends? Novell, that's the enemy! Alexander Skwar -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] OT: Is EVMS dead?
On Tue, 06 Nov 2007 00:18:47 -0500, Eric S. Johansson wrote: if I remember correctly, and it has been quite a while, vgscan only works if your lvm.conf is intact. You remember incorrectly. lvm.conf is not needed to use LVM. It configures some aspects of LVM, such as filtering out devices to speed up scanning and setting snapshot policies, but it is not needed to access the data on the LVM volumes. The only time I have had a problem accessing the data from an LVM on a different machine is when both systems used the same volume group name, which is solved by renaming one of them. -- Neil Bothwick As a computer, I find your faith in technology amusing. signature.asc Description: PGP signature
Re: [gentoo-user] OT: Is EVMS dead?
Albert Hopkins schrieb: But again, the average person with a single disk running on a laptop computer probably has no use for LVM. Actually I'm very happy I've chosen LVM for my laptop because I didn't know that I would keep 20GB worth of videos on my home partition when I've made up the partitioning scheme. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] OT: Is EVMS dead?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil Bothwick wrote: On Tue, 06 Nov 2007 00:18:47 -0500, Eric S. Johansson wrote: if I remember correctly, and it has been quite a while, vgscan only works if your lvm.conf is intact. You remember incorrectly. lvm.conf is not needed to use LVM. It configures some aspects of LVM, such as filtering out devices to speed up scanning and setting snapshot policies, but it is not needed to access the data on the LVM volumes. The only time I have had a problem accessing the data from an LVM on a different machine is when both systems used the same volume group name, which is solved by renaming one of them. I had a laptop running LVM and then the BIOS told me to backup my data because my drive was going to die. I pulled the drive, popped it into a USB enclosure and brought it to my desktop to rsync it to an eSATA drive. All I had to do was vgscan and vgchange -a y and I was up and running. Actually, I too had a problem with my VG's named the same thing. It wasn't a problem to access different LV's but I changed the VG anyway. As a pointer for people, you might want to append the name of your box to your VG, that way it will be (probably) unique on your network. Also you'll know where you are if you need to do a backup like I had to. Eric -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHMFjqaiVxdKlBO58RAlXbAJwM7m2wmF9FoLfZFRHVqWScypKI8QCfSHfU YVgvyOkz37lavC8MKSjZtMY= =fBa1 -END PGP SIGNATURE- -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] tftp config problem (ltsp)
Hi Sean, sean [EMAIL PROTECTED] writes: I set up diskless booting recently but I'm by no means an expert, so take my comments with plenty of salt. Below is my in.tftpd file. # /etc/init.d/in.tftpd # Path to server files from # Depending on your application you may have to change this. # This is commented out to force you to look at the file! #INTFTPD_PATH=/var/tftp/ INTFTPD_PATH=/tftpboot/ What happens with INTFTPD_PATH=/tftpboot? (remove trailing / ) #INTFTPD_PATH=/tftproot/ # For more options, see in.tftpd(8) # -R 4096:32767 solves problems with ARC firmware, and obsoletes # the /proc/sys/net/ipv4/ip_local_port_range hack. # -s causes $INTFTPD_PATH to be the root of the TFTP tree. # -l is passed by the init script in addition to these options. #INTFTPD_OPTS=-R 4096:32767 -s ${INTFTPD_PATH} INTFTPD_OPTS= -s ${INTFTPD_PATH} The tftp file looks exactly like the one specified in the instructions. tardis tftpboot # ls lts pxe pxelinux.cfg Are you using syslinux? I'm not sure but shouldn't there be a pxelinux.0 file in /tftpboot? Cheers, Roger -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] tftp config problem (ltsp)
Roger Mason wrote: I set up diskless booting recently but I'm by no means an expert, so take my comments with plenty of salt. Sounds like you have had better success than me. INTFTPD_PATH=/tftpboot/ What happens with INTFTPD_PATH=/tftpboot? (remove trailing / ) Since removed. Made no difference. Are you using syslinux? I'm not sure but shouldn't there be a pxelinux.0 file in /tftpboot? I am using what ever was emerged using Gentoo's instructions. I have had a bit more success since last posting, but not full success. Depends on what I put in the dhcpd.conf file for the filename entry. If it specifies filename /pxe/pxelinux.0; it will start the boot but finally halts stating cannot find kernel image: linux. If it specifies filename /lts/vmlinuz-2.6.17.8-ltsp-1; then I get the NBP is to large for memory error. So far no luck getting past either point. Thanks Sean -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] tftp config problem (ltsp)
On Tue, 06 Nov 2007 10:06:30 -0500 sean [EMAIL PROTECTED] wrote: If it specifies filename /pxe/pxelinux.0; it will start the boot but finally halts stating cannot find kernel image: linux. If it specifies filename /lts/vmlinuz-2.6.17.8-ltsp-1; then I get the NBP is to large for memory error. Sean, You appear to be missing just a bit of the config. I _think_ this is all the relevant info from my dhcpd.conf: = === === dhcpd.conf === = #don't actually know what these are for... option oe-key code 159 =string; option oe-gateway code 160 = ip-address; # tftp server: next-server 192.168.10.1; option space PXE; option PXE.mtftp-ip code 1 = ip-address; option PXE.mtftp-cportcode 2 = unsigned integer 16; option PXE.mtftp-sportcode 3 = unsigned integer 16; option PXE.mtftp-tmoutcode 4 = unsigned integer 8; option PXE.mtftp-delaycode 5 = unsigned integer 8; option PXE.discovery-control code 6 = unsigned integer 8; option PXE.discovery-mcast-addr code 7 = ip-address; option option-150 code 150 = text ; zone spore.ath.cx. { primary 192.168.1.87; key rndc-key; } zone 1.168.192.in-addr.arpa. { primary 192.168.1.87; key rndc-key; } subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.101 192.168.1.199; option domain-name-servers 192.168.1.87, 192.168.1.1; option domain-name spore.ath.cx; ddns-domainname spore.ath.cx; option routers 192.168.1.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; one-lease-per-client on; update-static-leases on; # diskless client host davey{ hardware ethernet 00:01:03:20:AE:CF; fixed-address 192.168.1.1; option host-name davey; option routers none; DDNS-hostname davey; option PXE.mtftp-ip 192.168.1.87; filename pxelinux.0; } } = === === in.tftp configuration: === = # /etc/init.d/in.tftpd # Path to server files from INTFTPD_PATH=/var/tftp INTFTPD_USER=nobody # For more options, see tftpd(8) #INTFTPD_OPTS=-l -v -s ${INTFTPD_PATH} -a 192.168.10.1 INTFTPD_OPTS=-u ${INTFTPD_USER} -l -vv -p -c -s ${INTFTPD_PATH} -a 192.168.1.87 == == == relevant contents of /var/ftp == == /var/tftp/ /var/tftp/pxelinux.0 /var/tftp/pxelinux.cfg/ /var/tftp/pxelinux.cfg/01-00-01-03-20-ae-cf # you'll notice the config file is named for the mac # address, prepended by 01-, and with '-' instead of # ':', with all lower case. you could also use # 'default', if the same entry could be shared. /var/tftp/pxelinux.cfg/default /var/tftp/bzImage.davey = == == 01-00-01-03-20-ae-cf == = DEFAULT /bzImage.davey APPEND ip=dhcp root=/dev/nfs nfsroot=192.168.1.87:/diskless/davey = I think that should help out a lot. -- [EMAIL PROTECTED] mailing list
[gentoo-user] Elibc GNU userland...
Hi, Yesterday I made an emerge --sync and was afterwards treated to this (emerge -DupN): These are the packages that would be merged, in order: Calculating world dependencies... done! [ebuild R ] sys-libs/timezone-data-2007g ELIBC=(glibc%*) (-FreeBSD) [ebuild U ] media-libs/libmatroska-0.8.1 [0.8.0] [ebuild U ] sys-apps/pciutils-2.2.7-r1 [2.2.4-r3] [ebuild R ] sys-apps/sed-4.1.5 USERLAND=(-GNU%*) [ebuild R ] app-arch/tar-1.18-r2 USERLAND=(GNU%*) [ebuild NS ] sys-kernel/gentoo-sources-2.6.22-r9 USE=symlink -build [ebuild U ] sys-fs/device-mapper-1.02.22-r5 [1.02.19-r1] [ebuild U ] sys-fs/lvm2-2.02.28-r2 [2.02.10] [ebuild R ] sys-apps/help2man-1.36.4 ELIBC=(glibc%*) [ebuild N] x11-misc/read-edid-1.4.1-r1 [ebuild U ] sys-apps/lm_sensors-2.10.4 [2.10.1] [ebuild U ] app-editors/emacs-22.1-r2 [22.1-r1] [ebuild R ] app-portage/gentoolkit-0.2.3-r1 USERLAND=(GNU%*) [ebuild U ] net-misc/ntp-4.2.4_p4 [4.2.4_p3] [ebuild U ] sys-libs/glibc-2.6.1 [2.5-r4] [ebuild U ] net-print/cups-1.2.12-r2 [1.2.12-r1] [ebuild U ] app-text/ghostscript-gpl-8.60-r1 [8.60] Can someone in the know explain what this means? I googled and saw that GNU userland is related to Gentoo/BSD. My guess would be that the Elibc is also BSD related. I'm running a Gentoo/GNU/Linux-system... Why would sed be emerged with -GNU and tar plus others be (+)GNU? From google I could determine that it will put a g before each command depending what system you run (BSD/Linux/GNU) but what else (if anything) will it do? I could imagine that there are a few compile-time changes introduced with +/-GNU??? I would be grateful if anyone can clarify this for me (and probably others as well)... Best regards Peter K -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Elibc GNU userland...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pk wrote: Hi, Yesterday I made an emerge --sync and was afterwards treated to this (emerge -DupN): These are the packages that would be merged, in order: Calculating world dependencies... done! [ebuild R ] sys-libs/timezone-data-2007g ELIBC=(glibc%*) (-FreeBSD) [ebuild R ] sys-apps/sed-4.1.5 USERLAND=(-GNU%*) [ebuild R ] app-arch/tar-1.18-r2 USERLAND=(GNU%*) [ebuild R ] sys-apps/help2man-1.36.4 ELIBC=(glibc%*) [ebuild R ] app-portage/gentoolkit-0.2.3-r1 USERLAND=(GNU%*) It's related to this discussion: http://archives.gentoo.org/gentoo-portage-dev/msg_06774.xml In short, those ELIBC and USERLAND changes that you see won't really make any difference. It's purely cosmetic. Zac -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFHMM7x/ejvha5XGaMRAqlHAKDaJfZpJSSrB9vZ/06Jjo6ttAsT8wCg1S4h 6OjqR9TxW43gw2kgFwcXg5g= =G4E3 -END PGP SIGNATURE- -- [EMAIL PROTECTED] mailing list
[gentoo-user] boot from iscsi anyone ?
Greets, gentoo-users, I am currently researching the pros and cons of booting machines from iscsi-targets (provided by a central storage). I found examples using Debian etc., but none using Gentoo. Maybe I used the wrong search terms, maybe there is no good info yet. Does anyone of you successfully (and reliable in daily use) use (open-)iscsi for booting diskless servers? Is there any howto available (I will try to transplant my current test-setup, which boots a Debian-VM from a Gentoo-based iscsi-target, to boot a Gentoo-VM ..), are there any pros/cons you could share with me? I would really appreciate any help on this. Best regards, Stefan G. Weichinger -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Elibc GNU userland...
Bo Ørsted Andresen wrote: On Tuesday 06 November 2007 21:18:30 pk wrote: Can someone in the know explain what this means? I googled and saw that GNU userland is related to Gentoo/BSD. Not really. Gentoo/GNU/Linux uses a GNU userland. Gentoo/*BSD uses a BSD userland.. My guess would be that the Elibc is also BSD related. I'm running a Gentoo/GNU/Linux-system... Gentoo/GNU/Linux uses a glibc ELIBC. Gentoo/FBSD uses FreeBSD ELIBC. Other alternatives include uclibc.. Why would sed be emerged with -GNU and tar plus others be (+)GNU? (-GNU%*) means the conditional was removed from IUSE since the last time you installed the package. (GNU%*) means it was added to IUSE. IUSE records all conditionals that an ebuild can use. As you can read in the discussion zmedico refers to USERLAND, ELIBC, ARCH and KERNEL, however, gets treated specially, which means an ebuild can have conditionals on them without recording it in IUSE. Therefore the addition or removal of either of those variables may not change anything at all to the build which is why it's only a cosmetic change.. Ok, thank you very much for the explanation, both of you. I don't know enough of the portage build system to know what all of this means so I'll have to investigate further... Best regards Peter K -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Elibc GNU userland...
On Tuesday 06 November 2007 21:18:30 pk wrote: Can someone in the know explain what this means? I googled and saw that GNU userland is related to Gentoo/BSD. Not really. Gentoo/GNU/Linux uses a GNU userland. Gentoo/*BSD uses a BSD userland.. My guess would be that the Elibc is also BSD related. I'm running a Gentoo/GNU/Linux-system... Gentoo/GNU/Linux uses a glibc ELIBC. Gentoo/FBSD uses FreeBSD ELIBC. Other alternatives include uclibc.. Why would sed be emerged with -GNU and tar plus others be (+)GNU? (-GNU%*) means the conditional was removed from IUSE since the last time you installed the package. (GNU%*) means it was added to IUSE. IUSE records all conditionals that an ebuild can use. As you can read in the discussion zmedico refers to USERLAND, ELIBC, ARCH and KERNEL, however, gets treated specially, which means an ebuild can have conditionals on them without recording it in IUSE. Therefore the addition or removal of either of those variables may not change anything at all to the build which is why it's only a cosmetic change.. -- Bo Andresen signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] OT: Is EVMS dead?
Dirk Heinrichs wrote: heap. It's a classic example of second system syndrome as defined by the mythical Man month. Errh, what? rtfb it was published in 1972, is still in print and the first five chapters are as relevant today as they were when it was first published. It explains why software projects fail. I think it's pretty sad when failings in an industry recognized 35 years ago are still happening today. Brooks says write one system to throw away because you are going to anyway. The first time you implement, you don't understand the problem and you frequently leave out functionality or implement things in a clumsy or incorrect way. This next implementation you, in theory, understand the problem and can do a better job which leads us to... second system syndrome. when you implement a system for the second time you think you have the problem fully understood, add lots of features and capabilities and end up with a disaster on your hands because you over estimated your capabilities. which is really Fred Brooks's way of saying write two system to throw away because you're going to anyway. a great example of this is Microsoft. They rarely get anything right until the third version (implementation). Other examples are easily found if you just look. It's overly complicated, poorly documented, and has a terrible user interface that only a geek would even consider using. What's wrong with the excelent user guide on the project's site? Which of the three UIs exactly do you think is horrible? could never get the containers nesting right. If the instructions on how to use an LVM can't be explained on a postcard, you don't understand how to communicate with your users or the implementation is really off. I spent lots of time on the mailing list talking to developers about various problems and a consistent problem was communicating the terminology to users. Simple things like how do you set up your physical disk was not documented well enough to be useful. the GUI tools did not lead you to a correct solution. It was just a bunch of menu items that you could choose a random. Hell, tinyca does a better job at guiding you in creating a small certificates hierarchy which is a task of similar complexity. -- Speech-recognition in use. It makes mistakes, I correct some. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] OT: Is EVMS dead?
mirroring, it's still not worth it. Here's a simple example why not. If you machine dies and your backups are inadequate, you may want to try and recover the disc by putting it into another system. How? If you didn't back up a bunch of magic information from the original system's /etc directory, you're well and truly screwed. But even if you have the Actually this isn't strictly true. I've had issues where I've lost my arrays under normal booting (may be due to non-bd patched system or something, but basically I'd reboot and the kernel would grab one disk of my 2xRAID5 arrays acting-as-one-big-ass-disk setup and that would fail one RAID5, causing EVMS to tell me the array was b0rked... very nerve-wracking when you have 600G of non-backed up media). Anyway, I've rebooted with a gentoo live CD, ran evmsn from the command line, selected the evms partition and it's all up and going, without accessing anything on the host machine. -- Alan [EMAIL PROTECTED] - http://arcterex.net Beware of computer programmers that carry screwdrivers. -- Unknown -- [EMAIL PROTECTED] mailing list
[gentoo-user] OT - vsftpd won't let local users connect
My vsftpd server won't let users with accounts connect. This used to work, and the only thing I can think of after checking the docs is that pam got upgraded. Here is my info: baby pam.d # emerge --info Portage 2.1.3.16 (hardened/x86/2.6, gcc-4.1.1, glibc-2.6.1-r0, 2.6.19-hardened-r6 i686) = System uname: 2.6.19-hardened-r6 i686 AMD Duron(tm) Processor Timestamp of tree: Sun, 04 Nov 2007 12:00:01 + distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.1.2-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox:1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS=x86 CBUILD=i686-pc-linux-gnu CFLAGS=-O2 -march=i686 -pipe CHOST=i686-pc-linux-gnu CONFIG_PROTECT=/etc /var/bind CONFIG_PROTECT_MASK=/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d CXXFLAGS=-O2 -march=i686 -pipe DISTDIR=/usr/portage/distfiles FEATURES=distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch GENTOO_MIRRORS=http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo; LINGUAS=en fr es MAKEOPTS=-j9 PKGDIR=/usr/portage-packages/baby PORTAGE_RSYNC_EXTRA_OPTS=--human-readable PORTAGE_RSYNC_OPTS=--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-* PORTAGE_TMPDIR=/var/tmp PORTDIR=/usr/portage PORTDIR_OVERLAY=/usr/local/portage /usr/local/portage/bscharpf SYNC=rsync://rsync.gentoo.org/gentoo-portage USE=apache2 apm bash-completion berkdb bind-mysql cli cracklib crypt cups dhcp doc encode examples exim foomaticdb fortran gdbm geoip gif gpm gstreamer hal hardened imap imlib innodb ithreads java jpeg kerberos libclamav libg++ libwww midi mikmod mmx mode-owner mpm-leader mysql ncurses nls nptl nptlonly oav offensive pam pcre perl perlsuid pic png ppds python readline ruby samba search session slp spell ssl syslog tcpd tetex threads truetype unicode urandom usb virus-scan x86 xml xorg zaptel zlib ALSA_CARDS=ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci ALSA_PCM_PLUGINS=adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol ELIBC=glibc INPUT_DEVICES=mouse keyboard KERNEL=linux LCD_DEVICES=bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text LINGUAS=en fr es USERLAND=GNU VIDEO_CARDS=apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS baby pam.d # emerge -pv vsftpd These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] net-ftp/vsftpd-2.0.5-r3 USE=pam ssl tcpd -caps -logrotate (-selinux) -xinetd 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB baby pam.d # cat /etc/vsftpd/vsftpd.conf # # Example vsftpd config file # # See man 5 vsftpd.conf for more information. # # $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/files/vsftpd.conf,v 1.3 2004/07/18 03:56:09 dragonheart Exp $ # Allow anonymous FTP? anonymous_enable=YES # Uncomment this to allow local users to log in. local_enable=YES # Uncomment this to enable any form of FTP write command. write_enable=YES # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's) local_umask=022 # Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. #anon_upload_enable=YES # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable=YES # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES # If you want, you can arrange for uploaded anonymous
[gentoo-user] about the 2007.1
There are somebody said the gentoo 2007.1 will release in this man month it is wrong or right.Is there more detailed information。 Thinks