Search Results: "tb"

23 July 2007

MJ Ray: End of the rubbish news

Both local papers are reporting that the council's investigations found nothing wrong but there's still nothing on North Somerset Council's web site. WWN: Reports that recyclable waste is being dumped in landfill sites have been rubbished by the council. The Weston Mercury - News: Recycling gets clean bill of health

Russell Coker: Exit Strategies for Iraq

Here’s an interesting piece in the Washington Post about what might happen when the US withdraws from Iraq. I regret not blogging before the war started. It would have been good if I could have pointed to a blog post predicting the same thing before the invasion took place. I’ve always thought that the two possibilities for Iraq were for the country to be partitioned (which would be likely to weaken Turkey and strengthen Iran and thus be avoided by the US if possible) or run by an absolute despot.

22 July 2007

Russell Coker: Modules and NFS for Xen

I’m just in the process of converting a multi-user system to a Xen DomU. It was running on a stand-alone Fedora Core 5 i386 system and I want to run it on a Fedora 7 DomU under a CentOS 5 Dom0 on an Opteron system. The first stage of the conversion was to copy an image of the Fedora Core 5 system and make it a DomU under CentOS. I had some problems getting a Fedora Core 5 Xen kernel to boot so I installed a 64bit CentOS 5 kernel with the Fedora Core 5 user-space and surprisingly everything worked. I had expected to have problems with kernel modules, but everything just worked! I had expected that the 32bit modutils would be unable to load 64bit modules, but things just worked. The first stage was to have the old server NFS export /home and have it mounted by the Xen DomU, this worked well for about a week. The next step was to move the data on to the new server. My first attempt was to have the Dom0 running the filesystems and NFS exporting them to the DomU but this caused an OpenOffice error “Error saving the document Name: General Error. General input/output error.“. So having 32bit Fedora Core 5 with a 64bit Cent OS 5 kernel NFS mounting from a 32bit Fedora Core 5 system works well, while mounting from a 64bit Cent OS 5 system fails. If anything I would have expected better results from having the same version of the kernel on NFS client and server. The next issue is whether a 64bit Fedora 7 system in a DomU can NFS mount the data from the Cent OS 5 kernel with Fedora Core 5 user-space. If not it’ll make testing the Fedora 7 upgrade significantly more painful than it might otherwise be. If only we had a network filesystem for Unix that supported POSIX semantics.

Russell Coker: Troll Zapping

Don Marti writes about the idea of setting a Troll-bit on forum posts such that every reply would also be flagged. I’ve been thinking about how to solve such issues for mailing lists. I think that the way to do this is to create a new list for every contentious topic and automatically subscribe everyone who posted to the thread after the messages that were flagged as being too far off-topic. After that time anyone who tries to post to the main list with a matching subject or a header indicating that the message is a reply to an off-topic message would have their message redirected to the new list - and they would be automatically subscribed. This would keep the off-topic messages away from the main list and also serve as a minor dis-incentive for people to post to threads that start going off-topic as most people won’t want to be subscribed to the new list for off-topic messages. However such messages would still be archived (in a different section) so if the moderator mis-classified a thread it could still be reviewed by other people. Also when moderating such threads it would be interesting to experiment with consensus moderation of posts. If N subscribers of the list who post regularly use a web form to indicate that a certain post was too far off-topic and should spawn a new list then that could happen. I agree with Joey Hess’ rant about forums, so solving a problem for forums is not of interest to me, but hacking on a list server is something that I would do if I had enough spare time.

21 July 2007

Russell Coker: Column Width in Blogs

