다음 이전 차례

5. 설치문제의 해결

  1. Q: 2.0.x 대의 커널을 위한 현재 알려진 가장 안정된 RAID는 패치는 무엇인가요?
    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 + ... !?
  2. Q: RAID 패치가 전 잘 인스톨되지 않네요. 무엇이 문제일까요?
    A: /usr/include/linux/usr/src/linux/include/linux으로 심볼릭 링크를 걸어라. raid5.c 등의 새파일을 제대로 된 위치로 복사하라. 때때로 패치 명령어는 새로운 파일을 만들지 못한다. 패치시 -f 옵션을 사용해보라.

    Make sure that /usr/include/linux is 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 -f flag on patch.

  3. Q: raidtools 0.42를 컴파일 중 include <pthread.h> 에서, 컴파일이 멎었다. 그게 내 시스템에는 없는데, 어떻게 이것을 고쳐야 하는가?
    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.

  4. Q: 이런 메시지가 나옵니다. mdrun -a /dev/md0: Invalid argument
    A: 첫번째 사용하기 전에 mkraid를 사용하여 RAID를 초기화 하여야 한다.

    Use mkraid to initialize the RAID set prior to the first use. mkraid ensures that the RAID array is initially in a consistent state by erasing the RAID partitions. In addition, mkraid will create the RAID superblocks.

  5. Q: 이런 메시지가 나옵니다. 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 raid5
                
    

    Try lsmod (or, alternately, cat /proc/modules) to see if the raid modules are loaded. If they are not, you can load them explicitly with the modprobe raid1 or modprobe raid5 command. Alternately, if you are using the autoloader, and expected kerneld to load them and it didn't this is probably because your loader is missing the info to load the modules. Edit /etc/conf.modules and add the following lines:

        alias md-personality-3 raid1
        alias md-personality-4 raid5
                
    

  6. Q: mdadd -a 의 실행중 /dev/md0: No such file or directory 와 같은 메시지가 나왔습니다. 정말 어디에도 /dev/md0 가 없습니다. 이것을 어떻게 해야 할까요?
    A: raid-tools는 루트가 make install 했을 때, 이 장치들을 만든다. 또한, 아래와 같이 할 수도 있다.
        cd /dev 
        ./MAKEDEV md
                
    

    The raid-tools package will create these devices when you run make install as root. Alternately, you can do the following:

        cd /dev 
        ./MAKEDEV md
                
    
  7. Q: /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/md0 before you can mount it. Use mke2fs.

  8. Q: Truxton Fulton 작성: 제 2.0.30 시스템에서 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 a mkraid for 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.

  9. Q: mdadd 된 장치를 mdrun 하려고 하면, 아래와 같은 메시지가 나옵니다. ''invalid raid superblock magic''.
    A: mkraid를 실행하라.

    Make sure that you've run the mkraid part of the install procedure.

  10. Q: 제가 /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/md0 where x is l for linear, 0 for RAID-0 or 1 for RAID-1, etc.

  11. Q: 두개의 device를 선형 연결해서 md device를 만들었습니다. 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 mkfs your new md-dev before using it the first time, so that the filesystem will cover the whole device.

  12. Q: mdcreate로 /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''.

  13. Q: 4GB 보다 큰 파티션들을 포함하는 RAID를 실행시키려 도전할 때 아래와 같은 메시지가 나왔습니다. invalid raid superblock magic
    A: 이 버그는 현재 고쳐졌다.(97년 9월) 최근의 raid버져을 사용해라.

    This bug is now fixed. (September 97) Make sure you have the latest raid code.

  14. Q: 2GB보다 큰 파티션으로 mke2fs를 시도하는데 아래와 같은 오류가 납니다. 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_LLSEEK to e2fsprogs-1.10/lib/ext2fs/llseek.c just before the first #ifdef HAVE_LLSEEK and recompile mke2fs.

  15. Q: ckraid/etc/mdtab 를 읽지 못합니다.
    A: /etc/mdtab 안의 RAID-0 / linear RAID 설정은 쓰이지 않고 있고, 좀더 후에야 지원 될것이다. /etc/raid1.conf 등의 설정파일들을 사용하라.

    The RAID0/linear configuration file format used in /etc/mdtab is obsolete, although it will be supported for a while more. The current, up-to-date config files are currently named /etc/raid1.conf, etc.

  16. Q: (raid1.o) 같은 모듈들이 자동으로 로드되지 않습니다. mdrun 전에 수동으로 modprobe를 실행시켜야 하는데, 어떻게 이것을 고쳐야 할까요?
    A: /etc/conf.modules에 아래와 같은 줄을 추가해라.
        alias md-personality-3 raid1
        alias md-personality-4 raid5
                
    

    To autoload the modules, we can add the following to /etc/conf.modules:

        alias md-personality-3 raid1
        alias md-personality-4 raid5
                
    

  17. Q: 드라이브 13개를 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=8 to a larger number, and rebuild the kernel.

  18. Q: 최신식 SPARCstation 5 에서 md 작업을 할수 없습니다. 디스크 라벨에 무슨 문제가 있는 것이라고 생각됩니다만..

    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 ext2fs will 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.


다음 이전 차례