Похожие чаты

Have go server with regular folder that stores the db everything

works fine

but if i serve the same dir contents out of a nfs mounted directory (vers=3), it hangs on startup
these are strace's last words:
fstat(3, {st_mode=S_IFREG|0644, st_size=56111104, ...}) = 0
newfstatat(AT_FDCWD, "/home/user/dev/server/data.db", {st_mode=S_IFREG|0644, st_size=56111104, ...}, 0) = 0
pread64(3, "SQLite format 3\0\20\0\2\2\f@  \0\0\22n\0\0005\203"..., 100, 0) = 100
fcntl(3, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}
data.db is sqlite

any clue?

5 ответов

20 просмотров

what are the flags used to open the database?

While the NLM protocol has fields in its lock requests to uniquely identify the process on the client that locked the file, the NFS protocol has no fields to identify the processes that are doing writes or reads. The file is advisory locked, and it has the mandatory lock permissions set, yet the NFS server has no way of knowing if the process that sent the write request is the same one that obtained the lock. Thus, the NFS server cannot lock the file on behalf of the NFS client. For this reason, some NFS servers, including Solaris servers, refuse any read or write to a file with the mandatory lock permissions set. docstore.mik.ua/orelly/networking_2ndEd/nfs/ch11_02.htm

Thomas
While the NLM protocol has fields in its lock requ...

https://datatracker.ietf.org/doc/rfc3530/ for reference

I mean SQLite + NFS sounds pretty cursed already

anonimikmak- Автор вопроса
Thomas
I mean SQLite + NFS sounds pretty cursed already

yea i don't do that eventually ill keep the db on the machine, storage on nfs

Похожие вопросы

Обсуждают сегодня

Какой-то там пердун в 90-х решил, что есть какая-то разная типизация. Кого вообще это волнует?
КТ315
49
Hi. Do we have a raid bot? Why nobody doing raids on X? Even RH mentioned this and nobody paying attention...whats the channel for hex memes? If mods cant run raids just insta...
H
31
Подскажите, а есть vault lite или ченить такое?) А то нужен вольт для похода в вольт, но весит он ~500 мб) как-то многовато для парочки запросов ))
Alexandr Orloff
17
блеать, почему так?? где в роутере это исправляется?
Арсен Маньяков 🇦🇲
16
void terminal_scroll() { memmove(terminal_buffer, terminal_buffer + VGA_WIDTH, buffer_size - VGA_WIDTH); memset(terminal_buffer + buffer_size - VGA_WIDTH, 0, VGA_WIDTH); ...
Егор
47
🌊 Ocean Nodes Dashboard Update 🚀 Hey, Oceaners! First off, a massive round of applause 👏to all of you for the amazing engagement since we launched Ocean Nodes. In just a few ...
KreigDK | Never DM first🌊
3
Всем привет! Подскажите, пожалуйста, в чем ошибка? Настраиваю подключение к MySQL. Либы лежат рядом с exe. Все как по "учебнику"
Евгений
16
А можете как-то проверить меня по знаниям по ассемблеру?
A A
132
Здравствуйте! У меня появилась возможность купить книгу "Изучай Haskell во имя добра!". Но я где-то слышал, что эта книга устарела. Насколько это правда??
E
22
люди, которые используют flameshot, к вам вопрос. Можно-ли поставить хоткей на создание скриншота? В программе есть отдел "горячие клавиши", но там все для редактирования, скр...
ThunDer104
11
Карта сайта