Linux Troubleshooting Make Easy.

Linux Learning & Troubleshooting Make Easy.

LVM (Logical Volume Manager)


To Create a Logical Volume:

Create a Partition with label 8e:
#  fdisk /dev/sdb

Update the Kernel for newly created partition:
#  partprobe

To see new partition:
#  fdisk -l




Create a physical volume using the new partition:
# pvcreate /dev/sdb5

To See the physical volume:
#  pvdisplay

Create a Volume group(VG_data) using the new physical volume:
# vgcreate VG_data /dev/sdb5

TO see the volume group:
#  vgdisplay

Create a logical volume (data):
#  lvcreate -L +512M -n /dev/VG_data/lv_data

To see the logical volume:
#  lvdisplay

Format the logical volume:
#   mke2fs -j /dev/VG_data/lv_data

Create a directory to mount the logical volume:
# mkdir /data

Make entry for newly created logical volume in /etc/fstab:
/dev/VG_data/lv_data                /data       ext3    defaults        1 2

Mount the volume:
#  mount -a


##################################################################################


Reduce the Size of a Logical Volume:

Unmount the volume :
#  umount /data

Check the filesystem:
#  e2fsck -f /dev/VG_data/lv_data

Re-size the logical Volume( reducing to 200MB):
#  resize2fs /dev/VG_data/lv_data 200M

Reduce the logical volume to 200MB:
# lvreduce -L 200M /dev/VG_data/lv_data

Mount the Volume(fstab entry already present):
#  mount -a

Check the New size of Logical Volume:
#  df -h


###################################################################################

Extend the Size of a Logical Volume:

check the volume full path:
# lvdisplay

ADD 100 MB to existing logical volume:
#  lvextend -L +100M /dev/VG_data/lv_data

Resize the logical Volume:
#  resize2fs /dev/VG_data/lv_data

Check the volume size:
# df -h


##################################################################################

Extend the Volume group:

Create a physical volume with new partition:
#  pvcreate /dev/sdb6

Extend the Volume group using available new partition:
#  vgextend VG_data /dev/sdb6

Check the new size of volume group:
#  vgdisplay VG_data


##################################################################################


Complete remove of a Logical Volume:

Unmount the volume:
#  umount /data

Remove the /etc/fstab entry for the volume:
/dev/VG_data/data                /data       ext3    defaults        1 2

Remove the logical Volume:
#  lvremove /dev/VG_data/lv_data

To remove the volume group:
#  vgremove /dev/VG_data

To remove the physical volume:
# pvremove /dev/sdb5


31 comments:

Coach Factory said...

canada goose, instyler ionic styler, ugg boots, moncler, nfl jerseys, moncler, abercrombie and fitch, birkin bag, juicy couture outlet, marc jacobs, reebok outlet, moncler outlet, mac cosmetics, mcm handbags, juicy couture outlet, canada goose pas cher, celine handbags, babyliss pro, wedding dresses, north face outlet, canada goose outlet, soccer shoes, giuseppe zanotti, beats by dre, canada goose outlet, bottega veneta, chi flat iron, uggs on sale, asics shoes, north face jackets, moncler, canada goose outlet, herve leger, canada goose uk, soccer jerseys, moncler, ghd, new balance shoes, p90x3, jimmy choo shoes, mont blanc, ugg outlet, lululemon outlet, valentino shoes, ferragamo shoes, ugg, supra shoes, insanity, ugg boots, rolex watches

Coach Factory said...

hermes pas cher, lululemon, tn pas cher, hogan sito ufficiale, nike air max, longchamp, nike blazer, converse pas cher, michael kors, karen millen, roshe run, hollister, nike free, oakley pas cher, nike free pas cher, sac louis vuitton, ray ban pas cher, air force, nike roshe run, ray ban uk, air jordan, vanessa bruno, abercrombie and fitch, nike roshe, timberland, louboutin, longchamp soldes, michael kors, vans outlet, north face, nike huarache, ralph lauren pas cher, montre femme, longchamp, nike trainers, air max, burberry, louis vuitton uk, barbour, lacoste, louis vuitton, sac guess, ralph lauren, vans pas cher, sac louis vuitton, michael kors, mulberry, new balance pas cher, hollister, hollister

