<$BlogRSDUrl$>

Wednesday, September 30, 2009

Linux software raid 

Most of what you need is on the Linux Raid wiki.
http://linux-raid.osdl.org/index.php/Linux_Raid
However, you also need to know that the initial mdadm command puts the raid in read-only mode. To fix this, you need to need to do something like "mdadm --readwrite /dev/md10"
http://linux.derkeiler.com/Newsgroups/comp.os.linux.misc/2007-11/msg00012.html
Here is what I did:
/sbin/mdadm --create --verbose /dev/md20 --level=mirror --raid-devices=2 /dev/sdc /dev/sdd
/sbin/mdadm --monitor /dev/md20
I don't know what monitor does. In another terminal I did this:
/sbin/mdadm --readwrite /dev/md20
This changes the status from paused to resync.
gcs6@gelato:> cat /proc/mdstat

md20 : active (auto-read-only) raid1 sdd[1] sdc[0]
488386496 blocks [2/2] [UU]
resync=PENDING
md10 : active raid1 sda10[0] sdb10[1]
441072512 blocks [2/2] [UU]

gcs6@gelato:> /sbin/mdadm --readwrite /dev/md20
gcs6@gelato:> cat /proc/mdstat

Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md20 : active raid1 sdd[1] sdc[0]
488386496 blocks [2/2] [UU]
[>....................] resync = 3.8% (18745664/488386496) finish=123.0min speed=63594K/sec
md10 : active raid1 sda10[0] sdb10[1]
441072512 blocks [2/2] [UU]

OK. Time to make the file system. I choose reiserfs, because that's what OpenSUSE came with on my other disks. The wiki page says I can do this while it resyncs, so that is what I did.
/sbin/mkfs.reiserfs -b 4096 /dev/md20
Add entry to fstab, mount, and good to go!

When I rebooted a few months later, I found that my raid was gone!  Here is how I recovered:
/sbin/mdadm -A /dev/md20 --scan
mount -t reiserfs /dev/md20 /scratch1
Looks like it is OK.  Whew!  Also, I added the following line to /etc/mdadm.conf.  Maybe it is necessary? 
ARRAY /dev/md20 level=1 num-devices=2 devices=/dev/sdc,/dev/sdd

Tuesday, September 22, 2009

The system cannot execute the specified program 

The solution (in cases where the C++ redistributable cannot be installed) is to either remove the manifest, or include a private manifest.

http://msdn.microsoft.com/en-us/library/ms235342%28VS.80%29.aspx

The private manifest includes the manifest file itself, as well as the DLL's in the assembly. You plop them into the same directory as the executable. The format of the manifest file should exactly match the manifest in, for example, c:\windows\WinSxS\manifests.

Friday, September 18, 2009

OCR Software 

I'm in the market for an OCR software that can handle Japanese. Freshmeat and other sources yield the following choices (as of Sep 18, 2009):

Engines
Front-ends
  • YAGF (Cuneiform front-end) - last update Aug 2009
  • ocrodjvu (OCRopus front end) - last update Mar 2009
  • Kooka (GOCR/Orcad front end) - last update Jul 2007
Misc
Notes:
  • Tesseract: unlikely to be usable for asian languages (see this page)
  • Gocr: no information, does not look promising
  • OCRopus: no known solution (see this page)
  • Orcad: no information, does not look promising
  • Cuneiform: apparently not (see this page, and this page)
Look like the only choice is NHocr. Very interesting...

This page is powered by Blogger. Isn't yours?