DeVO's thoughts

서마이의 생각들을 담는 곳입니다…

Browsing Posts published by devo

Finally I now have my hands on this phenomenon called “iPhone”.
Since I moved to the consulting group in the company, I had to give up my old number as well as the phone which gave me an opportunity to get a new phone and number. Of course I couldn’t pass the opportunity and bought the iPhone. I had to wait for 3 weeks. But I think it was worth it. I think I got everything setup except 2 things. One I have way too much crap contacts that was generated by the thunderbird + zindus. I wish there is a easier way to edit/delete these so far the cloest thing that found is ipcsuite but requires jailbreaking which I want to leave as the last thing that I want to do. The other thing is getting tethering working with Fedora 11. There are few articles that says it can be done over the Bluetooth however I am having issues with pairing iPhone with my laptop. My guess is something in F11′s bluez package in x86_64 is different from x86. An example is that there was no /etc/sysconfig/bluetooth. If that is the case my dilema is whether to keep the box in x86 and lose the capability to build x86_64 KVM/XEN guest machine but being able to connect Internet at customer’s site without another dongle to carry.

CORRECTION: After rebooting the machine.. TETHERING over Bluetooth WORKS!!!!!

I just finished an interesting trip to Brisbane.
Why interesting?

Right at the end, I was given a job opportunity, which also could be seen as a semi-termination notice.

I am confused…
I really want to be active and do what I do best and what I enjoy.
“Making changes, and being able to advise and help customers in technology”
Whatever people say about the offer, in one side of my mine, this is backstepping of my career.
Still better than a dead-end position right now.
I would have more exposure to things that I didn’t have here…

My brain is about to explode with all these thoughts….

It was december of year 2000, I joined RH as L1 support.

Since then a lot of things changed, I was in Engineering then back in to Support roles.
This week, I am back in Brisbane to help out with the support team.
They have 6 people out with various reason, so all the resources have been pulled together and I was pulled into help guys out.
So it is like a Dejavu all happening again.

I am bit tired because of the early flight that I took, but I am sorta feeling that I am back home…
I guess I have a lot of good memories and good friends here.

tainted:
Non-zero if the kernel has been tainted.  Numeric values, which
can be ORed together:

1 – A module with a non-GPL license has been loaded, this  includes modules with no license. Set by modutils >= 2.4.9 and module-init-tools.
2 – A module was force loaded by insmod -f. Set by modutils >= 2.4.9 and module-init-tools.
4 – Unsafe SMP processors: SMP with CPUs not designed for SMP.
8 – A module was forcibly unloaded from the system by rmmod -f.
16 – A hardware machine check error occurred on the system.
32 – A bad page was discovered on the system.
64 – The user has asked that the system be marked “tainted”.  This could be because they are running software that directly modifies the hardware, or for other reasons.
128 – The system has died.
256 – The ACPI DSDT has been overridden with one supplied by the user instead of using the one provided by the hardware.
512 – A kernel warning has occurred.
1024 – A module from drivers/staging was loaded.

I had few cases, where customer won't mention anything but send me a DVD of VMCore.
To debug, I would need the kernel version to find system.map and everything else.
The way to do is;

$ strings vmcore | grep "Linux version"

It is possible to add or remove a SCSI device explicitly, or to re-scan an entire SCSI bus without rebooting a running system. Please see the Online Storage Reconfiguration Guide for a complete overview of this topic on Red Hat Enterprise Linux 5.

For Red Hat Enterprise Linux 5

With fibre attached storage, it is possible to issue a LIP (loop initialization primitive) on the fabric:

echo “1″ > /sys/class/fc_host/host#/issue_lip

Issuing a LIP (above) on Red Hat Enterprise Linux 5 is all that is needed to rescan fibre

attached storage. Once the LIP is issued, the bus scan may take a few seconds to complete.

Although present on previous releases, this feature is only fully supported in Red Hat Enterprise Linux 5.

For Red Hat Enterprise Linux 4 and 5

With other SCSI attached storage, a rescan can be issued:

echo “- – -” > /sys/class/scsi_host/host#/scan

Replace the # with the number of the SCSI bus to be rescanned.

In addition to re-scanning the entire bus, a specific device can be added or deleted for some

versions or Red Hat Enterprise Linux as specified below.

For Red Hat Enterprise Linux 4 or 5

To remove a single existing device explicitly

# echo 1 > /sys/block//device/delete

For Red Hat Enterprise Linux 3, 4, or 5

To add a single device explicitly:

# echo “scsi add-single-device ” > /proc/scsi/scsi

To remove a device explicitly:

# echo “scsi remove-single-device ” > /proc/scsi/scsi

Where are the host, bus, target, and LUN numbers for the device,as reported in /sys (2.6 kernels only) or /proc/scsi/scsi or dmesg.

These numbers are sometimes refered to as “Host”, “Channel”, “Id”, and “Lun” in Linux tool output and documentation.

“packet receive errors” usually means:
1) data is truncated, error in checksum while copying
2) udp queue is full, so it needs to be dropped
3) unable to receive udp package from encapsulated socket
4) sock_queue_rcv_skb() failed with -ENOMEM
5) it is a short packet
6) no space for header in udp packet when validating packet
7) xfrm6_policy_check() fails

many times it means the checksum is not right.

Linked…

No comments

Now this page has been linked from my work website :)

I have been using F9 for awhile now, I am pretty happy with it so far.
Since the release of F9, I lost my laptop and had to install it again to a 3 years+ old laptop, X31.
But it is working great, I don’t have that much to complain about.

Yesterday, a colleague of mine asked a question about “UPSTART”.
There was an article on “Linux Format” with a small example.
Shamefully enough, I didn’t know that init has been replaced with the upstart.

For my own benefit, I have started to look up what it is, and how it is going to affect Fedora/RHEL future releases.

This is quite interesting because, it has been my jobs and interests to write SysV scripts for custom application to do “start/stop/status”. Also, I haven’t seen anything relating the upstart with “service” minds in RHEL and Fedora.

Because of that, how it is going to be integrated in F10 would be very interesting.

[LWN.Net] LPC: Upstart 1.0 plans: manifesto for a new init

Let’s make two things clear about Upstart, a proposed replacement for the Linux “init” process. First, it’s not there to speed up boot, and second, it’s not intended to parallelize startup. “Upstart is not for what most people think it is for,” said its author, Scott James Remnant, in a talk in the dbus miniconference at the Linux Plumbers Conference. What it is there for is to expand the capabilities of “init” on Linux, replace some scripts and workarounds with rules that are intended to be easier to understand and modify, and enable future improvements. Remnant is a Canonical employee, and Upstart is in Fedora as of version 9, making it a welcome example of a Canonical-sponsored project finding its way into other distributions.

While Greg Kroah-Hartman mentioned a list of core software on the Linux platform in his Plumbers Conference talk, “the one thing he never put in there was init,” Remnant said. The Linux init, originally by Miquel van Smoorenburg, has been unchanged for years, and is modeled on the System V Unix init, which is even older. Instead of updating it, Remnant says that, for too long, distributions have just worked around it. The startup process has traditionally consisted of shell scripts, started by init, but containing workarounds and extensions accumulated over the years. For example, Debian has a wrapper program called start-stop-daemon, that manages PID files, to keep track of what process ID a daemon process ends up with. Upstart handles that itself.

Current features of upstart include sending notifications for system events, for example, when a service starts; eliminating race conditions, by offering dependency tracking; and removing some service startups from the critical path for boot, again by handling dependencies. Upstart allows a distribution or sysadmin to spell out the critical path in a script, and also specify dependencies. Tracking dependencies allows distributions to eliminate “sleep” loops from the boot sequence, and instead take actions based on events.

Events are not limited to the runlevel changes familiar to sysvinit users, but can depend on other things on the system. But what other things? Future directions for Upstart could be ambitious. For 1.0, Remnant is considering adding the ability to do tasks based on cron-like criteria such as “hourly.” But should upstart really replace cron? Another possibly useful direction would be an “idle” event. The Common Unix Printing System (CUPS) is a service that makes sense to start “30 seconds before the user thinks of clicking on the print button,” he said. CUPS is not in the critical path for boot, but needs to be running to detect printers before the user needs them. Should it be possible to start non-critical services when the system becomes idle?

Even though fast boot isn’t the goal of upstart, Remnant is optimistic about being able to help. Some of the slow booting problems that Arjan van de Ven and Auke Kok identified at the conference are deep in the weeds of nested scripts, and might be smoked out by a simpler init layout. “To make boot fast we have to do a bunch of different stuff. it makes it easy for us to do the real work,” Remnant said.

[Fedora-devel-list] upstart plans for F10+

  • From: Bill Nottingham <notting redhat com>
  • To: fedora-devel-list redhat com
  • Subject: upstart plans for F10+
  • Date: Thu, 22 May 2008 16:04:45 -0400



Since I've been asked in various places what we're planning to
do with upstart now that Fedora 9 has shipped, I figured I'd
lay out the basic plan.

To do any large-scale conversion of SysV init scripts to upstart,
we need some features that are not in the current (0.3.9) version.
Hence, the first thing is to get upstart 0.5 ready for inclusion.
For example, we need support for the following:

- Depending on multiple events

  I.e., have something start only if two separate events have
  both completed successfully. For a disturbing example of how
  we work around this now, read /etc/event.d/serial.

- Ability to enable/disable events in a way other than removing
  the file

  (The reasoning for this should be fairly obvious)

- Ability to group events into sets, or profiles

  This allows us to handle the sort of behaviors that runlevels are
  used for sanely.

- Ability to easily have upstart events depend on SysV scripts, and
  vice-versa

  If one of a SysV scripts' dependencies is started by upstart, we
  need to be able to still handle that sanely.

This isn't meant to be an exhaustive list, but it is meant to
illustrate why we can't just move services right now.

Once we get upstart 0.5 in, we can then look at potentially moving
some subset of things that are now handled elsewhere to upstart.
Examples would be:

- Always-on services such as dbus, syslog, and audit
- Reworking things like netfs to be more sane, when
  it comes to networks coming and going, network block devices being
  attached and detached, and so on
- Potentially splitting some of rc.sysinit into multiple events.
  Not sure this buys us much, as right now the flow is *extremely*
  sequential (start_udev -> fsck -> remount r/w -> clean out /tmp)
- Coming up with a sane network notification strategy
  Right now, we have events kicked off on network changes:
  - via netreport
  - via NetworkManagerDispatcher
  - conceivably, via upstart (after all, spawning commands/etc based
    on events is its raison d'etre)
  Having a coherent strategy for apps to only need to worry about
  dropping things in one place would make sense.
- (possibly) having either upstart 'handle' sysv services more natively
  or wrap tools such as chkconfig, /sbin/service so they handle both
  SysV and upstart.

All clear as mud?

Bill

Since I work closely with telecommunication company, I have seen few companies who have asked the status of RHEL’s IPv6 support.
With RHEL5 U2, I believe, it will be certified under TAHI.
However, there is a small downfall…. WHAT COULD THIS BE????

Short Answer?
NO, it doesn’t work.
There are couple of points where it can be pointed to;
* Red Hat’s Bugzilla
* Kernel Patch submitted on 18th of June 2008