Coach Factory said...

hermes pas cher, lululemon, tn pas cher, hogan sito ufficiale, nike air max, longchamp, nike blazer, converse pas cher, michael kors, karen millen, roshe run, hollister, nike free, oakley pas cher, nike free pas cher, sac louis vuitton, ray ban pas cher, air force, nike roshe run, ray ban uk, air jordan, vanessa bruno, abercrombie and fitch, nike roshe, timberland, louboutin, longchamp soldes, michael kors, vans outlet, north face, nike huarache, ralph lauren pas cher, montre femme, longchamp, nike trainers, air max, burberry, louis vuitton uk, barbour, lacoste, louis vuitton, sac guess, ralph lauren, vans pas cher, sac louis vuitton, michael kors, mulberry, new balance pas cher, hollister, hollister

Coach Factory said...

michael kors outlet online, michael kors outlet store, air max, coach purses, oakley sunglasses cheap, louboutin, louis vuitton outlet online, oakley vault, louis vuitton outlet, prada outlet, louis vuitton outlet, kate spade handbags, coach outlet, michael kors outlet online, prada handbags, ray ban sunglasses, nike air max, polo ralph lauren outlet, louis vuitton handbags, michael kors outlet, burberry outlet online, longchamp handbags, gucci outlet, jordan shoes, nike shoes, longchamp handbags, nike free, coach outlet store online, ray ban outlet, louboutin outlet, polo ralph lauren outlet online, oakley sunglasses, coach outlet, kate spade outlet, coach factory outlet, chanel handbags, louis vuitton, michael kors outlet, tiffany and co, michael kors outlet online, burberry outlet online, louboutin shoes, tory burch outlet, longchamp outlet, christian louboutin shoes

Guo Guo said...

guowenhao20150313
oakley sunglasses
oakley sunglasses
hollister pas cher
true religion jeans
ray ban sunglasses
mont blanc
coach outlet
louis vuitton outlet
louis vuitton outlet
michael kors outlet online
cheap snapbacks
burberry handbags
kate spade handbags
burberry outlet
coach factory outlet
gucci outlet
herve leger dresses
ferragamo shoes
marc jacobs
coach outlet store online
oakley sunglasses
adidas shoes
kobe 9
timberland boots
herve leger
cheap nfl jerseys
cheap oakley sunglasses
converse shoes
mcm bags
tods outlet
pandora jewelry 
cheap nba jerseys
coach outlet store
louis vuitton handbags
coach outlet
instyler ionic styler
air jordan shoes
babyliss

Unknown said...

air max 90
nike roshe
air max 2015
the north face outlet
oakland raiders jerseys
beats headphones
the north face uk
minnesota vikings jerseys
surpa sneakers
the north face jackets
manchester united jersey
nike huarache
pittsburgh steelers jersey
mulberry uk
tory burch outlet online
ray ban sunglasses
coach outlet
los angeles lakers jerseys
dallas cowboys jersey
new york giants jerseys
tommy hilfiger outlet
cleveland cavaliers jersey
custom mlb jerseys
the north face clearance
tory burch outlet
ralph lauren uk
nike free uk
coach outlet canada
barcelona jersey
north face jackets
kate spade outlet
green bay packers jerseys
north face outlet
new york jets jerseys
san francisco 49ers jerseys
baltimore ravens jerseys
coach outlet
boston celtics jersey
cheap wedding dresses
mbt shoes
zhuweiming0622

Lili Wang said...

