LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-22-2009, 02:12 AM   #1
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
lvextend?


Hello,

On a test environment, I have created a volume group vg1 and inside that added 1 pv. Created a logical volume lv1 and the size of the lv
became 18GB. Formatted the logical volume and mounted the logical volume. Created few files in it. Now added another PV to VG1 inorder
to increase the size. Then used,

lvextend -L +30G lv1 , the command completed successfully.

But now the mounted lv1 is still showing the original size 18GB. I remounted the same but no help.

Anything to execute to take new change effect?

Thanx,
admin
 
Old 09-22-2009, 03:24 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You didn't run resize2fs...


cheers
 
Old 09-22-2009, 04:03 AM   #3
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
Ok I ran resize2fs after unounting the filesystem. And it asked me to run

e2fsadm -f /dev/vg1/lv1

Is it necessary? Why? Will it harm the inside data?
 
Old 09-22-2009, 07:25 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
The new command is 'e2fsck'.. and no, it shouldn't harm the filesystem, it's just asking you to check it

cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not enough PE when running lvextend!? Chikne Slackware 6 02-04-2007 10:24 AM
After lvextend wrong free space epiphiny Fedora 4 11-19-2006 03:09 PM
lvextend - where's my data? zdenisl Linux - Software 4 05-13-2006 08:36 AM
LVM and lvextend mirroring smkamene Linux - Software 0 02-26-2005 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration