Ubuntu Disk with LVM

root@app-dmz:~# df

Filesystem           1K-blocks      Used Available Use% Mounted on

/dev/sda2               822544    578072    244472  71% /

varrun                  314528        76    314452   1% /var/run

varlock                 314528         0    314528   0% /var/lock

udev                    314528        76    314452   1% /dev

devshm                  314528         0    314528   0% /dev/shm

/dev/sda1               233335     83170    137717  38% /boot

/dev/mapper/appvg-tmp

                         97600      4484     93116   5% /tmp

/dev/mapper/appvg-local

                         97600     12616     84984  13% /usr/local

/dev/mapper/appvg-share

                        507200    291564    215636  58% /usr/share

/dev/mapper/appvg-var

                        507200    307984    199216  61% /var

/dev/mapper/appvg-home

                         48448      3884     44564   9% /home

/dev/mapper/appvg-app

                       1019200    428836    590364  43% /app

root@app-dmz:~# fdisk -l      

 

Disk /dev/sda: 4294 MB, 4294967296 bytes

255 heads, 63 sectors/track, 522 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x00028fba

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          31      248976   83  Linux

/dev/sda2              32         134      827347+  83  Linux

/dev/sda3             135         200      530145   82  Linux swap / Solaris

/dev/sda4             201         522     2586465    5  Extended

/dev/sda5             201         522     2586433+  8e  Linux LVM

root@app-dmz:~# vgs

  VG     #PV #LV #SN Attr   VSize VFree  

  appvg   1   6   0 wz--n- 2.46G 272.00M

root@app-dmz:~# pv

pvchange   pvck       pvcreate   pvdisplay  pvmove     pvremove   pvresize   pvs        pvscan     

root@app-dmz:~# pvdisplay                                                                                                                                                                                                        

  --- Physical volume ---                                                                                                                                                                                                        

  PV Name               /dev/sda5                                                                                                                                                                                                

  VG Name               appvg                                                                                                                                                                                                    

  PV Size               2.47 GB / not usable 1.81 MB                                                                                                                                                                             

  Allocatable           yes                                                                                                                                                                                                      

  PE Size (KByte)       4096                                                                                                                                                                                                     

  Total PE              631                                                                                                                                                                                                      

  Free PE               68                                                                                                                                                                                                       

  Allocated PE          563                                                                                                                                                                                                      

  PV UUID               rpeXV8-MthJ-j3HN-2x4e-Q2O0-rD0v-xH2BUb                                                                                                                                                                   

   

root@app-dmz:~# vgs

  VG     #PV #LV #SN Attr   VSize VFree  

  appvg   1   6   0 wz--n- 2.46G 272.00M

root@app-dmz:~# df

Filesystem           1K-blocks      Used Available Use% Mounted on

/dev/sda2               822544    578072    244472  71% /

varrun                  314528        76    314452   1% /var/run

varlock                 314528         0    314528   0% /var/lock

udev                    314528        76    314452   1% /dev

devshm                  314528         0    314528   0% /dev/shm

/dev/sda1               233335     83170    137717  38% /boot

/dev/mapper/appvg-tmp

                         97600      4484     93116   5% /tmp

/dev/mapper/appvg-local

                         97600     12616     84984  13% /usr/local

/dev/mapper/appvg-share

                        507200    291564    215636  58% /usr/share

/dev/mapper/appvg-var

                        507200    307984    199216  61% /var

/dev/mapper/appvg-home

                         48448      3884     44564   9% /home

/dev/mapper/appvg-app

                       1019200    428836    590364  43% /app

root@app-dmz:~# fdisk -l

 

Disk /dev/sda: 4294 MB, 4294967296 bytes

255 heads, 63 sectors/track, 522 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x00028fba

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          31      248976   83  Linux

/dev/sda2              32         134      827347+  83  Linux

/dev/sda3             135         200      530145   82  Linux swap / Solaris

/dev/sda4             201         522     2586465    5  Extended

/dev/sda5             201         522     2586433+  8e  Linux LVM

root@app-dmz:~# blkid

/dev/sda1: UUID="1e3a8d39-67e9-43de-bb08-8766cf7fee86" TYPE="ext2" 

/dev/sda5: UUID="rpeXV8-MthJ-j3HN-2x4e-Q2O0-rD0v-xH2BUb" TYPE="lvm2pv" 

/dev/sda2: UUID="f1f4a806-f36c-41dd-9721-ad3912b6f9e0" TYPE="xfs" 

/dev/sda3: TYPE="swap" UUID="dae5bd80-743e-4c07-b7d9-bb9dce4d34b3" 

