Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam,
Mam macierz 16TB na backupy, na której ostatnio zaczęło kończyć się miejsce sformatowaną w ext4:
# tune2fs -l /dev/Storage02/VMs tune2fs 1.42.5 (29-Jul-2012) Filesystem volume name: <none> Last mounted on: /mnt/host02-VMs02 Filesystem UUID: fa431cec-1e29-44ff-9edb-1c7d8dd85660 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Filesystem flags: signed_directory_hash Default mount options: user_xattr acl Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 274659328 Block count: 4394528768 Reserved block count: 219726438 Free blocks: 4377009140 Free inodes: 274659317 First block: 0 Block size: 4096 Fragment size: 4096 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 2048 Inode blocks per group: 128 Flex block group size: 16 Filesystem created: Thu May 14 13:22:09 2015 Last mount time: Thu May 14 13:23:33 2015 Last write time: Thu May 14 13:23:33 2015 Mount count: 1 Maximum mount count: -1 Last checked: Thu May 14 13:22:09 2015 Check interval: 0 (<none>) Lifetime writes: 161 MB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 256 Required extra isize: 28 Desired extra isize: 28 Journal inode: 8 Default directory hash: half_md4 Directory Hash Seed: 9ac9a862-c279-408c-a0c7-6cdbc84531d9 Journal backup: inode blocks
Backupów przybywa, nadeszła potrzeba rozszerzenia o kolejne 3TB. Dyski dołożone, macierz przebudowana, jednak resize2fs mówi:
# resize2fs /dev/Storage02/VMs resize2fs 1.42.5 (29-Jul-2012) resize2fs: /dev/Storage02/VMs: Kombinacja cech flex_bg i !resize_inode nie jest obsługiwana przez resize2fs.
Jakieś pomysły?
Pozdrawiam
Offline
2085
Ostatnio edytowany przez uzytkownikubunt (2016-12-01 01:21:02)
Offline
Ok, poradziłem sobie inaczej:
Skompilowałem aktualne e2fsprogs (wersja 1.42.13) i od kopa ruszyło:
root@host02:~/tmp/e2fsprogs-1.42.13/resize# ./resize2fs /dev/Storage02/VMs resize2fs 1.42.13 (17-May-2015) System plików /dev/Storage02/VMs jest zamontowany pod /mnt/host02-VMs02; wymagana zmiana rozmiaru w locie old_desc_blocks = 2096, new_desc_blocks = 2445 The filesystem on /dev/Storage02/VMs is now 5126950912 (4k) blocks long. root@host02:~/tmp/e2fsprogs-1.42.13/resize# df -h /mnt/host02-VMs02 System plików rozm. użyte dost. %uż. zamont. na /dev/mapper/Storage02-VMs 20T 14T 5,2T 74% /mnt/host02-VMs02 root@host02:~/tmp/e2fsprogs-1.42.13/resize#
Offline
Time (s) | Query |
---|---|
0.00021 | SET CHARSET latin2 |
0.00008 | SET NAMES latin2 |
0.00300 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.118.193.223' WHERE u.id=1 |
0.00376 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.118.193.223', 1732578929) |
0.00068 | SELECT * FROM punbb_online WHERE logged<1732578629 |
0.00719 | DELETE FROM punbb_online WHERE ident='18.217.161.27' |
0.00106 | DELETE FROM punbb_online WHERE ident='185.191.171.4' |
0.00112 | DELETE FROM punbb_online WHERE ident='3.129.216.15' |
0.00147 | SELECT topic_id FROM punbb_posts WHERE id=289130 |
0.00669 | SELECT id FROM punbb_posts WHERE topic_id=27580 ORDER BY posted |
0.01054 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=27580 AND t.moved_to IS NULL |
0.00018 | SELECT search_for, replace_with FROM punbb_censoring |
0.00304 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=27580 ORDER BY p.id LIMIT 0,25 |
0.00242 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=27580 |
Total query time: 0.04144 s |