Syndicate content

Pages with category Storage

  • For a week now I have had a warning when shutting down saying that there was yet another update to install on shutdown...

    I did not really check on it for that long, but today I decided to check the auto-update as I was running the computer. There was the installation ready to be run. So I clicked on the button to start the installation.

    After a moment, the installation process stopped with a really weird error:

    Error message: Code 13EC, it's an unknown error.

    It's funny that any programmer would create an error that the computer cannot figure out... Way beyond me.

    This being ...

  • Since I have several computers running Ubuntu, I like to have them up to date, but it always takes a bit of time to download the new packages. I think those should be downloaded only once and then shared between all my computers (I also run VPS which can benefit from this sharing.)

    So, I decided to finally look into it and the simplest was to install apt-cacher-ng on my main server:

    sudo apt-get apt-cacher-ng

    That's it for the main server (from what I've read, at least, although I am thinking that maybe we need to tell apt-get to check that cache first even on the main system?)


  • Since I manage multiple computers and each run a PostgreSQL database system, I can see discrepancies between versions. (i.e. newer versions fix problems in older versions.)

    [toc hidden:1]
  • Today I wasted another hour or so in trying to get samba to work for one of my Windows computer so I could connect to one of my Linux computer. I knew that the installation was correct since I could log in with another computer/user that had worked for a long time. So... why would this one fail?

    Two things, for of all, I could see NOTHING happening in the logs. Really wondering why the default is to log close to nothing with such a non-secure piece of software, but that's a different question. I added the following to actually get about enough logs to understand what was happening:

    log ...
  • Lately, I noticed that I always had a connection. I was wondering why... I did install clamav but I did not recall changing anything in Apache where I'd get requests from the outside that would look like clamav.

    The fact is I also installed freshclam. By default, that gives you a line like this in your netstat -a64 listing:

        tcp   383     0 halk:38272     CLOSE_WAIT

    Most of the time you won't catch it when it is still connected and sending/receiving data. The deamon that accepts the connections is freshclam and it will save the new data ...

  • Copying an entire partition to another when both are not of the exact same size (in blocks) can be tricky, especially if that partition includes special files such as /dev/hda and FIFOs.1

    Yet, there are several ways to do so:

    • 1. Note that was the case especially in the 90's. As of today, things have come a long way and there are command line options one can use with the cp and tar instructions to copy pretty much anything. You will still have problems with some files such as locks, though. But you should not have to copy them!
  • When moving a database from one computer to another, you've got to copy all the data.

    For PostgreSQL, there is a pair of functions named pg_dump and pg_restore.

    In most cases that works great, however, some systems may create things such as additional functions that will NOT make it across. I do not know how to get that to work (and maybe it works in newer version of PostgreSQL?)

    In any event, in most cases the following commands are enough (I used them with Drupal websites and since they stopped using some of the definitions they have in the system.install file used on initialization, ...

  • LVM today can create a mirror of your data without having the need for mdraid (or hardware raid).

    Problem is, I did not find any documentation that makes sense and there doesn't seem to be a graphical interface that can help you with that (at least not under Ubuntu Gnome.)

    So... I decided to spend the time because that's probably less time anyway than trying to create and maintain and md device.

    The fact is, it is rather simple, but requires quite a bit of knowledge.

    Copying the Partitions Exactly

    First, I wanted the partitions to be exactly the same and using fdisk did not ...

  • A quick CSV (Comma Separated Values) reference:

    1) Row separator

      \n   \r\n

    In order to separate lines, use a newline character sequence.

    Most loaders probably support the \r sequence too. (Especially on MacOS/X)

    [toc hide:1]
  • Today I got a really strange error. Part of the message was:

    E: Encountered a section with no Package: header
    E: Problem with MergeList /var/lib/apt/lists/<some name>
    E: The package lists or status file could not be parsed or opened.

    That seemed really bizarre. I had never seen such an error before...

    So I searched for it and one thing to know is that the files under that directory are temporary, so you can actually delete them. apt-get knows how to regenerate them.

    So in other words you can do something like this:

    sudo rm /var/lib/apt/lists/<some file>
    # or ...
Syndicate content


Terms of Site Index

Find the page/content you are looking for with our index.

  • cvs

    CVS is a control source tool that has been used for a quite long time. It uses RCS as its bottom layer (RCS is limited to a single computer environment.) Each time the source code is checked in with a diff so one can always retrieve a previous version. CVS is often being replaced with SVN.

  • Drake
  • proxy

    In networking, a proxy is an intermediate network connection used to hide a user or computer. Most large companies use multiple proxies to hide all of their different intranets. Technically, when using a proxy you actually send all your network data to that other computer and that computer is in charge of sending that data outside your organization. Very large companies generally have multiple levels of proxies.

  • taxonomy
  • welcome