אני עובד על מחשב HTPC, ואני מתאר לעצמי שבעתיד המאגר של המדיה יגדל ואני אצטרך להוסיף כוננים קשיחים, לכן אני עובד עם LVM.
יש לי VG בשם htpc, ובתוכה יש חמש LV, כמו שמתואר ב how-to של LVM, חמשת ה LV מעוגנים ב
קוד: |
/usr
/home
/etc
/tmp
/var |
ה LV שמעוגן ב /home הוא 10GB, מכיוון שרציתי להקטין אותו באמצעות lvreduce ל 5GB (ואז ליצור LV גדול שמיועד לסרטים מוזיקה וכו'), יצרתי snapshot על מנת לא לאבד את המידע שבLV הנ"ל.
לאחר יצירת ה snapshot, כנראה שביצעתי משהו לא נכון, וגרמתי לכך שה snapshot היא inactive וגם ה original LV היא inactive.
ניסיתי לבצע lvremove לשני ה snapshots שיצרתי (את השני עשיתי שוב פעם בטעות... טעות של ניובי
) אבל משום מה זה לא עבד...\=
איך אני יכול להיפטר משני ה snapshots האלה, להחזיר את הLV המקורי לפעולה, ופשוט להגדיל את ה /home וזהו (או שאני אנסה שוב ביתר זהירות הפעם
)
בכל מקרה, אני מצרף קצת פלט שבתקווה רבה יוכל לעזור:
קוד: |
HTPC root # lvdisplay /dev/htpc/home
--- Logical volume ---
LV Name /dev/htpc/home
VG Name htpc
LV UUID qUOZ8A-7eO4-PfUU-3a4p-cu4y-dySY-gH5lOl
LV Write Access read/write
LV snapshot status source of
/dev/htpc/backuphome [INACTIVE]
LV Status NOT available
LV Size 40.00 GB
Current LE 10240
Segments 3
Allocation next free (default)
Read ahead sectors 0
HTPC root # dmsetup ls
htpc-opt (254, 4)
htpc-home-real (254, 2)
htpc-backuphome-cow (254, 1)
htpc-tmp (254, 6)
htpc-backuphome (254, 3)
htpc-usr (254, 0)
htpc-var (254, 5)
HTPC root # vgdisplay
--- Volume group ---
VG Name htpc
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 12
VG Access read/write
VG Status resizable
MAX LV 255
Cur LV 6
Open LV 4
Max PV 255
Cur PV 1
Act PV 1
VG Size 72.54 GB
PE Size 4.00 MB
Total PE 18569
Alloc PE / Size 18080 / 70.62 GB
Free PE / Size 489 / 1.91 GB
VG UUID
EgJjW-IfGM-W0Uy-AcEU-3iZg-qMep-Asg1J
HTPC root # lvscan
ACTIVE '/dev/htpc/usr' [10.00 GB] next free (default)
inactive Original '/dev/htpc/home' [40.00 GB] next free (default)
ACTIVE '/dev/htpc/opt' [5.00 GB] next free (default)
ACTIVE '/dev/htpc/var' [10.00 GB] next free (default)
ACTIVE '/dev/htpc/tmp' [5.00 GB] next free (default)
ACTIVE Snapshot '/dev/htpc/backuphome' [640.00 MB] next free (default)
HTPC root # pvs
PV VG Fmt Attr PSize PFree
/dev/hda4 htpc lvm2 a- 72.54G 1.91G
e
|