RAID i kłopopty z założeniem LVM
Michał Panasiewicz
wolvverine w tarchomin.pl
Czw, 16 Gru 2004, 19:03:54 CET
kłopot:
[root w serwer root]# pvcreate -v /dev/md0
/dev/md0: Couldn't find device.
dane:
na /dev/md3 załozyło bez problemu
[root w serwer root]# cat /proc/mdstat
Personalities : [raid1] [raid5]
md3 : active raid5 sda3[0] sdd3[3] sdc3[2] sdb3[1]
462527040 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
md1 : active raid1 sdc1[0] sdd1[1]
104320 blocks [2/2] [UU]
md0 : active raid1 sda1[0] sdb1[1]
104320 blocks [2/2] [UU]
unused devices: <none>
kawałek strace (koncówka):
...
open("/sys/block/ram0", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 7
fstat64(7, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
fcntl64(7, F_SETFD, FD_CLOEXEC) = 0
getdents64(7, /* 7 entries */, 4096) = 184
open("/sys/block/ram0/dev", O_RDONLY|O_LARGEFILE) = 8
fstat64(8, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40016000
read(8, "1:0\n", 4096) = 4
close(8) = 0
munmap(0x40016000, 4096) = 0
getdents64(7, /* 0 entries */, 4096) = 0
close(7) = 0
getdents64(6, /* 0 entries */, 4096) = 0
close(6) = 0
open("/dev/md0", O_RDONLY|O_LARGEFILE) = 6
close(6) = 0
write(4, "device/dev-io.c:220 Getting si"..., 47) = 47
time([1103219668]) = 1103219668
getpid() = 10313
rt_sigaction(SIGPIPE, {0x40126c70, [], 0}, {SIG_DFL}, 8) = 0
send(3, "<14>Dec 16 18:54:28 lvm[10313]: "..., 57, 0) = 57
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
open("/dev/md0", O_RDONLY|O_LARGEFILE) = 6
ioctl(6, BLKGETSIZE64, 0xbffff55c) = 0
close(6) = 0
stat64("/dev/md0", {st_mode=S_IFBLK|0660, st_rdev=makedev(9, 0), ...}) =
0
stat64("/dev/md0", {st_mode=S_IFBLK|0660, st_rdev=makedev(9, 0), ...}) =
0
open("/dev/md0", O_RDWR|O_DIRECT|O_LARGEFILE) = 6
fstat64(6, {st_mode=S_IFBLK|0660, st_rdev=makedev(9, 0), ...}) = 0
ioctl(6, BLKBSZGET, 0xbffff478) = 0
_llseek(6, 106758144, [106758144], SEEK_SET) = 0
read(6, "\374N+\251\0\0\0\0Z\0\0\0\0\0\0\0\0\0\0\0K2 \357\6\206"...,
4096) = 4096
write(4, "config/config.c:778 metadata/p"..., 85) = 85
time([1103219668]) = 1103219668
getpid() = 10313
rt_sigaction(SIGPIPE, {0x40126c70, [], 0}, {SIG_DFL}, 8) = 0
send(3, "<14>Dec 16 18:54:28 lvm[10313]: "..., 95, 0) = 95
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
write(4, "config/config.c:778 metadata/p"..., 85) = 85
time([1103219668]) = 1103219668
getpid() = 10313
rt_sigaction(SIGPIPE, {0x40126c70, [], 0}, {SIG_DFL}, 8) = 0
send(3, "<14>Dec 16 18:54:28 lvm[10313]: "..., 95, 0) = 95
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
stat64("/dev/md0", {st_mode=S_IFBLK|0660, st_rdev=makedev(9, 0), ...}) =
0
write(2, " ", 2 ) = 2
write(2, "/dev/md0: Couldn\'t find device.", 31/dev/md0: Couldn't find
device.) = 31
write(2, "\n", 1
) = 1
write(4, "pvcreate.c:152 /dev/md0: Could"..., 49) = 49
time([1103219668]) = 1103219668
getpid() = 10313
rt_sigaction(SIGPIPE, {0x40126c70, [], 0}, {SIG_DFL}, 8) = 0
send(3, "<11>Dec 16 18:54:28 lvm[10313]: "..., 64, 0) = 64
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
write(4, "locking/file_locking.c:59 Unlo"..., 62) = 62
time([1103219668]) = 1103219668
getpid() = 10313
rt_sigaction(SIGPIPE, {0x40126c70, [], 0}, {SIG_DFL}, 8) = 0
send(3, "<14>Dec 16 18:54:28 lvm[10313]: "..., 66, 0) = 66
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
flock(5, LOCK_NB|LOCK_UN) = 0
flock(5, LOCK_EX|LOCK_NB) = 0
stat64("/var/lock/lvm/P_orphans", {st_mode=S_IFREG|0700,
st_size=0, ...}) = 0
fstat64(5, {st_mode=S_IFREG|0700, st_size=0, ...}) = 0
unlink("/var/lock/lvm/P_orphans") = 0
close(5) = 0
close(6) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(4, "filters/filter-persistent.c:179 "..., 85) = 85
time([1103219668]) = 1103219668
getpid() = 10313
rt_sigaction(SIGPIPE, {0x40126c70, [], 0}, {SIG_DFL}, 8) = 0
send(3, "<14>Dec 16 18:54:28 lvm[10313]: "..., 83, 0) = 83
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
open("/etc/lvm/.cache", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 5
fstat64(5, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40016000
write(5, "# This file is automatically mai"..., 226) = 226
close(5) = 0
munmap(0x40016000, 4096) = 0
brk(0x80ee000) = 0x80ee000
brk(0x80ea000) = 0x80ea000
brk(0x80e6000) = 0x80e6000
close(4) = 0
munmap(0x40015000, 4096) = 0
close(3) = 0
exit_group(5) = ?
--
jabber: wolvverine [ at ] chrome [ dot ] pl
e-mail: wolvverine [ at ] tlen [ dot ] pl
wolvverine [ at ] pld-linux [ dot ] org
Więcej informacji o liście dyskusyjnej pld-users-pl