A: As of 18 Sept 1997, it is "2.0.30 + pre-9 2.0.31 + Werner Fink's swapping patch + the alpha RAID patch". As of November 1997, it is 2.0.31 + ... !?
A:/usr/include/linux를/usr/src/linux/include/linux으로 심볼릭 링크를 걸어라.raid5.c등의 새파일을 제대로 된 위치로 복사하라. 때때로 패치 명령어는 새로운 파일을 만들지 못한다. 패치시-f옵션을 사용해보라.Make sure that
/usr/include/linuxis a symbolic link to/usr/src/linux/include/linux.Make sure that the new files
raid5.c, etc. have been copied to their correct locations. Sometimes the patch command will not create new files. Try the-fflag onpatch.
A: raidtools-0.42는 ftp://ftp.inria.fr/INRIA/Projects/cristal/Xavier.Leroy 얻을 수 있는 linuxthreads-0.6을 필요로 한다. 또한, glibc v2.0도 사용한다.raidtools-0.42 requires linuxthreads-0.6 from: ftp://ftp.inria.fr/INRIA/Projects/cristal/Xavier.Leroy Alternately, use glibc v2.0.
mdrun -a /dev/md0: Invalid argument
A: 첫번째 사용하기 전에mkraid를 사용하여 RAID를 초기화 하여야 한다.Use
mkraidto initialize the RAID set prior to the first use.mkraidensures that the RAID array is initially in a consistent state by erasing the RAID partitions. In addition,mkraidwill create the RAID superblocks.
mdrun -a /dev/md0: Invalid argument
설정은.
cat /proc/mdstat 를 하면 아래와 같은 메시지가 나옵니다.
Personalities :
read_ahead not set
md0 : inactive sda1 sdb1 6313482 blocks
md1 : inactive
md2 : inactive
md3 : inactive
mdrun -a 로 오류를 출력해보면..
/dev/md0: Invalid argument 이런 메시지가 나옵니다.A:lsmod(또는cat /proc/modules)로 raid 모듈이 로드되었는지 확인해라. 로드되어있지 않다면,modprobe raid1또는modprobe raid5로 확실히 로드시켜라. 또는 autoloader를 사용한다면,/etc/conf.modules에 아래와 같은 줄을 추가시켜라.alias md-personality-3 raid1 alias md-personality-4 raid5Try
lsmod(or, alternately,cat /proc/modules) to see if the raid modules are loaded. If they are not, you can load them explicitly with themodprobe raid1ormodprobe raid5command. Alternately, if you are using the autoloader, and expectedkerneldto load them and it didn't this is probably because your loader is missing the info to load the modules. Edit/etc/conf.modulesand add the following lines:
alias md-personality-3 raid1 alias md-personality-4 raid5
mdadd -a 의 실행중 /dev/md0: No such file or directory
와 같은 메시지가 나왔습니다. 정말 어디에도 /dev/md0 가 없습니다.
이것을 어떻게 해야 할까요?
A: raid-tools는 루트가make install했을 때, 이 장치들을 만든다. 또한, 아래와 같이 할 수도 있다.cd /dev ./MAKEDEV mdThe raid-tools package will create these devices when you run
make installas root. Alternately, you can do the following:cd /dev ./MAKEDEV md
/dev/md0에 RAID를 만든 후 mount 시도시에 아래와 같은 에러가
납니다. 무엇이 문제입니까?
mount: wrong fs type, bad option, bad superblock on /dev/md0,
or too many mounted file systems.
A: 마운트 하기전에 파일시스템을 만들어야 한다.mke2fs를 사용하라.You need to create a file system on
/dev/md0before you can mount it. Usemke2fs.
mkraid로 RAID-1을 위해 각각의 파티션을 지우는 중.
콘솔상에 "Cannot allocate free page" 이런 에러가 나고, system log에
"Unable to handle kernel paging request at virtual address ..." 이런 에러가 납니다.
Truxton Fulton wrote:
On my Linux 2.0.30 system, while doing amkraidfor a RAID-1 device, during the clearing of the two individual partitions, I got"Cannot allocate free page"errors appearing on the console, and"Unable to handle kernel paging request at virtual address ..."errors in the system log. At this time, the system became quite unusable, but it appears to recover after a while. The operation appears to have completed with no other errors, and I am successfully using my RAID-1 device. The errors are disconcerting though. Any ideas?
A: 그것은 2.0.30 kernel의 알려진 버그이다. 2.0.31로 수정하거나 2.0.29로 돌아가라.This was a well-known bug in the 2.0.30 kernels. It is fixed in the 2.0.31 kernel; alternately, fall back to 2.0.29.
mdadd 된 장치를 mdrun 하려고 하면,
아래와 같은 메시지가 나옵니다.
''invalid raid superblock magic''.
A:mkraid를 실행하라.Make sure that you've run the
mkraidpart of the install procedure.
/dev/md0을 사용하는 동안, 커널은 아래와 같은
에러들을 쏟아냅니다.
md0: device not running, giving up !
, I/O error...
전, 가상 device에 제 device를 성공적으로 추가시켰었습니다.
When I access /dev/md0, the kernel spits out a
lot of errors like md0: device not running, giving up !
and I/O error.... I've successfully added my devices to
the virtual device.
A: 사용하기 위해서 device는 실행되어야 한다.mdrun -px /dev/md0를 사용하라. x는 RAID level이다.To be usable, the device must be running. Use
mdrun -px /dev/md0where x is l for linear, 0 for RAID-0 or 1 for RAID-1, etc.
cat /proc/mdstat 로는 총크기가 나오지만,
df 명령으로는 첫번째 디스크의 크기밖에 안나옵니다.
I've created a linear md-dev with 2 devices.
cat /proc/mdstat shows
the total size of the device, but df only shows the size of the first
physical device.
A: 처음 사용하기 전에 반드시mkfs를 실행야 한다.You must
mkfsyour new md-dev before using it the first time, so that the filesystem will cover the whole device.
/etc/mdtab를 설정하고 ,mdadd, mdrun,fsck
등을 사용해, 두개의 /dev/mdX 파티션을 만들었습니다.
reboot 하기 전까지 모든 것이 괜찮아 보였지만, reboot 할때, 두 파티션에서 아래와 같은 fsck
가 났읍니다. fsck.ext2: Attempt to read block from filesystem resulted in short
read while trying too open /dev/md0
왜 그렇고 어떻게 고쳐야 하나요?
I've set up /etc/mdtab using mdcreate, I've
mdadd'ed, mdrun and fsck'ed
my two /dev/mdX partitions. Everything looks
okay before a reboot. As soon as I reboot, I get an
fsck error on both partitions: fsck.ext2: Attempt to read block from filesystem resulted in short
read while trying too open /dev/md0. Why?! How do
I fix it?!
A: 부팅 작업시 RAID 파티션들은fsck이전에 반드시 시작되어야 한다.fsck는/etc/rc.d/rc.S또는/etc/rc.d/rc.sysinit에서 불려질 것이다. 이 파일들의fsck -A전에mdadd -ar를 추가해라.
During the boot process, the RAID partitions must be started
before they can be fsck'ed. This must be done
in one of the boot scripts. For some distributions,
fsck is called from /etc/rc.d/rc.S, for others,
it is called from /etc/rc.d/rc.sysinit. Change this
file to mdadd -ar *before* fsck -A
is executed. Better yet, it is suggested that
ckraid be run if mdadd returns with an
error. How do do this is discussed in greater detail in
question 14 of the section ''Error Recovery''.
invalid raid superblock magic
A: 이 버그는 현재 고쳐졌다.(97년 9월) 최근의 raid버져을 사용해라.This bug is now fixed. (September 97) Make sure you have the latest raid code.
Warning: could not write 8 blocks in inode table starting at 2097175
A: 이것은mke2fs의 문제 같다. 임시로 소스에서e2fsprogs-1.10/lib/ext2fs/llseek.c파일의 첫#ifdef HAVE_LLSEEK전에#undef HAVE_LLSEEK를 추가한후 mke2fs를 재컴파일해서 사용하라.This seems to be a problem with
mke2fs(November 97). A temporary work-around is to get the mke2fs code, and add#undef HAVE_LLSEEKtoe2fsprogs-1.10/lib/ext2fs/llseek.cjust before the first#ifdef HAVE_LLSEEKand recompile mke2fs.
ckraid 가 /etc/mdtab 를 읽지 못합니다.
A:/etc/mdtab안의 RAID-0 / linear RAID 설정은 쓰이지 않고 있고, 좀더 후에야 지원 될것이다./etc/raid1.conf등의 설정파일들을 사용하라.The RAID0/linear configuration file format used in
/etc/mdtabis obsolete, although it will be supported for a while more. The current, up-to-date config files are currently named/etc/raid1.conf, etc.
raid1.o) 같은 모듈들이 자동으로 로드되지 않습니다.
mdrun 전에 수동으로 modprobe를 실행시켜야 하는데, 어떻게 이것을 고쳐야 할까요?
A:/etc/conf.modules에 아래와 같은 줄을 추가해라.alias md-personality-3 raid1 alias md-personality-4 raid5To autoload the modules, we can add the following to
/etc/conf.modules:alias md-personality-3 raid1 alias md-personality-4 raid5
mdadd 한 후, mdrun -p5 /dev/md0
시도 했지만, 아래와 같은 오류가 나왔습니다.
/dev/md0: Invalid argument
A: software RAID의 기본설정 8개이다.linux/md.h의#define MAX_REAL=8를 크게 바꾼후, 커널을 재컴파일 하라.The default configuration for software RAID is 8 real devices. Edit
linux/md.h, change#define MAX_REAL=8to a larger number, and rebuild the kernel.
I can't make md work with partitions on our
latest SPARCstation 5. I suspect that this has something
to do with disk-labels.
A: Sun 의 디스크 라벨은 파티션의 첫 1K 에 있다. RAID-1에서는 ext2fs 파티션이 모든 라벨을 무시 할 것이기 때문에 문제가 없지만, 다른 레벨들에 관해서는 아직 해결되지 않았다.Sun disk-labels sit in the first 1K of a partition. For RAID-1, the Sun disk-label is not an issue since
ext2fswill skip the label on every mirror. For other raid levels (0, linear and 4/5), this appears to be a problem; it has not yet (Dec 97) been addressed.