- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- lvm & resize
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
Forums
Discussions
Discussions
Discussions
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
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
07-21-2004 02:24 AM
07-21-2004 02:24 AM
lvm & resize
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 02:43 AM
07-21-2004 02:43 AM
Re: lvm & resize
Helpful hints
1) Back up your data before you start, if you squeeze too hard, you'll hammer your data.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 03:08 AM
07-21-2004 03:08 AM
Re: lvm & resize
lvextend -L +50M /dev/vgname/lvname
or
lvextend -L 450M /dev/vgname/lvname
Where vgname is your group volume name, and lvname your Logical volume name.
You can use the +50M (say) to increase for 50 M, or put directly required new size.
SAme with lvreduce, but it's safer to backup, as it's supposed to be safe if you reduce to a size larger than your data volume, but it happends that datas are altered...
hth
Jerome Henry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 03:39 AM
07-21-2004 03:39 AM
Re: lvm & resize
what do you mean by the change of size - extending fs or reducing ? I have some hints for reiserfs:
BACKUP YOUR DATA FIRST
In case of Reiser extending:
1.vgdiplay -v #check free space on currentVG
2.lvextend -L +6G /dev/vg00/lv00
3.resize_reiserfs /dev/vg00/lv00
In case of Reiser reducing ON value:
1.reduce the size of fs:
resize_reiserfs -s-2048M -f /dev/vg02/lv00
2.reduce size of LV
lvreduce -L-2G /dev/vg02/lv00
Be carefful, although you can do resizing on mounted fs, it is safer to do it on unmounted.
br Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 03:40 AM
07-29-2004 03:40 AM
Re: lvm & resize
Do you want extend or reduce logical volume?!
If you want extend the command is:
# lvextend -L 500 /dev/vg_name/lv_name
where 500 is the new size of volume
If you want reduce the LV is:
# lvreduce -L 500 /dev/vg_name/lv_name
(BACKUP YOUR DATA BEFORE REDUCE LV!!)
Bye!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 07:54 PM
07-29-2004 07:54 PM
Re: lvm & resize
PF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 02:10 AM
07-30-2004 02:10 AM
Re: lvm & resize
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 05:04 AM
07-30-2004 05:04 AM
Re: lvm & resize
There are rare cases on hp-ux (from whece lvm comes), where an extend failed and corrupted the filesystem.
Extending a logical volume is much safer than trying to make it smaller.
The process is:
lvextend -L
umount the filesystem
extendfs
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com