20150708wanglili
longchamp handbags
jordan 4
replica watches
abercrombie
abercrombie store
mont blanc
michael kors outlet
juicy couture
christian louboutin
lebron james shoes
timberland boots
celine
jordan 11 low
louis vuitton
toms shoes
sac longchamp
dior handbags
michael kors handbags
abercrombie store
tods shoes
nike air max
oakley sunglasses wholesale
coach factorty outlet
chanel handbags
true religion
jordan concords
football shoes
michael kors outlet
coach factory outlet
ray ban sunglasses
oakley sunglasses outlet
longchamp bags
oakley sunglasses
burberry outlet online
ray ban outlet

小 Gg said...

tiffany jewellery, http://www.tiffanyjewelleryoutlets.co.uk/
coach outlet online, http://www.coachoutletonline.in.net/
michael kors outlet, http://michaelkors.outletonlinestores.us.com/
chanel handbags, http://www.chanelhandbags-outlet.us.com/
fitflop, http://www.fitflop.in.net/
nike huarache, http://www.nike-airhuarache.co.uk/
mbt shoes, http://www.mbtshoesoutlet.us.com/
oakley sunglasses, http://www.oakley.in.net/
ralph lauren uk, http://www.ralphlaurenoutletuk.org.uk/
michael kors outlet, http://www.michaelkorsoutletusa.net/
thomas sabo uk, http://www.thomassabos.co.uk/
nike air force 1, http://www.airforce1.us.com/
christian louboutin, http://www.scarpelouboutin.it/
michael kors outlet, http://www.michaelkorsoutlets.uk/
basketball shoes, http://www.basketballshoes.us.com/
ghd hair straighteners, http://www.ghdhairstraightenerssale.co.uk/
coach outlet store, http://www.coach-outlet-store.us.com/
calvin klein underwear, http://www.calvinklein.in.net/
louis vuitton handbags, http://www.louisvuittonhandbags.org.uk/
air jordan 11, http://www.airjordan11.net/
louis vuitton handbags, http://www.louisvuittonhandbag.us/
nba jerseys, http://www.nbajerseys.us.com/
kkkkkk0925

dong dong said...

2015928dongdong
canada goose sale
canada goose
michael kors handbags
canada goose jackets
ugg boots sale
Oakley Polarized Sunglasses Cheap Outlet Store
Christian Louboutin Outlet Sale Cheap Online
coach outlet online
louis vuitton outlet stores
Cheap Christian Louboutin Shoes Sale
nike air max 90
ugg boots sale
louis vuitton
mihchael kors bag
jordan shoes
michael kors bags
Abercrombie and Fitch Store
Abercrombie and Fitch USA Outlet Store
coach outlet
michael kors outlet online
Coach Luggage Bags Outlet Sale Online
coach outlet online
toms outlet
true religion outlet
Designer Louis Vuitton Bags Discount
Coach Factory Handbags Outlet Store
Michael Kors Outlet Online Deals Huge
fitflops sale clearance
Louis Vuitton Online Shop Stores
Jordan 4 Shoes For Sale

Wenhao Guo said...

cyber monday 2015
michael kors outlet clearance
ray ban sunglasses
louis vuitton outlet
michael kors outlet
snow boots
tiffany outlet
the north face uk
adidas outlet store
nike huarache
coach outlet
wedding dresses
nba jerseys
michael kors factory outlet
prada shoes
coach outlet canada
christian louboutin online
true religion jeans
ugg boots
michael kors factory outlet
michael kors handbags clearance
mulberry outlet
oakley sunglasses
hermes belt
true religion jeans
cheng1111

ninest123 Ninest said...

