euglug.org

[작성자:] admin

  • [Eug-lug] Slackware processes at startup



    AlanWed Mar 22 15:54:18 PST 2006

    Matthew Jarvis wrote:
    > Trying to document one of the servers here...
    > 
    > Running Slackware it doesn't seem to have anything to tell me what it 
    > loads up when the machine is turned on.
    > 
    > To find out do I just have to work my way thru the rc1, rc2 etc chain?
    > 
    > Is there a command or tool that will just tell me?
    > 
    > I'm half tempted to just restart the thing and do a quicky 'ps' command 
    > to get a snapshot... hope it doesn't come to that though...
    > 
    > 
    
    Presuming that slackware uses a sysV type init, something like
    <http://sysv-rc-conf.sourceforge.net/> would give you a basic overview.
    
    -ajb
    
    
  • [Eug-lug] Slackware processes at startup]



    T. Joseph CARTERWed Mar 22 15:38:15 PST 2006

    On Wed, Mar 22, 2006 at 11:52:45AM -0800, Matthew Jarvis wrote:
    > Thanks for all the input on this guys....
    > 
    > I've been a bit swamped but hopefully very shortly I'll have time to 
    > poke around the guts of this thing and document what's going on...
    > 
    > Muchos Gracias!
    > 
    > Gonna see everyone at SAO tomorrow night?
    
    Hey, I might even show up.  I mean, if we can drag John to the thing..
    
    -- 
    "We are what we repeatedly do.  Excellence, therefore, is not an act,
    but a habit."
    	-- Aristotle
    
    
  • [Eug-lug] Results of traceroute command



    Bob MillerWed Mar 22 13:51:41 PST 2006

    Matthew Jarvis wrote:
    
    > Then a graph shows that there *does* seem to be a pattern to when
    > our latency problems occur, though it isn't always the case.
    
    Show us pictures! (-:
    
    > Now I'll cross reference that with what might be going on under the
    > hood around this place just in case we have some errant cron job or
    > something blasting a billion letter "z"'s to the world or
    > something....
    
    If there's a specific time of day when traffic peaks, take a snapshot
    with tcpdump every day.  Load the tcpdump file into ethereal and see
    what most of the traffic is.
    
    You can also run etherape on a saved tcpdump file -- that might
    be a useful visualization.
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] Results of traceroute command



    Matthew JarvisWed Mar 22 11:58:13 PST 2006

    Jason LaPier wrote:
    > 
    > 
    > 
    > /agree
    > 
    > At the risk of being too obvious, my question would be - when it's slow, do
    > you run around to different machines on the LAN to verify that they're all
    > slow and it's not just your workstation?
    > 
    > 
    > 
    > Jason LaPier
    > Network Manager
    > TACS / WRRC
    > University of Oregon
    > 
    
    Okay....
    
    I've written a script that logs traceroute output to a file and runs 
    every 5 minutes...
    
    Analyzing the data trying to find a pattern is like drinking from a fire 
    hose, so I wrote a program to condense the data then I converted it into 
    a spreadsheet...
    
    Then a graph shows that there *does* seem to be a pattern to when our 
    latency problems occur, though it isn't always the case.
    
    Now I'll cross reference that with what might be going on under the hood 
    around this place just in case we have some errant cron job or something 
    blasting a billion letter "z"'s to the world or something....
    
    Progress....
    
    
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
  • [Eug-lug] Slackware processes at startup]



    Matthew JarvisWed Mar 22 11:52:45 PST 2006

    Thanks for all the input on this guys....
    
    I've been a bit swamped but hopefully very shortly I'll have time to 
    poke around the guts of this thing and document what's going on...
    
    Muchos Gracias!
    
    Gonna see everyone at SAO tomorrow night?
    
    Matt
    
    
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
    
    Matthew Jarvis wrote:
    > This was a post Neil sent me directly and asked me to post it to the list.
    > 
    > mj
    > 
    > -------- Original Message --------
    > Subject: Re: [Eug-lug] Slackware processes at startup
    > Date: Mon, 20 Mar 2006 22:46:59 -0800 (PST)
    > From: nparker at LLX.COM (Neil Parker)
    > To: mattj at bikefriday.com
    > 
    > Matthew Jarvis wrote,
    > 
    >> Running Slackware it doesn't seem to have anything to tell me what it 
    >> loads up when the machine is turned on.
    >>
    >> To find out do I just have to work my way thru the rc1, rc2 etc chain?
    >>
    >> Is there a command or tool that will just tell me?
    >>
    >> I'm half tempted to just restart the thing and do a quicky 'ps' 
    >> command to get a snapshot... hope it doesn't come to that though...
    > 
    > 
    > The Real Story about startup on Slackware:
    > 
    > Slackware uses a hybrid startup script system--it has a SysV-style
    > init, but the scripts are more classic-BSD style.
    > 
    > This means that at startup, it reads /etc/inittab to figure out what to do,
    > just like KBob described in his mail.
    > 
    > But the scripts under /etc/rc.d are much simpler that what KBob described.
    > There is no startup script management system like what other distros have,
    > and therefore no shell command to tell you what subsystems start up at
    > what levels.  If you want to find out exactly what runs, you don't have
    > much choice except to read through the files in /etc/rc.d.
    > 
    > A perusal of Slackware's /etc/inittab will reveal that everything
    > depends on six scripts under /etc/rc.d:
    > 
    >      rc.S:  This runs once at every boot.  It starts up basic services
    >          that always need to run (like hotplug).  This is also where the
    >          filesystems get fsck'ed if necessary, and the swap partition gets
    >          activated, and filesystems get mounted.
    > 
    >      rc.K:  This puts the system in single-user mode.  It only runs if
    >          you boot into runlevel 1.
    > 
    >      rc.M:  This puts the system in multi-user mode.  It runs on most boots
    >          (unless you asked for runlevel 1) after rc.S.  This is more or 
    > less
    >          the master boot script--it's responsible for running most of the
    >          other scripts in /etc/rc.d.
    > 
    >      rc.0:  This runs at shutdown time if you asked for a halt.
    >      rc.4:  This starts up the X window system.
    >      rc.6:  This runs at shutdown time if you asked for a reboot.
    > 
    > The other scripts in /etc/rc.d are all intended to start various
    > subsystems, and most of them (except some of the network-dependent ones)
    > are run out of rc.M.  They only run if their execute permissions are
    > turned on, so you can deactivate any rc.* script by taking away its
    > execute permissions.
    > 
    > The most important of the additional rc.d scripts are rc.inet1 and
    > rc.inet2.  These start up networking...rc.inet1 configures your
    > interface(s), and rc.inet2 starts your network daemons (rc.inet2
    > is responsible for running the network-related rc.* scripts that aren't
    > run by rc.M).
    > 
    > One of the scripts started by rc.M is rc.sysvinit.  This provides basic
    > support for SysV-style startup scripts, if you need to install a package
    > that absolutely requires SysV-style startup scripts.  No standard
    > Slackware packages use this feature.
    > 
    > Finally, that last thing run by rc.M is rc.local.  This is where you're
    > supposed to add your own customized startup commands.
    > 
    > 
    > So for a reasonably comlete picture of what gets run on startup, look at
    > the following files, in this order:
    > 
    >      /etc/inittab
    >      /etc/rc.d/rc.S
    >      /etc/rc.d/rc.M
    >      /etc/rc.d/rc.inet2
    >      /etc/rc.d/rc.4 (if your system is configured to boot into X)
    > 
    > Also take note of which rc.* scripts are executable, since that controls
    > what services actually get started...if it's executable, it probably gets
    > run by rc.M or rc.inet2.
    > 
    > 
    > The advantage of Slackware's simplified startup script system is speed.
    > Your Slackware box will probably be up and ready to accept commands before
    > your Redhat box is even halfway through that long list of [OK]'s.  The
    > disadvantage of Slackware's startup scripts is the lack of fine-grained
    > control...it's easy to configure a Redhat box so that (for example)
    > sendmail only starts at runlevels 2 and 5, but it's more difficult to do
    > the same thing in Slackware.
    > 
    > Personally, I find I've never missed the fine-grained control that I give
    > up by using Slackware startup scripts.
    > 
    >              - Neil Parker
    > 
    
  • [Eug-lug] SAO Tech Brew Pub Thursday 5:30



    Matthew JarvisWed Mar 22 09:31:31 PST 2006

    Tech Brew Pub
    Thursday, March 23 5:30 - 7:30pm
    Rogue Tap House, Downstairs Room, 844 Olive Street
    Cost: None
    Speaker: John Sechrest
    
    Catalyzing Oregon Research Commercialization (CORC): An Oregon 
    Researcher's guide to New Ventures
    
    What does it take to turn research ideas into businesses?
    How can a community address this question?
    
    John Sechrest will describe the process of building a community business 
    facilitation group and the results of the EDP (Electronic Development 
    Partnership) - SWOT (Strengths, Weaknesses, Opportunities, Threats) 
    process that is going on in Corvallis.
    
    
    
    -- 
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
  • [Eug-lug] RAID



    Mr OWed Mar 22 09:23:04 PST 2006

    >From what I was reading about dmraid I assume you have to have
    the RAID set via the onboard controller first. I only spent a
    small amount of time on trying to configure an array the other
    day. I haven't tried it via the boot CD yet. Won't have a chance
    again until next week. Hopefully someone else will have some
    experience to share with a WinRAID setup. 
    
    
    --- Rob Hudson <rob at euglug.net> wrote:
    
    > Yes, 2006.0
    > 
    > I booted with: gentoo-nofb nox dodmraid
    > 
    > Do you have to prep the drives in some way first via the RAID
    > controller?
    > 
    > -Rob
    > 
    
    
    __________________________________________________
    Do You Yahoo!?
    Tired of spam?  Yahoo! Mail has the best spam protection around 
    http://mail.yahoo.com 
    
  • [Eug-lug] Slackware processes at startup]



    Matthew JarvisWed Mar 22 08:46:50 PST 2006

    This was a post Neil sent me directly and asked me to post it to the list.
    
    mj
    
    -------- Original Message --------
    Subject: Re: [Eug-lug] Slackware processes at startup
    Date: Mon, 20 Mar 2006 22:46:59 -0800 (PST)
    From: nparker at LLX.COM (Neil Parker)
    To: mattj at bikefriday.com
    
    Matthew Jarvis wrote,
    >Running Slackware it doesn't seem to have anything to tell me what it 
    >loads up when the machine is turned on.
    >
    >To find out do I just have to work my way thru the rc1, rc2 etc chain?
    >
    >Is there a command or tool that will just tell me?
    >
    >I'm half tempted to just restart the thing and do a quicky 'ps' command 
    >to get a snapshot... hope it doesn't come to that though...
    
    The Real Story about startup on Slackware:
    
    Slackware uses a hybrid startup script system--it has a SysV-style
    init, but the scripts are more classic-BSD style.
    
    This means that at startup, it reads /etc/inittab to figure out what to do,
    just like KBob described in his mail.
    
    But the scripts under /etc/rc.d are much simpler that what KBob described.
    There is no startup script management system like what other distros have,
    and therefore no shell command to tell you what subsystems start up at
    what levels.  If you want to find out exactly what runs, you don't have
    much choice except to read through the files in /etc/rc.d.
    
    A perusal of Slackware's /etc/inittab will reveal that everything
    depends on six scripts under /etc/rc.d:
    
          rc.S:  This runs once at every boot.  It starts up basic services
              that always need to run (like hotplug).  This is also where the
              filesystems get fsck'ed if necessary, and the swap partition gets
              activated, and filesystems get mounted.
    
          rc.K:  This puts the system in single-user mode.  It only runs if
              you boot into runlevel 1.
    
          rc.M:  This puts the system in multi-user mode.  It runs on most boots
              (unless you asked for runlevel 1) after rc.S.  This is more or 
    less
              the master boot script--it's responsible for running most of the
              other scripts in /etc/rc.d.
    
          rc.0:  This runs at shutdown time if you asked for a halt.
          rc.4:  This starts up the X window system.
          rc.6:  This runs at shutdown time if you asked for a reboot.
    
    The other scripts in /etc/rc.d are all intended to start various
    subsystems, and most of them (except some of the network-dependent ones)
    are run out of rc.M.  They only run if their execute permissions are
    turned on, so you can deactivate any rc.* script by taking away its
    execute permissions.
    
    The most important of the additional rc.d scripts are rc.inet1 and
    rc.inet2.  These start up networking...rc.inet1 configures your
    interface(s), and rc.inet2 starts your network daemons (rc.inet2
    is responsible for running the network-related rc.* scripts that aren't
    run by rc.M).
    
    One of the scripts started by rc.M is rc.sysvinit.  This provides basic
    support for SysV-style startup scripts, if you need to install a package
    that absolutely requires SysV-style startup scripts.  No standard
    Slackware packages use this feature.
    
    Finally, that last thing run by rc.M is rc.local.  This is where you're
    supposed to add your own customized startup commands.
    
    
    So for a reasonably comlete picture of what gets run on startup, look at
    the following files, in this order:
    
          /etc/inittab
          /etc/rc.d/rc.S
          /etc/rc.d/rc.M
          /etc/rc.d/rc.inet2
          /etc/rc.d/rc.4 (if your system is configured to boot into X)
    
    Also take note of which rc.* scripts are executable, since that controls
    what services actually get started...if it's executable, it probably gets
    run by rc.M or rc.inet2.
    
    
    The advantage of Slackware's simplified startup script system is speed.
    Your Slackware box will probably be up and ready to accept commands before
    your Redhat box is even halfway through that long list of [OK]'s.  The
    disadvantage of Slackware's startup scripts is the lack of fine-grained
    control...it's easy to configure a Redhat box so that (for example)
    sendmail only starts at runlevels 2 and 5, but it's more difficult to do
    the same thing in Slackware.
    
    Personally, I find I've never missed the fine-grained control that I give
    up by using Slackware startup scripts.
    
                  - Neil Parker
    
    -- 
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
  • [Eug-lug] RAID



    Rob HudsonWed Mar 22 08:30:22 PST 2006

    Yes, 2006.0
    
    I booted with: gentoo-nofb nox dodmraid
    
    Do you have to prep the drives in some way first via the RAID controller?
    
    -Rob
    
    Mr O wrote:
    > Are you using 2006.0? Have you seen the instructions for
    > DM-RAID? The drives should be found as individual units as well
    > if you're using an onboard RAID controller. If you don't have
    > /dev/sd* then poke through "dmesg" for /dev/hd*.
    
    
  • [Eug-lug] RAID



    Mr OWed Mar 22 08:26:37 PST 2006

    Are you using 2006.0? Have you seen the instructions for
    DM-RAID? The drives should be found as individual units as well
    if you're using an onboard RAID controller. If you don't have
    /dev/sd* then poke through "dmesg" for /dev/hd*.
    
    
    
    --- Rob Hudson <rob at euglug.net> wrote:
    
    > I'm helping a friend install Gentoo on a new Dell PowerEdge
    > 2850.  It's 
    > got an on-board RAID card and he was wanting RAID-1.  I get
    > Gentoo to 
    > boot from the LiveCD, step through the install docs until I
    > get to the 
    > partitioning stage.  At this point I'm in unfamiliar territory
    > since 
    > I've never worked with RAID before.  I can see the kernel
    > module is 
    > loaded and in use as megaraid_mm.  But from what I can see,
    > [c]fdisk 
    > isn't seeing any raid arrays.  I don't have any /dev/sd*.  I
    > do have 
    > /dev/rd/0 through 15 but cfdisk says it's 8MB.  I also see 
    > /dev/mapper/control but nothing else in /dev/mapper.
    > 
    > Where do I go from here?
    > 
    > Assuming I can partition from fdisk, should I put the whole
    > thing in 
    > RAID-1?  I've seen places that say do swap on each drive, not
    > mirrored. 
    >   I'm not sure how you'd do that either.
    > 
    > Any guidance is appreciated.
    > 
    > Thanks,
    > Rob
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    
    
    __________________________________________________
    Do You Yahoo!?
    Tired of spam?  Yahoo! Mail has the best spam protection around 
    http://mail.yahoo.com