Date: Tue, 03 Mar 2015 16:54:09 -0500 From: Mike Tancsa <mike@sentex.net> To: freebsd-questions <freebsd-questions@freebsd.org> Subject: nfs mounted /tmp vs disk mounted /tmp Message-ID: <54F62D81.4060407@sentex.net>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------080905040206050304040305 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit While trying to test in the lab a migration of disks from an old pci-x arcmrs array to a pcie card, I ran into an odd problem with the cli and raid management daemon. I would start up the programs and they would immediately exit Looking at the truss output, it seemed to bork soon after it tried to create a file in /tmp. Testing all the same hardware, but then booting from a disk, it worked. Back to netboot, but this time with /tmp mounted via tmpfs, it also worked. So it seems there is something about having tmp mounted via nfs that causes the program to die. The issue seems to be the setting of locks. I am curious, is this something that can be worked around in nfs, or due to the nature of nfs, this is not possible ? I think I saw this same issue with virtual box in a netboot environment (https://lists.freebsd.org/pipermail/freebsd-emulation/2014-July/011693.html) .... nfs mounted /tmp mknod("/dev/arcmsr0",020666,-6368) = 0 (0x0) open("/dev/arcmsr0",O_RDWR,00) = 3 (0x3) ioctl(3,0xc4244e06 { IORW 0x4e('N'), 6, 1060 },0xffffe3e0) = 0 (0x0) open("/tmp/arcmsr0",O_RDWR|O_CREAT,00) = 4 (0x4) getpid() = 795 (0x31b) fcntl(4,F_SETLKW,0x7ffffffcde10) ERR#45 'Operation not supported' vs tmpfs mounted /tmp mknod("/dev/arcmsr0",020666,-6368) = 0 (0x0) open("/dev/arcmsr0",O_RDWR,00) = 3 (0x3) ioctl(3,0xc4244e06 { IORW 0x4e('N'), 6, 1060 },0xffffe3e0) = 0 (0x0) open("/tmp/arcmsr0",O_RDWR|O_CREAT,00) = 4 (0x4) getpid() = 853 (0x355) fcntl(4,F_SETLKW,0x7ffffffcde10) = 0 (0x0) ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ --------------080905040206050304040305 Content-Type: text/plain; charset=windows-1252; name="tmp.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="tmp.txt" IApXaXRoIC90bXAgbW91bnRlZCB2aWEgbmZzCgp0cnVzcyAuL2FyZWNhLWNsaSAKX19zeXNj dGwoMHg3ZmZmZmZmZmU2MTAsMHgyLDB4NjUxNmM4LDB4N2ZmZmZmZmZlNjA4LDB4MCwweDAp ID0gMCAoMHgwKQpyZWFkbGluaygiL2V0Yy9tYWxsb2MuY29uZiIsMHg3ZmZmZmZmZmU2MzAs MTAyNCkgRVJSIzIgJ05vIHN1Y2ggZmlsZSBvciBkaXJlY3RvcnknCmlzc2V0dWdpZCgweDUw YmFkZiwweDdmZmZmZmZmZTYzMCwweGZmZmZmZmZmZmZmZmZmZmYsMHgwLDB4MCwweDApID0g MCAoMHgwKQpicmVhaygweDcwMDAwMCkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgPSAwICgweDApCl9fc3lzY3RsKDB4N2ZmZmZmZmZlOGYwLDB4MiwweDdmZmZmZmZmZTkw YywweDdmZmZmZmZmZTkwMCwweDAsMHgwKSA9IDAgKDB4MCkKbW1hcCgweDAsMTA0ODU3NixQ Uk9UX1JFQUR8UFJPVF9XUklURSxNQVBfUFJJVkFURXxNQVBfQU5PTiwtMSwweDApID0gMzQz NjYwOTUzNjAgKDB4ODAwNjEwMDAwKQptbWFwKDB4ODAwNzEwMDAwLDk4MzA0MCxQUk9UX1JF QUR8UFJPVF9XUklURSxNQVBfUFJJVkFURXxNQVBfQU5PTiwtMSwweDApID0gMzQzNjcxNDM5 MzYgKDB4ODAwNzEwMDAwKQptdW5tYXAoMHg4MDA2MTAwMDAsOTgzMDQwKSAgICAgICAgICAg ICAgICAgICAgICAgPSAwICgweDApCnN5c2FyY2goMHg4MSwweDdmZmZmZmZmZWFmMCwweDAs MHgwLDB4MTAsMHg4MDA3MDAwNjgpID0gMCAoMHgwKQpnZXRwaWQoKSAgICAg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jdGlvbigzMix7IDB4NGI1MWYwIFNBX1JFU1RBUlR8U0FfU0lHSU5GTyBzc190IH0sMHgw KSA9IDAgKDB4MCkKc2lncHJvY21hc2soU0lHX1NFVE1BU0ssMHgwLDB4MCkgICAgICAgICAg ICAgICAgID0gMCAoMHgwKQpfX3N5c2N0bCgweDdmZmZmZmZmZWFjMCwweDIsMHg2NTE4ZTAs MHg3ZmZmZmZmZmVhYjgsMHgwLDB4MCkgPSAwICgweDApCnVubGluaygiL2Rldi9hcmNtc3Iw IikgICAgICAgICAgICAgICAgICAgICAgICAgICA9IDAgKDB4MCkKdW5saW5rKCIvZGV2L2Fy Y21zcjEiKSAgICAgICAgICAgICAgICAgICAgICAgICAgIEVSUiMyICdObyBzdWNoIGZpbGUg b3IgZGlyZWN0b3J5Jwp1bmxpbmsoIi9kZXYvYXJjbXNyMiIpICAgICAgICAgICAgICAgICAg ICAgICAgICAgRVJSIzIgJ05vIHN1Y2ggZmlsZSBvciBkaXJlY3RvcnknCnVubGluaygiL2Rl di9hcmNtc3IzIikgICAgICAgICAgICAgICAgICAgICAgICAgICBFUlIjMiAnTm8gc3VjaCBm aWxlIG9yIGRpcmVjdG9yeScKbWtub2QoIi9kZXYvYXJjbXNyMCIsMDIwNjY2LC02MzY4KSAg ICAgICAgICAgICAgID0gMCAoMHgwKQpvcGVuKCIvZGV2L2FyY21zcjAiLE9fUkRXUiwwMCkg ICAgICAgICAgICAgICAgICAgPSAzICgweDMpCmlvY3RsKDMsMHhjNDI0NGUwNiB7IElPUlcg MHg0ZSgnTicpLCA2LCAxMDYwIH0sMHhmZmZmZTNlMCkgPSAwICgweDApCm9wZW4oIi90bXAv YXJjbXNyMCIsT19SRFdSfE9fQ1JFQVQsMDApICAgICAgICAgICA9IDQgKDB4NCkKZ2V0cGlk KCkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID0gODUzICgweDM1 NSkKZmNudGwoNCxGX1NFVExLVywweDdmZmZmZmZjZGUxMCkgIC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wICgweDApCm5hbm9zbGVlcCh7MC4w MTAwMDAwMDAgfSkgICAgICAgICAgICAgICAgICAgICAgICA9IDAgKDB4MCkKaW9jdGwoMyww eGM0MjQ0ZTAxIHsgSU9SVyAweDRlKCdOJyksIDEsIDEwNjAgfSwweGZmZmNkOWYwKSA9IDAg KDB4MCkKbmFub3NsZWVwKHswLjAxMDAwMDAwMCB9KSAgICAgICAgICAgICAgICAgICAgICAg ID0gMCAoMHgwKQppb2N0bCgzLDB4YzQyNDRlMDEgeyBJT1JXIDB4NGUoJ04nKSwgMSwgMTA2 MCB9LDB4ZmZmY2Q5ZjApID0gMCAoMHgwKQpuYW5vc2xlZXAoezAuMDEwMDAwMDAwIH0pICAg ICAgICAgICAgICAgICAgICAgICAgPSAwICgweDApCmlvY3RsKDMsMHhjNDI0NGUwMSB7IElP UlcgMHg0ZSgnTicpLCAxLCAxMDYwIH0sMHhmZmZjZDlmMCkgPSAwICgweDApCm5hbm9zbGVl cCh7MC4wMTAwMDAwMDAgfSkgICAgICAgICAgICAgICAgICAgICAgICA9IDAgKDB4MCkKaW9j dGwoMywweGM0MjQ0ZTAxIHsgSU9SVyAweDRlKCdOJyksIDEsIDEwNjAgfSwweGZmZmNkOWYw KSA9IDAgKDB4MCkKbmFub3NsZWVwKHswLjAxMDAwMDAwMCB9KSAgICAgICAgICAgICAgICAg ICAgICAgID0gMCAoMHgwKQppb2N0bCgzLDB4YzQyNDRlMDEgeyBJT1JXIDB4NGUoJ04nKSwg MSwgMTA2MCB9LDB4ZmZmY2Q5ZjApID0gMCAoMHgwKQoK --------------080905040206050304040305--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54F62D81.4060407>