Openvz - Failed to mount image: Error in e2fsck (fsutils.c:315): e2fsck failed (exit code 4)


Материал из Wiki - Iphoster - 'the best ever hosting and support

Перейти к: навигация, поиск

Доступная цена


Failed to mount image: Error in e2fsck (fsutils.c:315): e2fsck failed (exit code 4)

При перезапуске контейнера может возникнуть ошибка:

# vzctl start 2785
Starting container...
Opening delta /vz/private/2785/root.hdd/root.hdd
Adding delta dev=/dev/ploop56550 img=/vz/private/2785/root.hdd/root.hdd (rw)
/dev/ploop56550p1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
Error in e2fsck (fsutils.c:315): e2fsck failed (exit code 4)
Failed to mount image: Error in e2fsck (fsutils.c:315): e2fsck failed (exit code 4)
[41]


Ошибка может означать что разделы диска контейнера смонтированы в read-only режим


Решаем:

# ploop check -F /vz/private/2785/root.hdd/root.hdd
Reopen rw /vz/private/2785/root.hdd/root.hdd
# ploop mount /vz/private/2785/root.hdd/DiskDescriptor.xml
Opening delta /vz/private/2785/root.hdd/root.hdd
Adding delta dev=/dev/ploop56550 img=/vz/private/2785/root.hdd/root.hdd (rw)
# fdisk -l /dev/ploop56550 
WARNING: GPT (GUID Partition Table) detected on '/dev/ploop56550'! The util fdisk doesn't support GPT. Use GNU Parted.   
Disk /dev/ploop56550: 42.9 GB, 42949672960 bytes 255 heads, 63 sectors/track, 5221 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 524288 bytes / 1048576 bytes Disk identifier: 0x00000000
Device Boot Start End Blocks Id System /dev/ploop56550p1 1 5222 41943039+ ee GPT Partition 1 does not start on physical sector boundary. # e2fsck /dev/ploop56550p1 e2fsck 1.41.12 (17-May-2010) /dev/ploop56550p1 contains a file system with errors, check forced. Pass 1: Checking inodes, blocks, and sizes Inodes that were part of a corrupted orphan linked list found. Fix<y>? yes
Inode 1058527 was part of the orphaned inode list. FIXED. Inode 1058528 was part of the orphaned inode list. FIXED. Inode 1058529 was part of the orphaned inode list. FIXED. Inode 1058530 was part of the orphaned inode list. FIXED. Inode 1443173 was part of the orphaned inode list. FIXED. Inode 1443174 was part of the orphaned inode list. FIXED. Inode 1443198, i_blocks is 0, should be 8. Fix<y>? yes
Inode 1443538, i_blocks is 1904, should be 1912. Fix<y>? yes
Running additional passes to resolve blocks claimed by more than one inode... Pass 1B: Rescanning for multiply-claimed blocks Multiply-claimed block(s) in inode 262229: 1461248 Multiply-claimed block(s) in inode 299348: 1461248 1461250 Multiply-claimed block(s) in inode 304547: 2206283 Multiply-claimed block(s) in inode 308969: 2206283 Multiply-claimed block(s) in inode 1058536: 1461250 Multiply-claimed block(s) in inode 1443538: 3874121 Multiply-claimed block(s) in inode 1443585: 3874121 Pass 1C: Scanning directories for inodes with multiply-claimed blocks Pass 1D: Reconciling multiply-claimed blocks (There are 7 inodes containing multiply-claimed blocks.)
File /home/admin/conf/dns/file002.ru.db (inode #262229, mod time Wed Dec 30 19:45:38 2015) has 1 multiply-claimed block(s), shared with 1 file(s): /home/admin/web/abff.ru/public_html/fcash/news/1/4/1550.inc (inode #299348, mod time Wed Dec 30 16:56:37 2015) Clone multiply-claimed blocks<y>? yes
File /home/admin/web/abff.ru/public_html/fcash/news/1/4/1550.inc (inode #299348, mod time Wed Dec 30 16:56:37 2015) has 2 multiply-claimed block(s), shared with 2 file(s): /tmp/sess_ials35h63gmk9bg4ubfhdgdns0 (inode #1058536, mod time Wed Dec 30 19:46:22 2015) /home/admin/conf/dns/file002.ru.db (inode #262229, mod time Wed Dec 30 19:45:38 2015) Clone multiply-claimed blocks<y>? yes
File /home/admin/web/abff.ru/public_html/fcash/news/2/8/8707.inc (inode #304547, mod time Wed Dec 30 16:54:57 2015) has 1 multiply-claimed block(s), shared with 1 file(s): /home/admin/web/abff.ru/public_html/fcash/news/1/10/4504.inc (inode #308969, mod time Thu Dec 31 00:25:15 2015) Clone multiply-claimed blocks<y>? yes
File /home/admin/web/abff.ru/public_html/fcash/news/1/10/4504.inc (inode #308969, mod time Thu Dec 31 00:25:15 2015) has 1 multiply-claimed block(s), shared with 1 file(s): /home/admin/web/abff.ru/public_html/fcash/news/2/8/8707.inc (inode #304547, mod time Wed Dec 30 16:54:57 2015) Multiply-claimed blocks already reassigned or cloned.
File /tmp/sess_ials35h63gmk9bg4ubfhdgdns0 (inode #1058536, mod time Wed Dec 30 19:46:22 2015) has 1 multiply-claimed block(s), shared with 1 file(s): /home/admin/web/abff.ru/public_html/fcash/news/1/4/1550.inc (inode #299348, mod time Wed Dec 30 16:56:37 2015) Multiply-claimed blocks already reassigned or cloned.
File /var/log/exim/reject.log (inode #1443538, mod time Thu Dec 31 07:54:14 2015) has 1 multiply-claimed block(s), shared with 1 file(s): /var/log/exim/main.log (inode #1443585, mod time Thu Dec 31 07:54:14 2015) Clone multiply-claimed blocks<y>? yes
File /var/log/exim/main.log (inode #1443585, mod time Thu Dec 31 07:54:14 2015) has 1 multiply-claimed block(s), shared with 1 file(s): /var/log/exim/reject.log (inode #1443538, mod time Thu Dec 31 07:54:14 2015) Multiply-claimed blocks already reassigned or cloned.
Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Block bitmap differences: -(1341028--1341030) -(1358141--1358144) +(1361347--1361349) +(1361384--1361390) -(1383890- -1383892) -(1387810--1387813) -(1387880--1387882) -(1389634--1389637) -(1391612--1391614) -(1393858--1393861) -(1394164--1394167) +(1422768--1422771) +(1422811--1422818) +(1422828--1422830) -(1426006--1426009) -(1426119--1426128) -(1429250--1429254) -(1433658--1433660) +(1455135--1455137) +(1455142--1455152) +(1455173--1455176) +(1455187--1455190) +(1455193--1455196) +(1455218--1455220) +(1455222--1455230) +(1455241--1455243) +(1455253--1455256) +(1455267--1455270) +(1455273--1455285) +1461249 +(1461252--1461254) +(1461273--1461282) +(1461313--1461315) +(1461359--1461368) +(1461418--1461420) +(1461433--1461439) +(1461456--1461459) -(1509046--1509049) -(1509519--1509521) -(1540211--1540219) -(1559179--1559182) -(1570347--1570349) -(1798863--1798866) -(1809724--1809731) -(1819808--1819811) -(1825594--1825596) +(2206280--2206282) +(2206318--2206326) +(2206357--2206360) +(2206364--2206368) +(2239393--2239395) +(2239421--2239428) +(2239466--2239472) -(2860177--2860179) -(5824454--5824457) -(7174340--7174342) -(7188081--7188084) -(7196334--7196337) +(7222808--7222811) -(7241254--7241257) -(7261315--7261317) -(7277862--7277864) -(7277879--7277881) -(7286366--7286369) -(7295648--7295650) -(7325607--7325610) -(7379623--7379626) -(7379941--7379944) -(7380535--7380538) -(7385540--7385543) +(7425542--7425545) -(7425878--7425880) -(7427012--7427014) -(7481249--7481251) -(7518869--7518871) -(7519682--7519685) -(7520007--7520009) -(7523373--7523376) Fix<y>? yes
Free blocks count wrong for group #0 (23513, counted=23509). Fix<y>? yes
Free blocks count wrong for group #40 (4549, counted=4552). Fix<y>? yes
Free blocks count wrong for group #41 (28996, counted=28990). Fix<y>? yes
Free blocks count wrong for group #42 (29550, counted=29575). Fix<y>? yes
Free blocks count wrong for group #43 (29583, counted=29590). Fix<y>? yes
Free inodes count wrong for group #128 (0, counted=1). Fix<y>? yes
Free inodes count wrong for group #129 (6420, counted=6424). Fix<y>? yes
Free inodes count wrong for group #176 (5957, counted=5959). Fix<y>? yes
Free inodes count wrong (2517609, counted=2517616). Fix<y>? yes /dev/ploop56550p1: ***** FILE SYSTEM WAS MODIFIED ***** /dev/ploop56550p1: 103824/2621440 files (2.5% non-contiguous), 5296692/10485248 blocks


Запускаем контейнер - убеждаемся что все работает:

# vzctl start 2785
Starting container...
Unmounting device /dev/ploop56550
Opening delta /vz/private/2785/root.hdd/root.hdd
Adding delta dev=/dev/ploop56550 img=/vz/private/2785/root.hdd/root.hdd (rw)
Mounting /dev/ploop56550p1 at /vz/root/2785 fstype=ext4 data='balloon_ino=12,'
Container is mounted
Adding IP address(es): 6.11.66.138
Setting CPU limit: 400
Setting CPU units: 1000
Setting CPUs: 1
Container start in progress...
Индекс цитирования