ninest123 11.26
michael kors handbags, burberry factory outlet, longchamp bags, replica watches, louboutin uk, michael kors outlet, uggs outlet, prada handbags, louis vuitton outlet online, cheap oakley sunglasses, ralph lauren outlet, louis vuitton outlet, cheap jordans, louboutin shoes, louis vuitton, gucci handbags, ralph lauren polo, oakley sunglasses, oakley sunglasses, oakley sunglasses, longchamp outlet, ray ban sunglasses, longchamp outlet, nike outlet, ray ban sunglasses, christian louboutin, uggs outlet, prada outlet, nike free, michael kors outlet online, nike air max, ray ban sunglasses, uggs on sale, christian louboutin, nike air max, replica watches, michael kors outlet online, burberry outlet, uggs on sale, tiffany jewelry, louis vuitton handbags, oakley sunglasses, tiffany jewelry, uggs on sale, tory burch outlet, michael kors, louis vuitton outlet, michael kors outlet online

ninest123 Ninest said...

longchamp pas cher, timberland pas cher, polo ralph lauren uk, nike trainers uk, true religion outlet, hermes pas cher, nike roshe run pas cher, nike tn pas cher, michael kors, nike air max pas cher, michael kors uk, abercrombie and fitch UK, north face uk, north face pas cher, mulberry uk, vanessa bruno pas cher, michael kors, lunette ray ban pas cher, sac guess pas cher, longchamp soldes, nike air max uk, coach purses, louboutin pas cher, coach outlet store online, abercrombie and fitch, ralph lauren pas cher, true religion outlet, vans pas cher, hollister uk, nike free pas cher, true religion outlet, nike free, nike air max uk, ray ban uk, jordan pas cher, polo lacoste pas cher, nike blazer pas cher, hogan sito ufficiale, true religion jeans, lunette oakley pas cher, lululemon outlet, nike roshe uk, nike air max, new balance, converse, burberry pas cher, coach outlet, michael kors outlet online, nike air force

ninest123 Ninest said...

iphone 6s cases, mac cosmetics, north face outlet, oakley, vans scarpe, nike air max, hermes handbags, softball bats, ipad cases, s6 cases, louboutin, nike roshe run, gucci, vans outlet, abercrombie and fitch, celine handbags, mont blanc, valentino shoes, iphone 5s cases, ray ban, giuseppe zanotti, lululemon outlet, beats by dre, nfl jerseys, mcm handbags, bottega veneta, nike air max, iphone 6 cases, chi flat iron, insanity workout, iphone cases, converse, asics running shoes, instyler ionic styler, reebok outlet, babyliss pro, hollister clothing, north face outlet, polo ralph lauren, soccer shoes, wedding dresses, salvatore ferragamo, iphone 6 plus cases, new balance shoes, herve leger, iphone 6s plus cases, p90x workout, ghd hair, hollister, timberland boots, jimmy choo outlet, soccer jerseys

ninest123 Ninest said...

louis vuitton, pandora jewelry, moncler, pandora uk, canada goose, canada goose pas cher, barbour jackets uk, moncler, canada goose outlet, hollister, louis vuitton, moncler jackets, replica watches, toms shoes, uggs outlet, moncler, canada goose outlet, ugg pas cher, canada goose uk, lancel, ugg uk, juicy couture outlet, bottes ugg pas cher, converse shoes outlet, thomas sabo uk, karen millen uk, wedding dresses uk, sac louis vuitton, pandora charms, supra shoes, pandora jewelry, barbour, moncler pas cher, coach outlet, moncler outlet, marc jacobs, louis vuitton uk, ugg,uggs,uggs canada, swarovski jewelry, canada goose jackets, canada goose, sac louis vuitton, doke & gabbana, moncler, ugg,ugg australia,ugg italia, montre pas cher, canada goose jackets, swarovski uk, juicy couture outlet, links of london uk, moncler uk
ninest123 11.26

chenlina said...