I have just been reading the LinuxWorld Community blog which seems to be mostly Don Marti’s personal blog (currently there seems to be no-one else blogging on that site). One thing that disappointed me is that the theme designer made it look good at a width of 1000 pixels and no other size. At a smaller width the adverts on the right are cut off (more of a problem for the site owner than for the readers) and at a larger width you have a thin column of text in the middle of the screen. A quick test revealed that while my own blog looks good in wide windows it doesn’t work too well in 800 pixel width and gets very bad at lower widths - my blog would be essentially unusable at 640×480 resolution as the text column in the middle (the most important column) is the one that reduces in size. The LinuxWorld blog has a minimum size of 1000 pixels for the scaling so it allows horizontal scrolling in 640 pixel width and remains quite readable. The top entry in a google search for web size stats is Browser News which claims that 12% of web browsers are on 800 pixel wide screens. The next link I found claims that as of January 2007 there are 26% of web users with screens that have higher than 1024×768 resolution and 14% with 800×600. Apart from the first couple of months of blogging my blog has always looked good in screens greater than 1000 pixels wide, but not having it work at 800×600 is a problem. The first thing I did was alter the style.css file for the Blueline theme for Wordpress to use 100% of the display width (not 86%). Wasting 14% of the screen width is not a good thing when using a width-intensive three-column theme. This change made my blog work well in 800 pixel width and be bearable in 640 pixel width. The other change was to use min-width: 700px; in the style.css sections blogtitle, container, and navigation. This means that at 640 pixel width the text column will take more than 1/3 of the screen and should be quite readable (unless the reader has an unusually large font setting). The down-side to this is that if your window width is less than 700 pixels then you will have some horizontal scrolling, but I think that this is an acceptable trade-off. I was forced to confront this issue when talking to a prospective client about the potential for blogs to be used in his business, he loaded up my blog on an ancient windows machine and it didn’t look very good at all, this coincidentally happened a few hours after I had been reading the LinuxWorld blog on a big screen.

Russell Coker: Ron Paul

