- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvextend problem...
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
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
09-23-2005 03:55 AM
09-23-2005 03:55 AM
while extending one lv i am getting following error..
# lvextend -L 500 /dev/vgapp01/app1
lvextend: "LogicalExtentsNumber" is not bigger than current setting.
#
vg info as below...
# vgdisplay -v /dev/vgapp01 | more
--- Volume groups ---
VG Name /dev/vgapp01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 5
Open LV 5
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 12031
VGDA 2
PE Size (Mbytes) 4
Total PE 12030
Alloc PE 10888
Free PE 1142
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
----------------------------------------------
I think the problem is, in vgdisplay o/p== Max PE per PV = 12031 and Total PE = 12030.
Can we modify extent size of this partcular vg without unmounting and loss of data.
Urgetly waiting for reply..
yogesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 03:57 AM
09-23-2005 03:57 AM
Re: lvextend problem...
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:00 AM
09-23-2005 04:00 AM
Re: lvextend problem...
--- Logical volumes ---
LV Name /dev/vgapp01/app1
VG Name /dev/vgapp01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4504
Current LE 1126
Allocated PE 1126
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:02 AM
09-23-2005 04:02 AM
Re: lvextend problem...
he problem looks more that you try to extend the lv with a smaller size then he now is.
I regon you want to make the filesystem 5000 MB big. Probebly you forget a 0 in the 500.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:02 AM
09-23-2005 04:02 AM
SolutionIf you want to extend the LV to 5000 MB, do:
# lvextend -L 5000 /dev/vgapp01/app1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:03 AM
09-23-2005 04:03 AM
Re: lvextend problem...
# lvextend -L 'new_size' lv_name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:04 AM
09-23-2005 04:04 AM
Re: lvextend problem...
Add a "0" to increase the size up to 5Gig.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:04 AM
09-23-2005 04:04 AM
Re: lvextend problem...
Your problem is not that you don't have the space, but rather that you are attempting to *shrink* your logical volume.
The '-L' means the number is in *megabytes* not logical extents as with '-l'. Your current size is 4,504 MB.
Remember the message said, '"LogicalExtentsNumber" is not bigger than current setting'. :-))
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:06 AM
09-23-2005 04:06 AM
Re: lvextend problem...
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:11 AM
09-23-2005 04:11 AM
Re: lvextend problem...
As stated earlier the problem is in the command issued. The size mentioned in lvextend is more than the current size, and same is clearly mentioed in the error reported by command.
Also, the value MAX_PE_PER_PV=12031 and Total_PE=12030 is not a problem.
MAX_PE_PER_PV defines the max. no. of PEs one physical volume can occupy in that VG. With one disk in a VG , the Value of Total PE can be anything equal to or less than MAX_PE_PER_PV depending upon the size of that disk.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:46 AM
09-23-2005 04:46 AM
Re: lvextend problem...
Logical volume "/dev/vgapp01/app1" has been successfully extended.
Volume Group configuration for /dev/vgapp01 has been saved in /etc/lvmconf/vgapp01.conf
-----------------------------------
# lvdisplay /dev/vgapp01/app1
--- Logical volumes ---
LV Name /dev/vgapp01/app1
VG Name /dev/vgapp01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 1250
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
#
----------------------------------
# bdf | grep /dev/vgapp01/app1
/dev/vgapp01/app1 4612096 4612096 0 100% /appl
still in bdf its showing 100% AND 4.6GB ONLY
in lvdisplay its showing 5gb..how isit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:50 AM
09-23-2005 04:50 AM
Re: lvextend problem...
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:51 AM
09-23-2005 04:51 AM
Re: lvextend problem...
If you have OnlineJFS / AdvancedJFS installed, you can try:
# fsadm -b 5000m /appl
However, since it is completely full, you will first have to free up a little bit of space. You can try the fsadm command, but if it fails you will have to temporarily move a file or files elsewhere to free up a little bit of space.
If you don't have Online JFS, then you will have to unmount the fileystem and run:
# extendfs /dev/vgapp01/rapp1
After that, remount the filesystem and your should see 5000 MB available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:53 AM
09-23-2005 04:53 AM
Re: lvextend problem...
# umount /dev/vgapp01/app1
# extendfs /dev/vgapp01/rapp1
# mount /dev/vgapp01/app1
If OnlineJFS is installed use fsadm, noumount needed.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 04:54 AM
09-23-2005 04:54 AM
Re: lvextend problem...
You have only extended the LVOL. The file system still need to be extended. If you have online JFS installed, you can do it online uasing fsadm. If you do not have that you will be required to umount the file system and then issue a extendfs.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 05:50 AM
09-23-2005 05:50 AM
Re: lvextend problem...
one more query that..
if a use fsadm..data will remain as it is right? there wont be any impact on data..m i right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 05:52 AM
09-23-2005 05:52 AM
Re: lvextend problem...
Extendfs has no impact on data either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 06:07 AM
09-23-2005 06:07 AM
Re: lvextend problem...
how can i kill user using this fs
# cd /
# umount /dev/vgapp01/app1
umount: cannot unmount /appl : Device busy
umount: return error 1.
#
------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 06:19 AM
09-23-2005 06:19 AM
Re: lvextend problem...
You can use 'fuser' to kill processes that are preventing the unmount. Be careful. This is not very graceful.
I would make sure you know *what* is using the filesystem first:
# fuser -cu /mountpoint
...will show the 'pid' and user of the processes using /mountpoint.
If you do:
# fuser -k /mountpoint
...you will kill the process.
Depending on what is using the filesystem, and *IF* you don't have OnlineJFS to enable dynamically extending it, you may want to arrange for an orderly application shutdown first, before attempting to kill anything.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 06:20 AM
09-23-2005 06:20 AM
Re: lvextend problem...
try
fuser -fu /
to list the processes using the filesystem.
Since the lvol is called "app1" I assume there are running applications there. You have to stop the app...
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 06:37 AM
09-23-2005 06:37 AM
Re: lvextend problem...
i shutdown apllications on this lv.
stillits showing device busy while umount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 06:49 AM
09-23-2005 06:49 AM
Re: lvextend problem...
fuser -fu /
say?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 06:53 AM
09-23-2005 06:53 AM
Re: lvextend problem...
You can try 'fuser -ck /dev/dsk/cXtYdZ' in lieu of specifying the filesystem directory mountpoint. Make the translation by looking at your '/etc/fstab'.
Regards!
..JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 06:53 AM
09-23-2005 06:53 AM
Re: lvextend problem...
Sometimes allthough you stop applications, the file system remains in use. For ex. Oracle might have been stopped but listener could still be running and that may be using the same file system. Use fuser to find out the same as mentioned earlier.
Also try using
#ps -ef|grep -i appl
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 08:15 AM
09-23-2005 08:15 AM
Re: lvextend problem...
James solution works...
thanks to all...
yogesh