- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: extending a LV
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
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
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
03-24-2014 11:47 AM
03-24-2014 11:47 AM
extending a LV
Hi
I want to extend the LV.
I have free space in VG.
vgdisplay /dev/vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 3
Open LV 3
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 32000
VGDA 2
PE Size (Mbytes) 32
Total PE 22397
Alloc PE 9024
Free PE 13373
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
bdf /tech
/dev/vg01/tech
10485760 8392007 1964885 81% /tech
I am using the below commands ,, IS it correct ?
lvextend -L 2048 /dev/vg01/lvol1 ############ extend logical volume
fsadm -b 2048M /tech ####### increase size to another 2 GB
I am having doubt in fsadm command, Will fsadm -b 2048M increase or decresae the LV size ?
bdf /tech
vgexport -p -v -s -m /tmp/vg01.map /dev/vg01
online JFS is installed , and VG is in cluster so I am taking map file to secondary node.
- Tags:
- lvextend
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2014 12:46 PM
03-24-2014 12:46 PM
Re: extending a LV
Hi ,
My understanding is
bdf /tech
/dev/vg01/tech
10485760 8392007 1964885 81% /tech
if i run the below commands,Lv size will be increased.
lvextend -L 2048 /dev/vg01/lvol1 ############ extend logical volume
fsadm -b 2048M /tech ####### increase size to another 2 GB
if i run the below commands,Lv size will be decreased.
fsadm -b 2048M /tech ####### decrease size to 2 GB or 2gb zise will be reduced ?
then lvreduce.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2014 01:40 PM
03-24-2014 01:40 PM
Re: extending a LV
With both commands, lvextend and fsadm, you need to specify the NEW size of the LV.
If you are wanting to extend the LV by 2 GB, to 12 GB, then you need to do the following:
# lvextend -L 12288 /dev/vg01/lvol1
# fsadm -b 12288m /tech
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2014 01:55 PM
03-24-2014 01:55 PM
Re: extending a LV
my current size is
bdf /tech
/dev/vg01/tech 10485760 8392007 1964885 81% /tech.
I want to extend another 2 gb to /dev/vg01/tech.
so what value should I use in lvextend and fsadm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2014 02:08 PM
03-24-2014 02:08 PM
Re: extending a LV
I told you in my post above. The values I give in the command are for a 12 GB file system (your current 10 GB + 2 GB additional space).