chenlina20151219
tory burch outlet
michaek kors outlet online
gucci outlet
chanel handbags
michael kors outlet online
lebron shoes
uggs outlet
the north face
oakley sunglasses
prada handbags
running shoes
oakley sunglasses
soccer shoes
jordan 11s
true religion outlet
coach outlet store online
louis vuitton purses
michael kors outlet
toms wedges
uggs outlet
nike air max
louis vuitton outlet stores
ugg boots on sale
louis vuitton handbags
louis vuitton handbags
hollister
cheap jordan shoes
louis vuitton handbags
michael kors handbags
uggs sale
coach outlet
michael kors uk
michael kors outlet online
mont blanc legend
nike free runs
michael kors outlet online
ugg sale
oakley outlet
ugg clearance
vans shoes sale
as

方松腾 said...

soccer jerseys,cheap soccer jerseys,cheap soccer jerseys for sale,soccer jersey,usa soccer jersey,football jerseys
lebron 12
tiffany and co
ralph lauren polo
oakley outlet online
coach outlet online
basketball shoes
snow boots outlet
air jordan 13 free shipping
tory burch outlet
ugg boots
chanel handbags
uggs outlet
michael kors usa
canada goose sale
replica watches
michael kors uk outlet
canada goose outlet
futbol baratas
michael kors uk outlet

dongdong said...

ghd flat iron
ralph lauren outlet
christian louboutin uk
stephen curry shoes
air max 95
ture religion outlet
polo ralph lauren outlet
canada goose sale
coach factory outlet
nike free runs
micahel kors
michael kors outlet
michael kors handbags
hollister clothing store
reebok shoes
toms outlet
air force 1
timberland boots
cartier watches
ralph lauren outlet
jordans shoes
louboutin outlet
coach factory outlet online
michael kors uk
designer handbags
prada outlet
ed hardy uk
michael kors
toms outlet
burberry outlet
coach outlet
michael kors handbags
kate spade outlet
polo ralph lauren outlet
reebok
oakley store
oakley sunglasses
fitflops outlet
babyliss pro
ralph lauren uk
20163.19wengdongdong

艾丰 said...

jianbin0325
nike air max
swarovski outlet
ray-ban sunglasses
michael kors outlet online
jordan shoes
michael kors canada
michael kors handbags
lebron shoes
mbt shoes
air jordan 4
mlb jerseys
links of london
mcm backpack
pandora outlet
louis vuitton handbags
prada handbags
cheap nfl jersey
ralph lauren,polo ralph lauren,ralph lauren outlet,ralph lauren italia,ralph lauren sito ufficiale
abercrombie and fitch
hermes birkin bag
cheap nike shoes
louis vuitton outlet store
michael kors outlet
michael kors handbags
louis vuitton outlet
michael kors factory outlet
hermes belt for sale
true religion jeans
mulberry outlet store
adidas outlet store
michael kors handbags
coach outlet store
air jordan shoes for sale
mac cosmetics
hermes outlet
asics,asics israel,asics shoes,asics running shoes,asics israel,asics gel,asics running,asics gel nimbus,asics gel kayano
nike foamposite
nfl jerseys wholesale
lebron shoes

Xiaozhengm 520 said...

2016-4-7 xiaozhengm
asics shoes
coach outlet
hollister clothing
christian louboutin outlet
true religion jeans
louis vuitton bags
christian louboutin shoes
toms shoes
hollister
ray ban sunglasses
jordan shoes
jordan retro 3
rolex watches
oakley outlet
ralph lauren outlet
gucci bags
celine handbags
michael kors uk
jordan 4 toro
tory burch handbags
louis vuitton handbags
toms shoes
michael kors outlet
nike air max
ray ban
hollister clothing
timberland boots
jordan concords
louis vuitton
cheap oakleys
louis vuitton handbags
coach outlet
true religion
cartier watches
oakley sunglasses
ray ban outlet
coach outlet online
michael kors handbags
ugg boots
coach outlet

chenlina said...

