I use the UUID option to mount the btrfs disk,but i can not success. first, the disk is /dev/sdd1 then, i pull out the disk and after mintues, pushed it again,at this time, it changes to /dev/sde1 at this time, if we use /etc/init.d/ceph restart, it will failed, for the current mount option is likely "/dev/sd** " but the UUID didn't change. why i can not mount it successfuly? BTW, does ceph provides methods to resolve the condition like that? the starce file attached. thanks!
4877 execve("/bin/mount", ["mount", "-t", "btrfs", "-o", "noatime", "UUID=4c92b2e9-3911-45c1-b9c4-2cc"..., "/data/osd.2"], [/* 17 vars */]) = 0 4877 brk(0) = 0x1c88000 4877 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 4877 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3db62ce000 4877 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) 4877 open("/etc/ld.so.cache", O_RDONLY) = 3 4877 fstat(3, {st_mode=S_IFREG|0644, st_size=25523, ...}) = 0 4877 mmap(NULL, 25523, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3db62c7000 4877 close(3) = 0 4877 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 4877 open("/lib/libblkid.so.1", O_RDONLY) = 3 4877 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220^\0\0\0\0\0\0@"..., 832) = 832 4877 fstat(3, {st_mode=S_IFREG|0644, st_size=128256, ...}) = 0 4877 mmap(NULL, 2223432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3db5e94000 4877 mprotect(0x7f3db5eb0000, 2097152, PROT_NONE) = 0 4877 mmap(0x7f3db60b0000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7f3db60b0000 4877 close(3) = 0 4877 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 4877 open("/lib/libuuid.so.1", O_RDONLY) = 3 4877 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\25\0\0\0\0\0\0@"..., 832) = 832 4877 fstat(3, {st_mode=S_IFREG|0644, st_size=15720, ...}) = 0 4877 mmap(NULL, 2110736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3db5c90000 4877 mprotect(0x7f3db5c94000, 2093056, PROT_NONE) = 0 4877 mmap(0x7f3db5e93000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f3db5e93000 4877 close(3) = 0 4877 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 4877 open("/lib/libselinux.so.1", O_RDONLY) = 3 4877 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0U\0\0\0\0\0\0@"..., 832) = 832 4877 fstat(3, {st_mode=S_IFREG|0644, st_size=109464, ...}) = 0 4877 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3db62c6000 4877 mmap(NULL, 2209368, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3db5a74000 4877 mprotect(0x7f3db5a8e000, 2093056, PROT_NONE) = 0 4877 mmap(0x7f3db5c8d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x7f3db5c8d000 4877 mmap(0x7f3db5c8f000, 1624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3db5c8f000 4877 close(3) = 0 4877 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 4877 open("/lib/libc.so.6", O_RDONLY) = 3 4877 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\355\1\0\0\0\0\0@"..., 832) = 832 4877 fstat(3, {st_mode=S_IFREG|0755, st_size=1432968, ...}) = 0 4877 mmap(NULL, 3541032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3db5713000 4877 mprotect(0x7f3db586b000, 2093056, PROT_NONE) = 0 4877 mmap(0x7f3db5a6a000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x157000) = 0x7f3db5a6a000 4877 mmap(0x7f3db5a6f000, 18472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3db5a6f000 4877 close(3) = 0 4877 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 4877 open("/lib/libdl.so.2", O_RDONLY) = 3 4877 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r\0\0\0\0\0\0@"..., 832) = 832 4877 fstat(3, {st_mode=S_IFREG|0644, st_size=14696, ...}) = 0 4877 mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3db550f000 4877 mprotect(0x7f3db5511000, 2097152, PROT_NONE) = 0 4877 mmap(0x7f3db5711000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f3db5711000 4877 close(3) = 0 4877 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3db62c5000 4877 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3db62c3000 4877 arch_prctl(ARCH_SET_FS, 0x7f3db62c37e0) = 0 4877 mprotect(0x7f3db5711000, 4096, PROT_READ) = 0 4877 mprotect(0x7f3db5a6a000, 16384, PROT_READ) = 0 4877 mprotect(0x7f3db62d0000, 4096, PROT_READ) = 0 4877 munmap(0x7f3db62c7000, 25523) = 0 4877 brk(0) = 0x1c88000 4877 brk(0x1ca9000) = 0x1ca9000 4877 open("/etc/selinux/config", O_RDONLY) = -1 ENOENT (No such file or directory) 4877 statfs("/selinux", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=3870208, f_bfree=2198114, f_bavail=2001519, f_files=983040, f_ffree=754845, f_fsid={1442076645, -1226478538}, f_namelen=255, f_frsize=4096}) = 0 4877 open("/proc/mounts", O_RDONLY) = 3 4877 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 4877 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3db62cd000 4877 read(3, "rootfs / rootfs rw 0 0\nnone /sys "..., 1024) = 895 4877 read(3, ""..., 1024) = 0 4877 close(3) = 0 4877 munmap(0x7f3db62cd000, 4096) = 0 4877 open("/usr/lib/locale/locale-archive", O_RDONLY) = 3 4877 fstat(3, {st_mode=S_IFREG|0644, st_size=1527584, ...}) = 0 4877 mmap(NULL, 1527584, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3db614e000 4877 close(3) = 0 4877 umask(022) = 022 4877 open("/dev/null", O_RDWR) = 3 4877 close(3) = 0 4877 getuid() = 0 4877 geteuid() = 0 4877 lstat("/etc/mtab", {st_mode=S_IFREG|0644, st_size=626, ...}) = 0 4877 getuid() = 0 4877 geteuid() = 0 4877 getgid() = 0 4877 getegid() = 0 4877 prctl(0x3, 0, 0, 0, 0) = 1 4877 getuid() = 0 4877 geteuid() = 0 4877 getgid() = 0 4877 getegid() = 0 4877 prctl(0x3, 0, 0, 0, 0) = 1 4877 open("/etc/blkid.conf", O_RDONLY) = -1 ENOENT (No such file or directory) 4877 open("/etc/blkid.tab", O_RDONLY) = 3 4877 fstat(3, {st_mode=S_IFREG|0644, st_size=1414, ...}) = 0 4877 fcntl(3, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) 4877 fstat(3, {st_mode=S_IFREG|0644, st_size=1414, ...}) = 0 4877 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3db62cd000 4877 lseek(3, 0, SEEK_CUR) = 0 4877 read(3, "<device DEVNO=\"0x0801\" TIME=\"1318"..., 4096) = 1414 4877 access("/dev/sda1", F_OK) = 0 4877 access("/dev/sda2", F_OK) = 0 4877 access("/dev/sda3", F_OK) = 0 4877 access("/dev/sda5", F_OK) = 0 4877 access("/dev/sdb1", F_OK) = 0 4877 access("/dev/mapper/bsdocfspv-_swap", F_OK) = 0 4877 access("/dev/mapper/bsdocfspv-_var", F_OK) = 0 4877 access("/dev/mapper/bsdocfspv-_bsdocfs", F_OK) = 0 4877 access("/dev/sdc1", F_OK) = 0 4877 access("/dev/sde1", F_OK) = 0 4877 read(3, ""..., 4096) = 0 4877 close(3) = 0 4877 munmap(0x7f3db62cd000, 4096) = 0 4877 open("/etc/blkid.tab", O_RDONLY) = 3 4877 fstat(3, {st_mode=S_IFREG|0644, st_size=1414, ...}) = 0 4877 close(3) = 0 4877 access("/dev/sde1", F_OK) = 0 4877 stat("/dev/sde1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 65), ...}) = 0 4877 open("/dev/sde1", O_RDONLY) = 3 4877 fadvise64(3, 0, 0, POSIX_FADV_RANDOM) = 0 4877 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 65), ...}) = 0 4877 uname({sys="Linux", node="T02-OSD121", ...}) = 0 4877 ioctl(3, BLKGETSIZE64, 0x1c8aef0) = 0 4877 lseek(3, 65536, SEEK_SET) = 65536 4877 read(3, "^F\35R\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0L"..., 1024) = 1024 4877 close(3) = 0 4877 access("/dev/sde1", F_OK) = 0 4877 stat("/sbin/mount.btrfs", 0x7fff6f0b1280) = -1 ENOENT (No such file or directory) 4877 rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0 4877 stat("/sbin/mount.btrfs", 0x7fff6f0b1260) = -1 ENOENT (No such file or directory) 4877 mount("/dev/sde1", "/data/osd.2", "btrfs", MS_MGC_VAL|MS_NOATIME, NULL