Quote:
Originally Posted by linuxlover.chaitanya
As I said before, please use Code tags so that it is easier for members to read the computer output.
|
Fdisk -l
Here is my fdisk -l output here attached 2 harddisk i use /dev/sdb which size is 200GB.i create LVM on this disk and i use debian squeez
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002152b
Device Boot Start End Blocks Id System
/dev/sda1 1 499 4002816 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 499 30402 240193537 5 Extended
/dev/sda5 499 30402 240193536 83 Linux
Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00029984
Device Boot Start End Blocks Id System
/dev/sdb1 1 13055 104864256 8e Linux LVM
/dev/sdb2 13056 19583 52436160 8e Linux LVM
Disk /dev/dm-0: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 43.0 GB, 42974838784 bytes
255 heads, 63 sectors/track, 5224 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
hera is my clear output of Vgdisplay
Vgdisplay
VG Name "xen-vol"
System "ID"
Format "lvm2"
Metadata Areas 2
Metadata Sequence No 8
VG Access "read/write"
VG Status "resizable"
MAX LV "0"
Cur LV "2"
Open LV "2"
Max PV "0"
Cur PV "2"
Act PV "2"
VG Size "150.01 GiB"
PE Size "4.00 MiB"
Total PE "38402"
Alloc PE / Size "10502 / 41.02 GiB"
Free PE / Size "27900 / 108.98 GiB"
VG UUID fbfxhr-x3l3-EJCj-gwVp-tgox-1POl-x1ScSt
and here is my clear lvdisply out put
lvdisplay
--- Logical volume ---
LV Name "/dev/xen-vol/lvmtest-swap"
VG Name "xen-vol"
LV UUID "ZTV6g3-YLGv-QgoY-U5bp-UAdc-fOxD-i22lK2"
LV Write Access "read/write"
LV Status available
# open 1
LV Size "1.00 GiB"
Current LE "256"
Segments "1"
Allocation "inherit"
Read ahead sectors "auto"
- currently set to "256"
Block device "254:0"
--- Logical volume ---
LV Name "/dev/xen-vol/lvmtest-disk"
VG Name "xen-vol"
LV UUID "uiaLoC-1Z4r-EW6S-NzxM-D4hM-4KVD-e00Ou4"
LV Write Access "read/write"
LV Status "available"
# open "1"
LV Size "40.02 GiB"
Current LE "10246"
Segments "1"
Allocation "inherit"
Read ahead sectors "auto"
- currently set to "256"
Block device "254:1"
I use the following command for lvextend
lvextend -v -L +10GB -n /dev/xen-vol/lvmtest-disk