chenlina20160616
fitflop sandals
true religion outlet
nike free run
michael kors handbags
michael kors handbags
gucci handbags
ralph lauren outlet
beats solo
adidas nmd
michael kors outlet
kids lebron shoes
ralph lauren
abercrombie and fitch new york
michael kors purses
nike uk
caoch outlet
coach outlet
michael kors outlet
toms shoes outlet online
coach outlet
louis vuitton handbags
nike outlet store
replica watches
lebron shoes
kobe 9
tory burch handbags
ralph lauren outlet
louis vuitton outlet stores
michael kors outlet
lebron 11
jordan 3 white cenment
ed hardy clothing
coach outlet
coach outlet
michael kors uk
marc jacobs handbags
burberry bags
kate spade
michael kors outlet
coach factory outlet
as

Fangyaya said...

coach outlet
michael kors handbags
louis vuitton outlet stores
ugg canada
ralph lauren sale
ugg outlet
adidas nmd
louboutin outlet
ugg slippers
oakley sunglasses outlet
louis vuitton handbags
louis vuitton handbags
ugg boots sale
timberland boots
ugg boots
michael kors outlet clearance
coach outlet online
louis vuitton purses
louis vuitton purses
vans shoes sale
cheap rolex watches
cheap ray ban sunglasses
tommy hilfiger clothing
coach outlet
cheap ray ban sunglasses
nike air max uk
gucci belts
timberland boots
ralph lauren outlet
toms wedges
burberry handbags
louis vuitton borse
michael kors outlet online
canada goose uk
louis vuitton outlet
canada goose sale
prada handbags
michael kors outlet online sale
coach outlet store online clearances
cheap uggs
20169.9xukaimin

Unknown said...

michael kors outlet
jordan pas cher
ray-ban sunglasses
ghd hair straighteners
rolex watches
oakley sunglasses wholesale
tods outlet
rolex watches
hermes bags
michael kors outlet
chanyuan10.05

Hua Cai said...

nike roshe run shoes
tory burch outlet
louis vuitton outlet
links of london jewellery
coach outlet store
tory burch outlet online
ecco shoes
nike free running
christian louboutin
tory burch outlet
20161227caihuali

Gege Dai said...

louis vuitton outlet online
louis vuitton outlet
the north face jackets
ugg uk
replica watches
ray ban sunglasses uk
louis vuitton
christian louboutin shoes
hollister clothing
michael kors outlet clearance
20170113lck

Unknown said...

michael kors outlet
coach outlet store
michael kors outlet store
michael kors uk
eagles jerseys
replica watches
michael kors handbags
valentino shoes
dolce and gabbana outlet
ralph lauren outlet online

chenmeinv0 said...

hermes kelly bag
true religion kids
toms uk
michael kors outlet online
fitflops
cheap ray ban sunglasses
adidas nmd
parker pens
north face outlet
hermes handbags
chenyignying20170323

caiyan said...

pandora charms sale clearance
christian louboutin shoes
adidas yeezy boost 350
ralph lauren sale clearance uk
oakley sunglasses outlet
curry shoes
coach factory outlet online
coach outlet online
coach outlet online
tigers jerseys
0407shizhong

dong dong23 said...

polo outlet
fitflop sandals
christian louboutin sale
mlb jerseys cheap
coach factory online
nike outlet online
polo ralph lauren shirts
converse shoes outlet
mont blanc mountain pen
ralph lauren outlet
2017.5.2chenlixiang

raybanoutlet001 said...

pandora charms
mbt shoes
oakland raiders jerseys
cheap oakley sunglasses
coach
instyler max 2
pandora jewelry
ralph lauren
boston celtics
christian louboutin outlet

chenlina said...

puma shoes
coach factory outlet
coach outlet online
canada goose outlet store
nike outlet
adidas outlet online
valentino shoes
adidas yeezy shoes
oakley sunglasses
michael kors outlet
wanglili20170623

da xu said...

coach outlet store online
ralph lauren sale clearance uk
michael kors outlet store
ray ban sunglasses outlet
pandora charms sale clearance
gucci borse
versace
cowboys jerseys
coach factory outlet
michael kors outlet store
xushengda0630