- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: diskinfo doesn't return new size
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
02-27-2008 11:50 AM
02-27-2008 11:50 AM
diskinfo doesn't return new size
Online JFS : every thing should go well to increase the size of a mounted filesystem. Yes, but ...
For some reasons the filesystem itself is mounted directly from a disk special file, not from an LVM structure. When the size of the corresponding LUN is increased, diskinfo doesn't return the new size until the disk special file is released. That is if I want to deal with the new size, I must unmount the FS before. In other words I can't extend the FS size online ... :-(
It is not a problem with LVM, nor Online JFS : vmunix doesn't return new sizes as long as the correspondig resource is in use. For example, a simple "sleep 3600
Tried many ioscan, rmsf, insf, etc ... no way.
I have an idea about your answers :-( , but I wonder if it could be possible to bypass this behavior : a kernel parameter, a patch, some hidden or missunderstood parameters to commands, features from VxVM, or VxFS, that could release a FS a few sec without unmounting, etc ... ????
I forgot : no way to use the new IO stack from 11iv3 ... OS is 11iv2 and can't be upgraded soon.
Thanks in advance.
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2008 12:10 PM
02-27-2008 12:10 PM
Re: diskinfo doesn't return new size
# saconfig /dev/ciss3 -E 1 -c 100
Logical drive 1 extended from 87.9 GB to 100 GB in capacity
# diskinfo -v /dev/rdsk/c3t0d1
SCSI describe of /dev/rdsk/c3t0d1:
vendor: HP
product id: LOGICAL VOLUME
type: direct access
size: 92159040 Kbytes
...
(not changed)
# umount /user1
# vgchange -a n vg01
# vgmodify -o vg01
# vgchange -a y vg01
# diskinfo -v /dev/rdsk/c3t0d1
SCSI describe of /dev/rdsk/c3t0d1:
vendor: HP
product id: LOGICAL VOLUME
type: direct access
size: 104857600 Kbytes
...
This is what I did. Not sure if vgmodify and diskinfo is related anyhow, but maybe my "umount" did it.
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
02-27-2008 01:35 PM
02-27-2008 01:35 PM
Re: diskinfo doesn't return new size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2008 05:20 PM
02-27-2008 05:20 PM
Re: diskinfo doesn't return new size
I misunderstood your question in my previous reply. I guess "extendfs" is only LVM aware and not physical disk aware.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 04:37 AM
02-28-2008 04:37 AM
Re: diskinfo doesn't return new size
Torsten, in your example I think IMHO that vgmodify and diskinfo are not related : diskinfo would have returned the right size just after "vgchange -a n vg01". I did this test yesterday before posting : 1 Go LUN created on EVA, ..., vgcreate, vgchange -a y, increase LUN to 2 Go, diskinfo wrong, vgchange -a n, diskinfo ok.
TTr, my problem is not related to lvm, extendfs, fsadm.
The problem is that I can't extend a FS online, though OnlineJFS is installed, if this FS resides on a raw device. I have to unmount the FS so that diskinfo shows the new size. After that I can "extendfs" before mounting, or mounting then "fsadm -b newsize".
OnlineJFS works well, the fact is that vmunix (diskinfo) doesn't return new sizes as long as the corresponding resource is in use. OnlineJFS has no sense if I have to unmount a FS to get the new size :-(
I can't believe it. Even under Windows, extending a LUN size works : new space is accessible at once after a disk scan ! Of course extending the FS is an other story.
Any idea ? Patch, kernel parameters, unknown command, ... ? Asking HP for modifying this behavior ;-) ?
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 04:53 AM
02-28-2008 04:53 AM
Re: diskinfo doesn't return new size
What happens if you try using the 'remount' option on a mount command:
mount -o remount /dev/dsk/c0t0d0 /myfs
Does it pick up the change in size then?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 04:54 AM
02-28-2008 04:54 AM
Re: diskinfo doesn't return new size
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 05:26 AM
02-28-2008 05:26 AM
Re: diskinfo doesn't return new size
I tried this option yesterday, but it was not the good way :-(
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 05:02 PM
02-28-2008 05:02 PM
Re: diskinfo doesn't return new size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 12:33 AM
03-03-2008 12:33 AM
Re: diskinfo doesn't return new size
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 12:59 AM
03-03-2008 12:59 AM
Re: diskinfo doesn't return new size
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
03-04-2008 01:25 AM
03-04-2008 01:25 AM
Re: diskinfo doesn't return new size
If you can join code developers, post something : it will be my pleasure to correct points assignment I did.
Torsten, many, many thanks for your remark. Do it again every time you will consider it necessary !
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2008 03:12 AM
03-07-2008 03:12 AM
Re: diskinfo doesn't return new size
I spoke to SCSI Developers,
They told, you have to close all the open devices and then reopen it get the new size reflected.
So mount open the Disk and keep it open until we unmount it.
Only during open time the size is queried.
This problem is solved in 11.31 because of Mass storage stack.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 06:09 AM
03-11-2008 06:09 AM
Re: diskinfo doesn't return new size
"They told, you have to close all the open devices and then reopen it get the new size reflected" ... it is exactly what I have underlined in my initial post. It is badly true at any level. A call at HP support has confirmed this : as long as "open count > 0", SCSI inqueries are directed to a cache.
"This problem is solved in 11.31 because of Mass storage stack" ... yep, but I can't relie on HP-UX 11.31 as few of my clients are working with this release.
I would like to explain in which context I need that new disk size is immediatly acknowledged : Integrity VM.
For some reasons (IMHO valuables reasons ;-) I work with LV as virtual disks at host level and FS straight on virtual LV disks in VM Guests; main reasons are performances and portability. I know that I should consider HPVM 3.5 for performances, but how do you deal with portability ? I mean if you have a double LVM layer, one at host level, one at guest level, and if you want to move from V2P (virtual to physical) or P2V, then you must copy all of the datas. You can't simply play with disks ...
In a summary, with LVM layer at host level and FS layer at guest level, I thought I would be able to online extend FS with OnlineJFS. It could work ... without this f.....g "Only_during_open_time_the_size_is_queried" behavior.
I can imagine that a patch could permit to modify this behavior, through a kernel parameter or through a special command that will update SCSI cache when invoked. It could be limited to VM Guests and I am sure it would be a valuable enhancement in VM context. It could, it could, ... Yep, but does someone there know how to ask HP such a modification ? psreedhar, should I understand that you can join HP development team ?
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 07:02 AM
03-11-2008 07:02 AM
Re: diskinfo doesn't return new size
If you have a support contract, contact the Response Center and file an enhancement request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 08:13 AM
03-11-2008 08:13 AM
Re: diskinfo doesn't return new size
I have already asked HP support engineer in charge of the opened case to forward my demand. But really, I have a doubt it can succeed ... Since you are working for HP, what do you think about it ?
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 08:40 AM
03-11-2008 08:40 AM
Re: diskinfo doesn't return new size
Did you get any numbers for your enhancement request?
>Since you are working for HP, what do you think about it?
Well, if it isn't for 11.31, it probably won't. And since it works on 11.31, catch 22.
What's the cost to your clients, you and HP if this isn't working the way you want?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2008 12:51 AM
03-26-2008 12:51 AM
Re: diskinfo doesn't return new size
-----------------------------------------
The caching of LUN data is done for performance reasons and there are no plans to change that. The reason is that it's not enough just not to cache the size of LUN in order to achieve dynamic expansion.
The dynamic LUN expansion is feature of Next Generation mass storage stack on 11.31.See for example: http://docs.hp.com/en/MassStorageStack/The_Next_Generation_Mass_Storage_Stack.pdf
The dynamic LUN expansion on 11.31 goes beyond simply allowing dynamic changes and supports also notification of upper layers which allows for example crash dump or LVM to automatically react to the LUN changes.
In case of HPVM things are even more complicated. As of today there is no infrastructure in place to allow propagation of LUN changes to the guest OS so the only way to reread the LUN configuration is the reopen the device (which means unmounting the FS on guest in case of FS on raw device).
There are some changes in plan for AVIO Storage drivers on future HPVM version(s) which will be 11.31 host based to subscribe to LUN/LVOL resize events and propagate these.
But that's future functionality which we cannot give any promises about.
So from the HPUX point of view the functionality customer ask for is there in 11.31 but not in 11.23 and there are no plans to change that.
For HPVM there are plans to allow dynamic resizing in future versions.
-----------------------------------------
So no solution ... but making a choice between uncomplete solutions. An other point for HP's competitors :-(
Thanks every body
Eric