Re: [gentoo-user] btrfs and sparse VM image files

2014-05-20 Thread Stefan G. Weichinger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am 19.05.2014 13:01, schrieb Neil Bothwick:
 On Mon, 19 May 2014 12:07:32 +0200, Marc Stürmer wrote:
 
 Just take a look at the official Gotchas Page of BTRFS, which can
 be found here:
 
 https://btrfs.wiki.kernel.org/index.php/Gotchas
 
 Putting virtual image files on Btrfs is something that the
 developers still do not recommend at all, and that's with
 reason!
 
 The page you linked to does not actually state that. There are
 plenty of hints and sideways references but little concrete
 information about what is safe with the current release - hence my
 question.

I have a nice testbox here now ... a server for a customer which I
won't deliver soon so I will have that one here for some weeks.

I will play around with qemu/kvm-vms in various configs ... and see
what happens.

Stefan

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTewhlAAoJEClcuD1V0PzmQFUP/AzzW5ilQpK+RvWsikTWvyX7
LxGQQ9dTnCYNzXzLsf9drPDMAgQiIppJ/T3INRrsqCfCgpiIdOIx5YEMCW4at61m
BbeXtUR6RazAcgI+2hOqbnkZFCVyOwG3Od2+C87y1NWc4+EId2ryNpo+eOlqC7Zr
xlyqs2gE7HclVC29NQx2ntw19y9JMJD/Ac0I7oL5lKZt45bywBHzlcXplmuSDhba
xuJuNT6ei+ip3A2+bYrGvfQ5/Yd0TiGUtbpjkAWPR1WXGdszqhvpG73aGlpj9aff
gU6phiZc0vLjtGuM5peDSbNoT5OGpQJdhUTU+DbEpCdq1yh19h03Xa8YUibSFUT/
IZaB4UyjIr8Y/6SKF1krcLIrCi+1vvgRw2D2JscgLw/5uQ5sPX3LUay4gFxtWafq
IHLbFvvjtrra847nGnNOKf9iUbbSv96lUXmvqJx+2sxr2ESsHqHpTFwAYWtRKz41
2A2cufUC6Zx7G/mNsE1teajovCP48EewlF3UKFo0Tqc68iuLMdQ4RJ4wVX5J12sk
Ma0K/Y28/qezTO9GrJYzo4UoFxzE5md9foV0xqS34PMNtiw8aYNK3pC83AOE9KBu
+daOIH6EY7HWx/C8S7jzeQZu8pWKOGf2rIT65Xt1Ij1w7vBXgD/4B5DeUkacAnz4
P/2sbXDzqrZr8PO32AOW
=+l8k
-END PGP SIGNATURE-



[gentoo-user] systemd how can I get a service to start after network is up

2014-05-20 Thread covici
Hi.  I have a simple, static, ethernet network.  However when booting
using systemd, a number of services which should start only after the
network is up, insist on starting in parallell and so fail for various
reasons.  Here is my network service and my ntpdate service file, and I
would like to know how to get the ntpdate service file to wait till the
network is up before trying to start.

Thanks in advance for any suggestions.

Network service file:
[Unit]
Description=Network Connectivity for %i
Documentation= nam ip
Before=network.target
wants=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/conf.d/network@%i
ExecStart=/bin/ip link set dev %i up
ExecStart=/bin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev %i
ExecStart=-/bin/bash -c test -n ${gateway}  /bin/ip route add default via 
${gateway}
ExecStart=-/bin/bash -c test -f /etc/conf.d/postup@%i.sh/bin/bash  -c 
/etc/conf.d/postup@%i.sh
ExecStop=/bin/ip addr flush dev %i
ExecStop=/bin/ip link set dev %i down
[Install]
WantedBy=multi-user.target

and here is my ntpdate service file:

[Unit]
Description=Set time via NTP using ntpdate
After=network.target nss-lookup.target
Before=time-sync.target
Wants=time-sync.target

[Service]
Type=oneshot
EnvironmentFile=/etc/conf.d/ntp-client
ExecStart=/usr/sbin/ntpdate $NTPCLIENT_OPTS
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



[gentoo-user] Use Flags and Updating

2014-05-20 Thread Hunter Jozwiak
Hi all. How do I get Portage to update all software to use my new USE flags?
I made some modifications to the variable, and I want to make sure that all
packages can use the flags.



Re: [gentoo-user] Use Flags and Updating

2014-05-20 Thread Alexander Kapshuk
On 05/20/2014 02:37 PM, Hunter Jozwiak wrote:

 Hi all. How do I get Portage to update all software to use my new USE
 flags? I made some modifications to the variable, and I want to make
 sure that all packages can use the flags.

emerge(1)
-N -- --newuse



RE: [gentoo-user] Use Flags and Updating

2014-05-20 Thread Hunter Jozwiak
 

 

From: Alexander Kapshuk [mailto:alexander.kaps...@gmail.com] 
Sent: Tuesday, May 20, 2014 7:44 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Use Flags and Updating

 

