[SLUG] alsa, jackd, recording radio, Amarok

2007-10-17 Thread Sonia Hamilton
I'm trying to record from a radio plugged in to the line-in jack on my
pc, whilst listening to music files playing on Amarok. To do this, I've
started playing with jackd, but whenever I start it up with 'jackd -d
alsa' I get errors: the playback device hw:0 is already in use.
Please stop the application using it and run JACK again. And if I start
up jackd, Amarok won't start - obviously both wanting to exclusive
control over alsa.

Can I use jackd at the same time as something like Amarok?

Is jackd the right way to do something like this?

(BTW, I can hear and toggle on/off sound input from both pcm (ie Amarok)
and line using alsactl. My sound devices are:

% cat /proc/asound/devices
  2:: timer
  3:: sequencer
  4: [ 0- 4]: digital audio playback
  5: [ 0- 3]: digital audio capture
  6: [ 0- 2]: digital audio capture
  7: [ 0- 1]: digital audio capture
  8: [ 0- 0]: digital audio playback
  9: [ 0- 0]: digital audio capture
 10: [ 0]   : control
-- 
Sonia Hamilton

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] raid1 mdadm or lvm mirror's

2007-10-17 Thread Alex Samad
Hi

I am in the process of rebuilding my server and I am planning my disk usage.  I 
have 2 drives.  Traditionally  I would do 

4 partitions to make up 4 md's


md0 /boot ( ~ 500M - I like have space here) sda1 + sdb1
md1 / (~10G) sda2 + sdb2
md2 swap sda3 + sdb3
md3 LVM PV sda4 + sdb4

from the PV I make a VG and then lots of LV's

I have used this sort of set for a while, but what I would like to do is not 
make md3 and instead use sda4 + sdb4 as 2 PV and then I get the chance to 
decide which pv is made up of mirrored space and which is not.

I have some data that I don't really care if it dies/get lost.  I can't do that 
on a lv by lv basis with my original setup.

I haven't had much experience with lvm mirrors, should I stick with my original 
setup or go with the new ?

Alex


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] alsa, jackd, recording radio, Amarok

2007-10-17 Thread Steve Lindsay
On 10/17/07, Sonia Hamilton [EMAIL PROTECTED] wrote:

 Can I use jackd at the same time as something like Amarok?


Don't know about amarok but.

- Aqualung (http://aqualung.sourceforge.net/) claims jack support,
never used it so I can't vouch for it's quality compared to Amarok (I
don't use amarok either :)
- Gstreamer can hook into Jack now, so I've had Banshee playing
through Jack (a bit of fiddling around though).

So it's possible to get a media player to output to Jack (which is
mostly used by the pro type apps, DAW's, midi sequencers etc.).
Assuming your card supports simultaneous capture/playback then you
should be able to record the radio at the same time as playing music
through your media player.

If you are using jack, I'd recommend using qjackctl to
start/stop/configure, it lets you hook apps up to each other and to
playback/capture devices using the mouse (so for example you'd connect
aqualung to the playback device, and jack time machine to the capture
device to record the radio).

CheersSteve
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] raid1 mdadm or lvm mirror's

2007-10-17 Thread Matthew Hannigan
On Wed, Oct 17, 2007 at 07:47:35PM +1000, Alex Samad wrote:
 [ ...]
 I have some data that I don't really care if it dies/get lost.  I can't do 
 that 
 on a lv by lv basis with my original setup.
 
 I haven't had much experience with lvm mirrors, should I stick with my 
 original 
 setup or go with the new ?

I think if I was to mirror on my home machine now, I would do
lv mirroring for the reason you mention; you just don't need
everything mirrored.  

In fact I don't mirror at all at the moment; I just rsync the more
valuable stuff.

Matt

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] raid1 mdadm or lvm mirror's

2007-10-17 Thread Alex Samad
On Wed, Oct 17, 2007 at 10:32:02PM +1000, Matthew Hannigan wrote:
 On Wed, Oct 17, 2007 at 07:47:35PM +1000, Alex Samad wrote:
  [ ...]
  I have some data that I don't really care if it dies/get lost.  I can't do 
  that 
  on a lv by lv basis with my original setup.
  
  I haven't had much experience with lvm mirrors, should I stick with my 
  original 
  setup or go with the new ?
 
 I think if I was to mirror on my home machine now, I would do
 lv mirroring for the reason you mention; you just don't need
 everything mirrored.  
but how stable is lvm mirror any one using this in production

 
 In fact I don't mirror at all at the moment; I just rsync the more
 valuable stuff.
oh I sing as well, both on site and offsite (hate trying to find stuff or 
recreate it and 500Gb drives for $120...)
 
 Matt
 
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
 


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] raid1 mdadm or lvm mirror's

2007-10-17 Thread Matthew Hannigan
On Thu, Oct 18, 2007 at 07:08:25AM +1000, Alex Samad wrote:
 but how stable is lvm mirror any one using this in production

I dunno.  I'm taking the fact that it's standard in
major distros as an indication that it's pretty mature
and reliable.

I could be wrong!

Matt

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] raid1 mdadm or lvm mirror's

2007-10-17 Thread Peter Chubb
 Matthew == Matthew Hannigan [EMAIL PROTECTED] writes:

Matthew On Thu, Oct 18, 2007 at 07:08:25AM +1000, Alex Samad wrote:
 but how stable is lvm mirror any one using this in production

Matthew I dunno.  I'm taking the fact that it's standard in major
Matthew distros as an indication that it's pretty mature and
Matthew reliable.

We've been doing a few performance measurements (as part of our
research).  LVM underperforms compared with the same
mirroring/striping arrangement set up with md.  We're still trying to
work out why... (and fix it, of course).  The data is still *very*
preliminary, and may change as we do more experiments.

Peter C
--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html