/dev/mapper/appvg-home: UUID="fc2c671e-2743-4281-a124-e7303b77d3dd" TYPE="xfs" 

/dev/mapper/appvg-tmp: UUID="f36979fa-ed9b-4c75-a0e7-da274b1d306e" TYPE="xfs" 

/dev/mapper/appvg-var: UUID="14b42ca1-06e4-43fa-b052-05a2d95cee8b" TYPE="xfs" 

/dev/mapper/appvg-app: UUID="54f99e12-59be-4005-a0dc-2d4eb5c3a955" TYPE="xfs" 

/dev/mapper/appvg-local: UUID="25e2ff9b-eae0-452c-baef-7d191f1ea97c" TYPE="xfs" 

/dev/mapper/appvg-share: UUID="2cec0c91-9296-4544-9812-544b03754263" TYPE="xfs" 

root@app-dmz:~# pvdisplay 

  --- Physical volume ---

  PV Name               /dev/sda5

  VG Name               appvg

  PV Size               2.47 GB / not usable 1.81 MB

  Allocatable           yes 

  PE Size (KByte)       4096

  Total PE              631

  Free PE               68

  Allocated PE          563

  PV UUID               rpeXV8-MthJ-j3HN-2x4e-Q2O0-rD0v-xH2BUb

   

root@app-dmz:~# vgs       

  VG     #PV #LV #SN Attr   VSize VFree  

  appvg   1   6   0 wz--n- 2.46G 272.00M

root@app-dmz:~# lv

lvchange     lvconvert    lvcreate     lvdisplay    lvextend     lvm          lvmchange    lvmdiskscan  lvmdump      lvmsadc      lvmsar       lvreduce     lvremove     lvrename     lvresize     lvs          lvscan

root@app-dmz:~# lv

lvchange     lvconvert    lvcreate     lvdisplay    lvextend     lvm          lvmchange    lvmdiskscan  lvmdump      lvmsadc      lvmsar       lvreduce     lvremove     lvrename     lvresize     lvs          lvscan

root@app-dmz:~# lvdisplay 

  --- Logical volume ---

  LV Name                /dev/appvg/local

  VG Name                appvg

  LV UUID                gyO5cO-9nRv-uYqz-AHke-EnPs-AGS7-nAPF0J

  LV Write Access        read/write

  LV Status              available

  # open                 1

  LV Size                100.00 MB

  Current LE             25

  Segments               1

  Allocation             inherit

  Read ahead sectors     0

  Block device           254:0

   

  --- Logical volume ---

  LV Name                /dev/appvg/var

  VG Name                appvg

  LV UUID                J4zo3d-iBvU-KRj4-ReEz-m3qf-yLPI-Ya6qne

  LV Write Access        read/write

  LV Status              available

  # open                 1

  LV Size                500.00 MB

  Current LE             125

  Segments               1

  Allocation             inherit

  Read ahead sectors     0

  Block device           254:1

   

  --- Logical volume ---

  LV Name                /dev/appvg/tmp

  VG Name                appvg

  LV UUID                01moqa-Wu73-C2PD-r3Hc-sdHt-lH3P-bPtgla

  LV Write Access        read/write

  LV Status              available

  # open                 1

  LV Size                100.00 MB

  Current LE             25

  Segments               1

  Allocation             inherit

  Read ahead sectors     0

  Block device           254:2

   

  --- Logical volume ---

  LV Name                /dev/appvg/home

  VG Name                appvg

  LV UUID                1rl6X1-652W-N2GK-ePNC-J711-iDzN-7Z556S

  LV Write Access        read/write

  LV Status              available

  # open                 1

  LV Size                52.00 MB

  Current LE             13

  Segments               1

  Allocation             inherit

  Read ahead sectors     0

  Block device           254:3

   

  --- Logical volume ---

  LV Name                /dev/appvg/app

  VG Name                appvg

  LV UUID                6nR5wP-FBsi-iN4j-Kmvd-w13N-6oOw-tpl2qe

  LV Write Access        read/write

  LV Status              available

  # open                 1

  LV Size                1000.00 MB

  Current LE             250

  Segments               1

  Allocation             inherit

  Read ahead sectors     0

  Block device           254:4

   

  --- Logical volume ---

  LV Name                /dev/appvg/share

  VG Name                appvg

  LV UUID                RrZOaa-gyJW-yoWG-JzqL-SawZ-Z6Kj-gxF4SV

  LV Write Access        read/write

  LV Status              available

  # open                 1

  LV Size                500.00 MB

  Current LE             125

  Segments               1

  Allocation             inherit

  Read ahead sectors     0

  Block device           254:5

   

root@app-dmz:~#