A politician named Ron Paul is running for the Republican party nomination for president. Tech Crunch has an article about his Web 2.0 based campaign which also includes a link to a google interview with him. Here’s the good things about him:
  • He wants to refrain from “helping” other countries with their “defense” - such help from the US has caused most of the wars and terrorism around the world since WW2.
  • He wants to reduce military spending to 1/3 current levels (he could reduce it to 1/10 current levels and still be able to prevent a combined attack by Russia and China).
  • He wants to restore liberty.
  • He seems to be in support of repealing most drug laws - but his statements weren’t clear.
  • Here’s the bad:
  • He thinks that hospitals should be run by churches and have no government funded medical system.
  • He doesn’t want restrictions on pharmacists who refuse to sell certain drugs (IE the contraceptive pill) - but with no restrictions on who can be a pharmacist such things could be bought without prescription even…
  • Here’s the ugly: Still, he’s a lot better than any other Republican who seems to be in the running.

    20 July 2007

    Russell Coker: unaligned access on IA64

    I recently had some problems with unaligned access on IA64, messages about unaligned access were being logged via printk and I couldn’t determine the cause - or even how to track it down. To test what an unaligned access means (which wasn’t documented anywhere that a quick google search could find) I wrote the test program in the second half of this post. Below is the output of the test program which accesses an integer at various offsets. As you can see it’s addresses that are congruent to 5, 6, and 7 mod 8 that cause the errors. At the int is 4 bytes long it seems that the cause of an unaligned access error is an access to a data type that crosses an 8 byte boundary. So a pointer or long long would have to be aligned to an 8 byte boundary, an int has to be at an address that is congruent to 4 or less mod 8, and a character can be anywhere. Also if the sysctl /proc/sys/kernel/ignore-unaligned-usertrap is set to 1 then these messages will be disabled. But you really don’t want to do that, such errors apparently cause a significant performance loss so you want to file bug reports against programs that do this. # ./a.out
    index: 0
    index: 1
    a.out(10393): unaligned access to 0×607fffffff34ee25, ip=0×4000000000000961
    index: 2
    a.out(10393): unaligned access to 0×607fffffff34ee26, ip=0×4000000000000961
    index: 3
    a.out(10393): unaligned access to 0×607fffffff34ee27, ip=0×4000000000000961
    index: 4
    index: 5
    index: 6
    index: 7
    index: 8
    index: 9
    a.out(10393): unaligned access to 0×607fffffff34ee2d, ip=0×4000000000000961
    index: 10
    a.out(10393): unaligned access to 0×607fffffff34ee2e, ip=0×4000000000000961
    index: 11
    a.out(10393): unaligned access to 0×607fffffff34ee2f, ip=0×4000000000000961
    index: 12
    index: 13 Below is the test program I used:
    (more…)

    Russell Coker: HP Sponsors Computer Recycling

    Hewlet-Packard is sponsoring the recycling of old computers in Victoria, Australia in a program named Byteback - note that they accept all brands of computer and charge nothing to accept the e-waste. This is a really good thing, I’ll start saving up my old computer parts to deliver to them! Is there a directory of computer recycling plants that accept old hardware for no charge? If you know of one in your area then please blog about it and send a track-back to my post.

    MJ Ray: Sat.1 starts Tour coverage. ZDF promises to drop football.

    For part of Stage 11, I watched the new Tour live coverage on Sat.1 who bought the German rights. When Sat.1 is busy, Pro7 will cover it. The two stations are owned by the same company, along with Kabel1, N24 and 9Live. The coverage was OK - the same French pictures as everyone else, but fewer extra features than ARD/ZDF. Commentary was a bit pedestrian, but that's like ZDF. I like Eurosport's commentary much more. International Herald Tribune reports that Eurosport's ratings tripled for stage 10 which is unsurprising. Eurosport and Sat.1 both seem to be on the same ~30% of German DVB-T as well as DVB-S. In comments on my last post about this, Thomas asked:
    "You don't read German papers, do you?"
    No. I've not even tried to buy one since moving to this village.
    "I do, and I'm neither outraged nor surprised. It is a fairly logical step in light of the debate and the public reception of the tour, cycling pros, and Team T-Mobile in particular."
    Is it public reception? Around 50% of those polled by ZDF disagreed with the decision (according to the IHT link above). Given all the ZDF spin on this, that's shockingly low. Is this driven by the silly debate of Bundestag members, rather than public opinion? (I've still not forgiven them for booting Eurosport off of ZDFvision. CDU seem to like messing ARD/ZDF about.) Are German papers in a feeding frenzy? In some days, they'll move onto football or boxing or something else. Get this in context: it's not like the old scandals where we had pro teams or wives being caught with car boots full of drug kits.
    "I'd also bet that T-Mobile will quit as a sponsor."
    It didn't seem like that from TV interviews, but I guess they wouldn't say yet. I think if they were going to jump ship, they would have done it after last year's worse problems. AIUI, their contract expires 2010 anyway and I wonder whether all the good publicity from their tour outing in England will help them stay until then.
    "Some things belong in pharmacology textbooks and not on TV screens."
    Does this mean drugs or incomplete drug tests? ;-)
    "If I paid German TV fees, I'd be outraged that this comes that late. But then, I know better and don't have a TV in the first place."
    Oh, well! Then I guess nothing would convince you to watch the tour! Philipp Kern commented:
    "they did not threaten for a year actually. After the big doping scandal some months ago they explicitly announced that they will drop the Tour de France if a new doping case pops up. Granted, the person in question did dope before the Tour."
    We don't know that yet - only one sample has been tested so far and even then, this test is controversial and has been successfully appealed against before. It's only a case. Also, maybe it wasn't the TdF, but here's a comment about ARD in 2006 threatening to drop cycling (scroll to 25.10.).
    "The argumentation is that the Tour should not be a contest of the best doping substances like it could have been the last years. But I am probably biased because I don't watch the Tour, or sports in general."
    No more biased than ARD/ZDF's producers, it seems. In an interview on itv4, a ZDF producer said they would drop any sporting event with a doping problem like cycling. So, if ZDF have dropped cycling for 1 in 189 participants being accused of doping, then if any footballer is accused of drugs offences, they cannot show any matches involving them. If you want to take football off ZDF, you know what to do... Thijs Kinkhorst reports in "Too much testosterone" that NOS also continues coverage, like our itv. Good on them. Let's applaud any drug cheats getting caught and punished, after we're reasonably sure.

    19 July 2007

    Russell Coker: Bizarre No space left on device error from Xen

    What should have been a routine “remove DIMMs and run memtest until things work” procedure to solve a memory error became a lot more complex due to poor error handling in Xen. The following error occured because the tdb database /var/lib/xenstored/tdb was corrupt. To fix it you must rm the file and kill the xenstored process (which will otherwise recreate the file with the same corrupt data). It took me a few hours to work this out. # xm create -c smtp
    Using config file “/etc/xen/smtp”.
    Error: (28, ‘No space left on device, while writing /local/domain/0/backend/vbd/
    18/768/online : 1′) Strangely the command “/etc/init.d/xend restart” does not restart xenstore or xenconsole (which is why running “/etc/init.d/xend stop” before rm’ing the file didn’t do any good). After fixing the above problem I encountered the following error condition. It seems that there is no support for restarting daemons such as xenstored. So I had to reboot the machine. After that it worked. # xm create -c smtp
    Using config file “/etc/xen/smtp”.
    Error: Device 0 (vif) could not be connected. Hotplug scripts not working. I’ve filed Debian bug 433780 about this.

    Russell Coker: The ABC and the Supposed Liberal Bias

    A common meme is that the media is biased towards the political left. This meme was deliberately created to encourage well-meaning journalists to be more generous in their reporting of Neo-Cons in a misguided attempt at being fair and also as a mechanism for refuting criticism of any media reports that criticise Neo-Cons. The ABC has been criticised for being biased towards the left as part of this attack on fair media and have recently demonstrated that they are in fact biased towards the Neo-Con ideas by airing a pseudo-documentary about climate change The Great Global Warming Swindle. The fake documentary has been refuted by many scientists, here is one by George Monbiot published in The Age. I wonder whether this blog post will get Google adverts related to Nostradamus and UFOs - I’m sure that the google search engine has worked out that cranks are interested in that fake-doco.

    Pierre Habouzit: jpg/gif/pdf Spam, what can you do ?

    In answer to zobel's post, here is how to fight efficiently against those nasty spams. Well, there is a wonderful tool, called clamav that you know already for sure. What is less known is that there are people that have had the idea to use clamav to fight spams as well. They provide constantly renewed spam signatures that fight against the jpgs/gifs/... that are too many those days. I use this script twice a day to update my signatures, and it works well. I use this setup on a medium sized mail server with excellent results, here are the numbers for the last 30 days. The mail server had:
     2.357.038 connections attempts
     1.841.425 mails have been greylisted[1]
     ---
       510.193 mails have been rejected
       238.869 of those thanks to clamav (~50%) 
     ---
       502.580 mails have been accepted for delivery
     1.564.130 mails have been delivered to users
    As you can see, on 4 mails that are considered for delivery (after the greylisting), 1 is rejected thanks to clamav. That's 25% of the incoming mails that get simply dropped, and that has almost 0 false positives[2]. Another note about greylisting: a quick reader could think that 1.8M - (2.3M - 0.5M - 0.5M) ~= 0.5M of mails are greylisted for nothing. That's not the case at all, the 2.3M are connection attempts. And we have some SMTPs that we talk to a lot (as it's the mail server of the Alumni of my school, we talk to the school MX a lot e.g.) and some of the connections carry up to dozens of mail on a regular basis. Our estimation is that in a regular day, greylisted mails that are submitted again are around the thousands, meaning some dozens of thousands a month, which is ridiculously small. And among them, sadly, most are still spams. These good ratios exists because we use conditional greylisting: we greylist IPs that look suspcicious only. But I already talked about that, and it's not really the matter of this post.
    Notes [1] using conditional greylisting: only greylist mails that come from IPs that are listed on RBLs [2] some companies using gif's in their employees signatures can trigger false positives, but it's fairly uncommon

    18 July 2007

    MJ Ray: One little drugs story and ARD/ZDF drops coverage of the Tour

    As if being hospitalised after crashing into a spectator wasn't enough, Patrick Sinkewitz has been told he's tested non-negative for testosterone. I think that is the same test that Floyd Landis failed, which I'm still unsure about. In an outrageous move, ARD/ZDF (visible at 19 and 13 east) have stopped live tour coverage "until clarification of the Patrik Sinkewitz case" whatever that means. Will they resume if it the second test is positive too? I doubt it. If I remember correctly, ARD/ZDF have been threatening to drop the Tour de France for at least a year and maybe more. Finally, they get an excuse to replace proper tour coverage with more cheap, bland daytime TV like Z-list interviews, soaps and cookery shows - or continuous criticism of the Tour de France, like they had today. In the Expatica report, ZDF chief producer Nikolaus Brender said:
    "We can't screen an event involving some teams and riders under suspicion of doping."
    (That's strange. Of course they can. They have before and I bet they'll still show motorsport, football, horse-racing, golf, wrestling, and so on if they get them. They just don't want to show cycling.)
    "We want to show by this gesture that we're ready to support cycling only if it's clean, that's to say without banned doping sustances."
    (That's actually quite a high standard: over 180 participants, none of them cheating. That's a lot harder than 20 drivers or 30 footballers all being clean - even then, they don't always manage it and I don't see ARD/ZDF dropping those sports every time one player is accused of doping. Never mind all the smaller cheating attempts which are easier in many other sports than cycling.)
    "It's a warning to cycling and to every other sport,"
    It's a warning that ARD/ZDF's TV producers are short-sighted and don't care about the viewers. At least Eurosport Germany continues with live coverage every day! Let's keep watching and see how the chips fall for Sinkewitz. Are ARD/ZDF fee-payers raising hell about this absurd decision? I hope so.

    Russell Coker: Religion and Cars

    The Catholic Church has recently issued a set of 10 road commandments. Number 9 is “On the road, protect the more vulnerable party” which ties in with an article by Barney Zwartz published in the religious column of The Age about the spiritual issues related to 4WD cars. Barney makes better points than the Catholic Church starting with “How can Christians living in suburban Melbourne justify getting around in huge four-wheel drives? It’s harder to imagine a more “me-first, up yours” statement to the rest of the world*“. He also links to a report by the Australian Academy of science showing that 4WDs are less safe for their owners (which fits the theory of some Christians that bad actions tend to get punished in this world as well as the next).

    Martin Zobel-Helas: Mails blocked on lists.debian.org containing non-text elements

    due to the constant high volume of incoming spam containing attachments
    which are not easy parseable for our filters, the listmasters decided
    now to block the following types of attachments: Content-Type: image/(gif jpeg)
    Content-Type: application/pdf This is only a temporary solution, until we have better methods to
    filter out spam mails containing these types of attachments. If you know better solutions, let us know!

    Martin F. Krafft: They don't want my business

    I have been trying all day to get price quotes for a couple of flights within the next twelve months. I have not managed. Here is why, sorted by company, and for all companies that make sense for the routes:
    Swiss When you click on the calendar fields to choose the departure date, a window pops up:
    Shortly you see if there are flights available on your preferred date.
    "Shortly" has lasted for as long as 3 hours, which is when I decided to try again, and ultimately to try someone else.
    Emirates On submission of their form, I am being told:
    Sorry, we were temporarily unable to process your request due to a technical problem. Please wait a moment and try again.
    I've waited countless moments, and now, 11 hours since my first try, their idea of a moment still isn't over. But what kind of technical problem is this anyway, which resolves itself on retry after waiting a moment?
    Austrian Airlines
    Our website is currently undergoing maintenance. Please come back later.
    All day.
    Air New Zealand Once I hit "search flights", I get a blank page: a proper HTTP response followed by 0 bytes of HTML.
    British Airways Whenever I hit submit, I am told that the return date has to be after the outbound date. I am then taken back to the form, which preserved all fields, except for resetting both dates to the same day, a week from now.
    Malaysia Airlines
    An error has occurred processing your request. Please contact our technical staff.
    without a link or any hint as to how to contact them. I just tried them all again, without any changes; 11 hours later. Apparently they don't want my business. I really wonder what the future of air travel will be. In many ways, I hope they stop dumping prices and concentrate again on customer satisfaction. But I guess that applies to pretty much everything these days. PS: I especially appreciate Easyjet's policy of separating friends: after buying one ticket on a given route in August and finding out that we need a second one, I am told that "the route you have selected will be available from 28 October 2007". The funny thing is that we already have a ticket for that route in August. They just don't want my friend to fly along... NP: Gazpacho: Firebird Update: Sam Morris alerted me to Kayak, a very impressive meta-search engine for flights. Sure beats visiting each site in turn (although that could get you better deals through specials), and also replaces STA Travel and Opodo for me. Update: Enrico Zini points me to skyscanner, which complements Kayak in that it searches only the low-cost airlines. Kayak does include EasyJet, but they aren't always the cheapest.

    Bastian Venthur: Improved filtering for rng

    I’ve just uploaded a new version of reportbug-ng including an Italian and a Hebrew pony and a cool enhancement to the buglist filter: Now the filter doesn’t try to match the whole string anymore but splits the input by whitespaces and tries to match all words. Now you can even exclude words by prepending a leading minus to it. The Syntax for the filter is: [-]keyword [[-]keyword2] ... Multiple keywords are separated by whitespaces and can have a leading minus. A leading minus means “exclude” the whitespaces represent the logical AND. Some Examples: Please note the the filter does look into the actual bugreports (the fulltext), it currently tries to match against the packagename, the bugnumber, the summary, the status and the severity. The best thing about this new filter? It’s not even slower than the old one, the only delay you’ll notice is when filtering packages with a huge amount of bugs (like wnpp) and even there the filter just needs a fraction of a second. The delay of a few secons comes acutally from the QTable when I remove all the rows not matching the filter. QTable.hideRow(int) and -showRow(int) seem to be very expensive even when I temporary disable all graphic updates for this widget during this operation. If someone knows a trick to circumvent this, please tell me (you may get a pony…). This feature isn’t spectacular, but it should make filtering big buglists a lot easier.

    Russell Coker: IEA predicts global oil crisis

    The ABC reports that an oil shortage is predicted soon. The International Energy Agency predicts that oil supply problems will start within the next five years. Oil production has been dropping over the last two years (we have passed the “peak oil” point) and demand is steadily increasing. Regardless of wars oil prices will increase significantly in the near future. According to the Australian Bureau of Statistics the average age of Australian cars was 10.7 years at the end of 1998. So the vast majority of the current fuel-hungry cars on Australian roads will still be in use in five years time - if the owners can afford them. The government needs to start providing tax incentives for fuel efficient cars and to end tax incentives for inefficient cars. Currently 4WD vehicles have reduced taxes and the tax deduction for a business car is based on the engine size (get a less efficient car and get a bigger tax deduction). The government claims to be protecting the economy (at the expense of the environment). But with the way things currently work the economy will be destroyed in less than five years. Even though the government cares little for the environment (in spite of the effect that climate change is having on farmers) they need to do something if they want to fulfill their claims of protecting the economy! Thanks to Chris Samuel for informing me of this.

    Fabio M. Di Nitto: More LDOM love

    I finally decided to publish the few hacks I am using to run Linux on SUN's LDOM.
    They are not pretty but they do the job done for me.
    I take 0 responsibility for them so use them at your own risk.
    Use this HOWTO only if you are dealing to mess with your system. Do *NOT* use for production systems if you do not understand what you are doing Step 1: read all the possible LDOM documentation that SUN made available for you. Step 2: understand that this is all experimental software. Step 3: repeat 1 and 2 a few times. LDOM server in Solaris allows to export 3 kind of block devices (file, partition/slice, entire disk) to the guest and those are seen as virtual disks.
    The guest cannot really feel the difference but it is important to understand the way in which the LDOM software plays with them.
    I did *not* test the export for partition/slice and my hacks do not know how to cope with it. You have been warned. The problem: LDOM virtual disk daemon mangles partition tables In an attempt to make sure that the partition tables exported to the guests are sane, the daemon ends up trashing valid ones because the check it forces to the devices is too strict and it behaves differently if the device is a file, a partition/slice or an entire disk.
    The ldm bind operation is the dangerous one to perform and that can kill your partition table for good.
    How ldm bind operation work: - for entire disks: * check device partition table
    * fix device partition table if check fails
    * lock device
    * export device to guest
    * store status of device once it is validated and do not check it ever again
    - for files: * check device partition table
    * fix device partition table if check fails
    * export device to guest
    Remember that I did *not* test export of a slice and that my hack does not take it into account. You have been warned twice. Limitations of the workaround First of all I assume that you installed LDOM 1.0 in the standard path (/opt/SUNWldm/) otherwise you might need to change the script manually to match an alternate path.
    Each guest is using the same kind of devices. The workaround does not yet how to cope with exports of files and partitions to the same guest.
    You know how to use dd and some other basic tools.
    If you start playing with bind/unbind operations manually and things break, you keep all pieces.
    How to This list of operation sounds extremely complex, but it is not and it is required only at the first install time and possibly to update your partition table backups if you decide to change them. The changes to the ldom init script will take to restore the last known to work partion table on each reboot. NOTE: if you fail to follow these instruction and do not use valid configuration entries or backup partitions, LDOM might not start anymore or even core dump. TAKE EXTREME CARE (and learn how to reboot into factory-defaults at SC/ALOM)

    1 - get the few files from here. This html file is there too for your convenience.
    2 - ldmd_start is the newly modified init script for LDOM. It should be placed in /opt/SUNWldm/bin and made executable. Note that if there is no configuration file or the configuration file is empty nothing will happen and you will be running the exact same script as the original. ldmd_start.orig and .diff are there for your convenience to check that I did not add a root kit ;).
    3 - ldom.linux is an example configuration file that you want to place in /etc.
    4 - mkdir /.ldom.linux , we will use this directory to store the backup partition tables.
    5 - decide what kind of device you want to export.
    Follow steps 6 and 7 if you decided to use a full disk as device and skip to 8 if you are using a file 6 - Use the format command from Solaris and make sure to label and format the disk.
    7 - Take a copy of the clean partition table.
    Example: dd if=/path/to/device of=/.ldom.linux/$guestname-$(basename /path/to/device).format count=1 bs=512
    So let say that your guest is called foo1 and you are exporting /dev/rdsk/c1t1d0s2 you will issue the following command:
    dd if=/dev/rdsk/c1t1d0s2 of=/.ldom.linux/foo1-c1t1d0s2.format count=1 bs=512
    Continue from here if you are exporting a file 8 - Configure your LDOM guest following the LDOM administration guide.
    9 - Netboot and install Linux in the guest.
    10 - Before rebooting into the installation, halt the guest and unbind it. The unbind is required to unlock the exported device for read.
    11 - Take a copy of the partition table that has been created by Linux.
    Example: dd if=/path/to/device of=/.ldom.linux/$guestname-$(basename /path/to/device).backup
    Following the above example: dd if=/dev/rdsk/c1t1d0s2 of=/.ldom.linux/foo1-c1t1d0s2.backup count=1 bs=512
    or
    dd if=/path/to/file of=/.ldom.linux/foo1-file.backup count=1 bs=512
    12 - Edit the configuration file in /etc that you installed at step 3.
    Each line contains:
    guest_name disk1 disk2 ...
    NOTE: you do not need to add entries for Solaris guests. Only Linux guests are required! Empty lines are skipped, no comments are allowed in the file.
    Follow steps 13 to 19 if you are exporting a disk 13 - Restore Solaris partition table:
    Example: dd conv=notrunc if=/.ldom.linux/$guest-$(basename /path/to/device).format of=/path/to/device bs=512 count=1
    14 - Bind the guest
    15 - Unbind the guest again. HINT: this is the most important step here because LDOM disk server now has validated the partition table and it will not check it again.
    16 - Restore Linux partition table:
    Example: dd conv=notrunc if=/.ldom.linux/$guest-$(basename /path/to/device).backup of=/path/to/device bs=512 count=1
    17 - Bind the guest again.
    18 - Start the guest.
    19 - Enjoy.
    Follow steps 20 to 23 if you are using a file 20 - Bind the guest
    21 - Restore Linux partition table:
    Example: dd conv=notrunc if=/.ldom.linux/$guest-$(basename /path/to/file).backup of=/path/to/file bs=512 count=1
    22 - Start the guest.
    23 - Enjoy.
    This said, the script will allow you to reboot the controller without having to worry about Linux guests and it should ensure that LDOM will always start properly. LDOM stores the status of a guests in the Machine Description and we will use this status to restore the partition tables too. If the guest is in either bind or active status, we will take proper actions to stop/unbind/restore/bind/start. If the guest is in unbind state, we will do nothing because we do not know why is in that state. The script also is not error prone. Failing to stop or unbind the domain, to perform restore partition table operation, might cause LDOM to abort and can require manual fixing but the above information should be enough for any experienced user to recover. Have fun

    17 July 2007

    Russell Coker: Correspondent Inference Theory and the US

    Bruce Schneier writes about Correspondent Inference Theory which deals with situations when the motives of an individual or group are inferred by the results of their actions. Both his article and the MIT article on which it is based only consider the results of terrorist actions against the US and allied countries. I believe that this is a serious mistake by Bruce, the MIT people, and most people who write about terrorism. The most sensible writing about Terrorism is by Noam Chomsky. Noam considers the definition of Terrorism in both propaganda and literally. By the literal definition of terrorism the US government is responsible for more than it’s fair share of terrorist acts performed around the world. There is no reason to believe that people in the Middle-East are any less intelligent than people in the US and Europe. It seems obvious that some of the people who’s countries are destroyed by violence sponsored by the US government will believe that the US is entirely inhabited by blood-thirsty monsters. The number of US citizens who realise what their government does and approve is very low as is the number of Muslims who know what Al Quaeda does and approve of it. The US government claims that it wants democracy in the Middle-East, and Osama bin Laden claims to want the US military out of the Middle-East. If the US forces were withdrawn from Saudi Arabia then it would probably lead to a significant increase in democracy in the region (it couldn’t get any less democratic) - both sides could get what they claim to want. The discussion of the MIT paper seems to be largely based on the fact that Correspondent Inference causes the US government (and other governments) to decrease the probability of doing anything that might meet the terrorist goals. But no-one has mentioned the possibility that the same may apply to the probability of non-state organisations doing anything that might meet the goals of the US government. The wars in Iraq and Iran have significantly decreased the capabilities of the US military, they can’t recruit enough new soldiers and the current soldiers have reduced effectiveness due to long tours of duty with short breaks. The US economy is stagnating partly due to the direct effects of financing the wars, partly due to the way the airline security theatre has hurt trade and tourism, and partly because everyone has been concentrating on other things instead of fixing the economy. When two states have a war there is always the possibility of it being ended by a peace treaty or one side surrendering. With modern communications fighting can end in a matter of hours after a cease-fire has been arranged between states. But when non-state forces are involved things become much more difficult to manage. A state can make a deal with one non-state group only to discover that another non-state group (or a dissident faction within the original group) doesn’t like the treaty and continues fighting. With non-state terrorist acts connected to Al Quaeda in the US, the UK, Spain, and Indonesia (and more acts apparently planned in other countries) it’s obvious that we aren’t going to get a clean or quick solution to this problem. It seems to me that the only way the US and allied countries can escape from Correspondent Inference is to withdraw from the Middle-East entirely. If the people of Iran or Palestine want to elect a government that you don’t like then let it go (that’s what democracy is about anyway). If a dictator seizes control of Iraq then either leave him in control or provide air-support to any province that wants to rebel and establish a democratic government. Either make a stand on the principle of support for freedom and democracy or do nothing on the principle of letting people in other countries sort out their own problems. An invasion for the wrong reasons might fool people on the other side of the world but is unlikely to fool many people who live in the target country.

    Next.

    Previous.