Отключение питания с подключенным несистемным томом ext4 для чтения и записи

Vaya al sitio de descarga de postgresql y seleccione la versión de postgresql deseada y su distribución y arquitectura (En este caso, 9.4, CentOS 7 y x86 _64, respectivamente ). Luego aparece un comando que debe ejecutar para instalar postgresql94:

yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm

En la declaración anterior, cambie install a reinstally ejecútelo:

yum reinstall https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm   

Entonces podrá ejecutar con éxito:
yum install postgresql94

1
15.07.2019, 21:19
1 ответ

Is it safe to cut off the power, if I assume that the volume isn't being written to at the moment and there's no stdout/stderr redirection? // If there is stdout/stderr redirection (to a file on the rw partition) on an open process, does that mean that the file is kept open as long as the process is running?

Вы ошибаетесь в том, как Linux обрабатывает ожидающие буферы. Это вообще не связано с открытыми файлами. Буферы могут быть ожидающими, когда процесс, который их создал, давно завершен. Единственный способ убедиться, что все данные находятся на носителе, — размонтировать или перемонтировать только для чтения -файловую систему.

Will shutting off power result in a system integrity check upon reboot?

Файловая система, неправильно размонтированная/перемонтированная только для чтения -, будет обнаружена как грязная при следующем монтировании. Так как это ext4, возможен монтаж такой грязной файловой системы — тогда драйвер прилипнет к журналу. Последние изменения перед отключением питания -теряются.

2
27.01.2020, 23:30

Теги

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