Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2009 11:11 PM
тАО09-21-2009 11:11 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2009 11:34 PM
тАО09-21-2009 11:34 PM
Re: lvextend
After extending the LV, you must extend the filesystem. This requires a filesystem-specific tool: for ext2/ext3 filesystems, the tool is resize2fs. (RHEL4 had a different tool called ext2online for extending mounted ext3 filesystems; with newer distributions, this is integrated into resize2fs)
For ReiserFS, the tool is resize_reiserfs. I think XFS also had its own method, but I cannot remember it just now.
Read the man page of the respective tool for your filesystem for more details.
Note: if you have to shrink a LV, the order of operations will be different: first shrink the filesystem (which generally cannot be done while the filesystem is mounted), then reduce the LV. The bottom line is: the filesystem must never be larger than the LV that encloses it, or else you may lose data.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2009 12:04 AM
тАО09-22-2009 12:04 AM
Re: lvextend
lvextend extend only logical volume, not the file system.
the command is depend which FS type is used.
an example :
http://www.netadmintools.com/art366.html
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2009 01:03 AM
тАО09-22-2009 01:03 AM
Re: lvextend
e2fsadm -f /dev/vg1/lv1
Is it necessary? Why? Will it harm the inside data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2009 01:18 AM
тАО09-22-2009 01:18 AM
Re: lvextend
Debian 5.0, RHEL4 and RHEL5 distributions don't seem to even have the e2fsadm command at all.
It might be helpful if you could tell the name and version of your Linux distribution, so that someone who uses the same version could give you more detailed advice.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2009 01:21 AM
тАО09-22-2009 01:21 AM
Re: lvextend
It says,
-f Force checking even if the file system seems clean.
I knew its usage but my question is why is it mendatory to run it before resize2fs?.....
maybe i m asking too much