On 05/20/2014 02:37 PM, Hunter Jozwiak wrote:

Hi all. How do I get Portage to update all software to use my new USE flags?
I made some modifications to the variable, and I want to make sure that all
packages can use the flags.

emerge(1)
-N -- --newuse

Thank you.



Re: [gentoo-user] Use Flags and Updating

2014-05-20 Thread Alexander Kapshuk
On 05/20/2014 02:40 PM, Hunter Jozwiak wrote:

  

  

 *From:*Alexander Kapshuk [mailto:alexander.kaps...@gmail.com]
 *Sent:* Tuesday, May 20, 2014 7:44 AM
 *To:* gentoo-user@lists.gentoo.org
 *Subject:* Re: [gentoo-user] Use Flags and Updating

  

 On 05/20/2014 02:37 PM, Hunter Jozwiak wrote:

 Hi all. How do I get Portage to update all software to use my new
 USE flags? I made some modifications to the variable, and I want
 to make sure that all packages can use the flags.

 emerge(1)
 -N -- --newuse

 Thank you.

No worries.

Here's what I usually run when updating the world.
Long version: emerge --ask --update --deep --with-bdeps=y --newuse @world
With '--with-bdeps=y' set in the file shown below:
grep bdeps /etc/portage/make.conf
EMERGE_DEFAULT_OPTS=--with-bdeps=y

Short version: emerge -avuND @world
-a [--ask]
-v [--verbose]
-u [--update]
-N [--newuse]
-D [--deep]




Re: [gentoo-user] Use Flags and Updating

2014-05-20 Thread Stephan Müller
Am 20.05.2014 13:37, schrieb Hunter Jozwiak:
 Hi all. How do I get Portage to update all software to use my new USE
 flags? I made some modifications to the variable, and I want to make
 sure that all packages can use the flags.
 


Hi,

you can use the --newuse option of emerge, like this:

# emerge --newuse world

you should also take a look at --changed-use. This ignores irrelevant
changes since installation.

 ~frukto



Re: [gentoo-user] systemd how can I get a service to start after network is up

2014-05-20 Thread Michael Hampicke
Am 20.05.2014 12:29, schrieb cov...@ccs.covici.com:
 Hi.  I have a simple, static, ethernet network.  However when booting
 using systemd, a number of services which should start only after the
 network is up, insist on starting in parallell and so fail for various
 reasons.  Here is my network service and my ntpdate service file, and I
 would like to know how to get the ntpdate service file to wait till the
 network is up before trying to start.
 
 Thanks in advance for any suggestions.
 
 Network service file:
 [Unit]
 Description=Network Connectivity for %i
 Documentation= nam ip
 Before=network.target
 wants=network.target
 BindsTo=sys-subsystem-net-devices-%i.device
 After=sys-subsystem-net-devices-%i.device
 [Service]
 Type=oneshot
 RemainAfterExit=yes
 EnvironmentFile=/etc/conf.d/network@%i
 ExecStart=/bin/ip link set dev %i up
 ExecStart=/bin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev %i
 ExecStart=-/bin/bash -c test -n ${gateway}  /bin/ip route add default via 
 ${gateway}
 ExecStart=-/bin/bash -c test -f /etc/conf.d/postup@%i.sh/bin/bash  -c 
 /etc/conf.d/postup@%i.sh
 ExecStop=/bin/ip addr flush dev %i
 ExecStop=/bin/ip link set dev %i down
 [Install]
 WantedBy=multi-user.target
 
 and here is my ntpdate service file:
 
 [Unit]
 Description=Set time via NTP using ntpdate
 After=network.target nss-lookup.target
 Before=time-sync.target
 Wants=time-sync.target
 
 [Service]
 Type=oneshot
 EnvironmentFile=/etc/conf.d/ntp-client
 ExecStart=/usr/sbin/ntpdate $NTPCLIENT_OPTS
 RemainAfterExit=yes
 
 [Install]
 WantedBy=multi-user.target
 

Hi there,

setting After=network.target should just work (tm). I have a few
custom service files which need a working network connection, and using
this setting words for me.

systemd-analyze plot  boot.svg also shows the these services only start
after the network is up.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Use Flags and Updating

2014-05-20 Thread Matti Nykyri
On May 20, 2014, at 14:49, Alexander Kapshuk alexander.kaps...@gmail.com 
wrote:

 On 05/20/2014 02:40 PM, Hunter Jozwiak wrote:
  
  
 From: Alexander Kapshuk [mailto:alexander.kaps...@gmail.com] 
 Sent: Tuesday, May 20, 2014 7:44 AM
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Use Flags and Updating
  
 On 05/20/2014 02:37 PM, Hunter Jozwiak wrote:
 Hi all. How do I get Portage to update all software to use my new USE flags? 
 I made some modifications to the variable, and I want to make sure that all 
 packages can use the flags.
 emerge(1)
 -N -- --newuse
 
 Thank you.
 
 No worries.
 
 Here's what I usually run when updating the world.
 Long version: emerge --ask --update --deep --with-bdeps=y --newuse @world
 With '--with-bdeps=y' set in the file shown below:
 grep bdeps /etc/portage/make.conf
 EMERGE_DEFAULT_OPTS=--with-bdeps=y
 
 Short version: emerge -avuND @world
 -a [--ask]
 -v [--verbose]
 -u [--update]
 -N [--newuse]
 -D [--deep]

And how to remember this... Make it a name:

emerge -DuvaN @world

Human mind is a complex organ ;)

-- 
-Matti

Re: [gentoo-user] grub2 boots only older kernel

2014-05-20 Thread thegeezer

On 2014-05-20 02:28, wirel...@tampabay.rr.com wrote:

On 05/19/14 19:00, wraeth wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 20/05/14 05:26, James wrote:

Hello,


Greetings :-)


I even copied of the .config file from 3.13.6 to 3.14.4, answered the
questions and issued:


By answered the questions can I assume this to mean `make 
oldconfig`?



make  make modules_install cp arch/x86_64/boot/bzImage
/boot/kernel-3.14.4-gentoo cp System.map 
/boot/System.map-3.14.4-gentoo cp
.config /boot/config-3.14.4-gentoo grub2-mkconfig -o 
/boot/grub/grub.cfg


stupid question i know but - was /boot mounted before doing the copies ?
you mention you have six other kernels on there -- could it be an out of 
disk / inode issue so it looks like it's copied but hasn't ?




This looks fine.

GRUB_DEFAULT=kernel-3.14.4-gentoo GRUB_HIDDEN_TIMEOUT=3 
GRUB_TIMEOUT=10

GRUB_GFXMODE=1024x768 GRUB_DISABLE_RECOVERY=true


This also looks fine

I need ideas as where to look, what to fix  to get a newer kernel 
booting
from grub2.  Not any changes since 3.13 series was first used: 
(3.13.1)

Note this problem started with kernel 3.13.7-gentoo and has persisted
through 3.14.4.  I have even diff the .config files [1]


For anyone to give you a useful answer, we would need more detailed
information about your specific issue - for example:

- - how far through the boot process does the broken kernel get?
- - Are there any error messages or stack traces?
- - Is there any display at all?
- - What is the kernel cmdline used to boot the kernel?
- - Do you use an initramfs?


It never tries to boot. Grub just sits there  withe phrase (did not
copy it down) where it says what version it will boot on the screen


please do copy the phrase to this list, I would be interested to know


and it does nothing (locked up?) I have to cntlaltdel or push


from the grub2 menu can you choose your old kernels and boot them?
is it sitting waiting for you to press enter but perhaps there is a 
wierd usb-legacy thing in the bios preventing the keyboard working ?


does it appear to acknowledge the pressing of enter by not making you 
wait for the timeout and then just goes to a blank screen ? a flashing 
cursor ?



a manual reset. It never tries to load the kernel. Does not matter if
I try a 3.13.7 or 3.14.x, I've rebuilt them quite a few times and did
all the grub2 steps, but none of the newer kernels will boot.



what about
# cat /etc/portage/make.conf
# gcc-config -l
# uname -a
# ls -lah /usr/src/linux/arch/x86_64/boot/bzImage

I was thinking maybe that you have made another change somewhere that is 
making the compilation of a new kernel skewiff... i.e. it's your 
compiler (build environment) not your grub that might be at fault




Nothing was done to the bios. The only change was to get rid of ATI
Frame buffer support as suggested upon a recent update:

* Checking for suitable kernel configuration options...
*   CONFIG_FB_RADEON:should not be set. But it is.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.



again stupid question but have you tried compiling with this option back 
in ?
i.e. could it be somehow silently booting but not updating the screen 
(clutching at straws i know)






James







Re: [gentoo-user] Use Flags and Updating

2014-05-20 Thread yac
On Tue, 20 May 2014 14:49:17 +0300
Alexander Kapshuk alexander.kaps...@gmail.com wrote:

 Here's what I usually run when updating the world.
 Long version: emerge --ask --update --deep --with-bdeps=y --newuse
 @world With '--with-bdeps=y' set in the file shown below:
 grep bdeps /etc/portage/make.conf
 EMERGE_DEFAULT_OPTS=--with-bdeps=y
 
 Short version: emerge -avuND @world
 -a [--ask]
 -v [--verbose]
 -u [--update]
 -N [--newuse]
 -D [--deep]
 
 

It's also good to use -t --unordered-display to see what pulls what and
resolve potential issues.

Then --keep-going so the whole thing doesn't fail just because one
package fails.

Then -k to use already built binary packages where applicable
(Actually, I'm not sure why this sometimes gets activated but I see it
from time to time)

Why do you run the the --width-bdeps=y ?

---
Jan Matějka| Developer
https://gentoo.org | Gentoo Linux
GPG: A33E F5BC A9F6 DAFD 2021  6FB6 3EBF D45B EEB6 CA8B


signature.asc
Description: PGP signature