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,
Wszystkim się podoba i tak go chwalą więc usiadłem. Zainstalowałem sobie środowisko testowe , zrobiłem dwie partycje
pvdisplay --- Physical volume --- PV Name /dev/sda5 VG Name di PV Size 9,76 GiB / not usable 2,00 MiB Allocatable yes (but full) PE Size 4,00 MiB Total PE 2498 Free PE 0 Allocated PE 2498 PV UUID
dołączyłem dodatkowy dysk o pojemności 10GB i chcę zrobić snapshot
http://www.tutonics.com/2012/12/lvm-guide-part-2-snapshots.html
Wygląda że to prosta sprawa a mi wywala cały czas
lvcreate --size 9,31G -s -n backup /dev/mapper/di-root Rounding up size to full physical extent 9,31 GiB Volume group "di" has insufficient free space (0 extents): 2384 required.
Offline
Proszę
lvscan ACTIVE '/dev/di/root' [9,31 GiB] inherit ACTIVE '/dev/di/swap_1' [460,00 MiB] inherit lvdisplay --- Logical volume --- LV Path /dev/di/root LV Name root VG Name di LV UUID ASiyE1-SpnO-XPUa-xA2P-JE1T-TcSz-xkZdNl LV Write Access read/write LV Creation host, time di, 2014-09-19 14:35:35 +0200 LV Status available # open 1 LV Size 9,31 GiB Current LE 2383 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:0 --- Logical volume --- LV Path /dev/di/swap_1 LV Name swap_1 VG Name di LV UUID LOiCJ3-NP0t-acOv-IMZo-ToMZ-Beyz-qLkdFh LV Write Access read/write LV Creation host, time di, 2014-09-19 14:35:35 +0200 LV Status available # open 2 LV Size 460,00 MiB Current LE 115 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:1 pvscan PV /dev/sda5 VG di lvm2 [9,76 GiB / 0 free] Total: 1 [9,76 GiB] / in use: 1 [9,76 GiB] / in no VG: 0 [0 ] pvdisplay --- Physical volume --- PV Name /dev/sda5 VG Name di PV Size 9,76 GiB / not usable 2,00 MiB Allocatable yes (but full) PE Size 4,00 MiB Total PE 2498 Free PE 0 Allocated PE 2498 PV UUID vy7cgs-qgGB-Jkjn-2rZa-aN25-2ylL-Cn2wgg vgscan Reading all physical volumes. This may take a while... Found volume group "di" using metadata type lvm2 vgdisplay --- Volume group --- VG Name di System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 1 Act PV 1 VG Size 9,76 GiB PE Size 4,00 MiB Total PE 2498 Alloc PE / Size 2498 / 9,76 GiB Free PE / Size 0 / 0 VG UUID fByQFv-0ON3-RMuB-0cVE-XqdQ-vLt5-kCImkU lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 10G 0 disk sda1 8:1 0 243M 0 part /boot sda2 8:2 0 1K 0 part sda5 8:5 0 9,8G 0 part di-root (dm-0) 254:0 0 9,3G 0 lvm / di-swap_1 (dm-1) 254:1 0 460M 0 lvm [SWAP] sdb 8:16 0 8G 0 disk sr0 11:0 1 1024M 0 rom
___
oki dobra nie dodałem sdb do grupy DI. Jak to zrobiłem , snapshot się wykonał
Offline
A tak ładnie błąd podał że nie ma gdzie zrobić tej migawki ;)
SWAP to raczej na fizycznym urządzeniu. A do czasu utrwalenia jak to jest z LVM to polecam zawsze posiadać jakiś piktogram pod ręką np. taki (losowo wybrany)
[img]http://polach.cc/wp-content/uploads/2010/09/lvm_schema.jpg[/img]
Offline
Time (s) | Query |
---|---|
0.00012 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00116 | 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='3.144.89.152' WHERE u.id=1 |
0.00148 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.144.89.152', 1732819514) |
0.00056 | SELECT * FROM punbb_online WHERE logged<1732819214 |
0.00040 | SELECT topic_id FROM punbb_posts WHERE id=276931 |
0.00011 | SELECT id FROM punbb_posts WHERE topic_id=26499 ORDER BY posted |
0.00042 | 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=26499 AND t.moved_to IS NULL |
0.00020 | SELECT search_for, replace_with FROM punbb_censoring |
0.00123 | 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=26499 ORDER BY p.id LIMIT 0,25 |
0.00088 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=26499 |
Total query time: 0.0066 s |