有關於LVM的問題 - Linux

By Noah
at 2010-10-25T20:15
at 2010-10-25T20:15
Table of Contents
各位前輩好呀,我的問題如下,我貼執行的結果好了:
==============================================================================
[root@localhost ~]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1305 10377990 8e Linux LVM
================================================================================
[root@localhost ~]# df -ah
檔案系統 容量 已用 可用 已用% 掛載點
/dev/mapper/VolGroup00-LogVol00
7.7G 4.0G 3.4G 55% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 506M 0 506M 0% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs
=============================================================================
[root@localhost ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 9.90 GB / not usable 22.76 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 316
Free PE 0
Allocated PE 316
PV UUID syVtvm-lZei-kHjK-NO2J-wKSh-WjAd-7sGHk2
=============================================================================
[root@localhost ~]# vgdisplay
--- Volume group ---
VG Name VolGroup00
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.88 GB
PE Size 32.00 MB
Total PE 316
Alloc PE / Size 316 / 9.88 GB
Free PE / Size 0 / 0
VG UUID cqxmKn-sNZn-jZ3j-1vFn-3lVv-YOnt-7pgCnB
==================================================================================
[root@localhost ~]# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID I8tXmN-qja1-NX5a-NXe2-wiC4-hLPu-zwPl1i
LV Write Access read/write
LV Status available
# open 1
LV Size 7.88 GB
Current LE 252
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID hRdByr-9Mt3-JV3D-L0hB-0orA-h1NE-kbwg90
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 64
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
=========================================================================================
[root@localhost ~]# lvremove -f VolGroup00/LogVol01
Can't remove open logical volume "LogVol01"
===================================================================================
[root@localhost ~]# mkfs -t ext3 /dev/VolGroup00/LogVol01
mke2fs 1.39 (29-May-2006)
/dev/VolGroup00/LogVol01 is mounted; will not make a filesystem here!
##到底是誰mount了他呢?
=======================================================================
[root@localhost ~]# umount /dev/VolGroup00/LogVol01
umount: /dev/VolGroup00/LogVol01: not mounted
又說沒mount.....XD..
========================================================================
抱歉貼了一堆,我要問的是LogVol01到底在哪?我想要把他合併到LogVol00,要怎麼做呢?
謝謝
^_^
--
==============================================================================
[root@localhost ~]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1305 10377990 8e Linux LVM
================================================================================
[root@localhost ~]# df -ah
檔案系統 容量 已用 可用 已用% 掛載點
/dev/mapper/VolGroup00-LogVol00
7.7G 4.0G 3.4G 55% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 506M 0 506M 0% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs
=============================================================================
[root@localhost ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 9.90 GB / not usable 22.76 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 316
Free PE 0
Allocated PE 316
PV UUID syVtvm-lZei-kHjK-NO2J-wKSh-WjAd-7sGHk2
=============================================================================
[root@localhost ~]# vgdisplay
--- Volume group ---
VG Name VolGroup00
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.88 GB
PE Size 32.00 MB
Total PE 316
Alloc PE / Size 316 / 9.88 GB
Free PE / Size 0 / 0
VG UUID cqxmKn-sNZn-jZ3j-1vFn-3lVv-YOnt-7pgCnB
==================================================================================
[root@localhost ~]# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID I8tXmN-qja1-NX5a-NXe2-wiC4-hLPu-zwPl1i
LV Write Access read/write
LV Status available
# open 1
LV Size 7.88 GB
Current LE 252
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID hRdByr-9Mt3-JV3D-L0hB-0orA-h1NE-kbwg90
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 64
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
=========================================================================================
[root@localhost ~]# lvremove -f VolGroup00/LogVol01
Can't remove open logical volume "LogVol01"
===================================================================================
[root@localhost ~]# mkfs -t ext3 /dev/VolGroup00/LogVol01
mke2fs 1.39 (29-May-2006)
/dev/VolGroup00/LogVol01 is mounted; will not make a filesystem here!
##到底是誰mount了他呢?
=======================================================================
[root@localhost ~]# umount /dev/VolGroup00/LogVol01
umount: /dev/VolGroup00/LogVol01: not mounted
又說沒mount.....XD..
========================================================================
抱歉貼了一堆,我要問的是LogVol01到底在哪?我想要把他合併到LogVol00,要怎麼做呢?
謝謝
^_^
--
Tags:
Linux
All Comments

By Ida
at 2010-10-26T19:21
at 2010-10-26T19:21

By Blanche
at 2010-10-27T22:10
at 2010-10-27T22:10

By Jacky
at 2010-10-29T03:41
at 2010-10-29T03:41

By Hedy
at 2010-11-01T00:58
at 2010-11-01T00:58

By Heather
at 2010-11-02T14:52
at 2010-11-02T14:52

By Dorothy
at 2010-11-06T00:17
at 2010-11-06T00:17

By Connor
at 2010-11-09T07:50
at 2010-11-09T07:50

By Ursula
at 2010-11-11T21:31
at 2010-11-11T21:31

By Zora
at 2010-11-12T14:17
at 2010-11-12T14:17

By Hedy
at 2010-11-15T03:03
at 2010-11-15T03:03

By Megan
at 2010-11-17T19:45
at 2010-11-17T19:45

By Ingrid
at 2010-11-22T15:42
at 2010-11-22T15:42

By Genevieve
at 2010-11-23T03:48
at 2010-11-23T03:48

By Carolina Franco
at 2010-11-26T06:07
at 2010-11-26T06:07

By Skylar Davis
at 2010-11-28T12:50
at 2010-11-28T12:50

By Queena
at 2010-11-29T00:26
at 2010-11-29T00:26
Related Posts
share library 如何讓process共用

By Emily
at 2010-10-25T17:24
at 2010-10-25T17:24
如何讓X11端的剪貼簿跟本地端共用

By Ula
at 2010-10-25T16:00
at 2010-10-25T16:00
Ubuntu網路設定問題

By Gary
at 2010-10-25T15:12
at 2010-10-25T15:12
solaris bash PS1問題 和 passwd腳本問題

By Charlie
at 2010-10-25T15:00
at 2010-10-25T15:00
Ubuntu Netbook 10.04優於10.10

By James
at 2010-10-25T02:48
at 2010-10-25T02:48