- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to extend the running file system (LVM) 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
11-09-2005 06:17 AM
11-09-2005 06:17 AM
I need to know that I have to extend one file system(LVM) size, Some database are running on this file system.
Can any body tell me how can i change the size of this file system ?
Does i need to unmount this file system or not ?
Does i need to shutdown the database or not?
Please tell me the steps sothat I can do it soon.
waiting for ur reply
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 06:18 AM
11-09-2005 06:18 AM
Re: How to extend the running file system (LVM) size
I forgot to mention the OS ,
OS is HP-UX 11 i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 06:20 AM
11-09-2005 06:20 AM
Re: How to extend the running file system (LVM) size
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 06:39 AM
11-09-2005 06:39 AM
Re: How to extend the running file system (LVM) size
swlist -l product | grep -i jfs
The response would be
JFS B.11.23 The Base VxFS File System
OnlineJFS B.11.23.05 Online features of the VxFS File System
If this product is not on system, will need to stop DB and umount FS to extend
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 09:11 AM
11-09-2005 09:11 AM
Re: How to extend the running file system (LVM) size
If you have Online JFS the filesystem can be extended on the fly , there is no need to unmount or shutdown the database.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 09:18 AM
11-09-2005 09:18 AM
Re: How to extend the running file system (LVM) size
This is the output of this command:
# swlist -l product | grep -i jfs
JFS B.11.23 The Base VxFS File System
OnlineJFS B.11.23.05 Online features of the VxFS File System
Please let me know, how i can extend the file system size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 09:45 AM
11-09-2005 09:45 AM
SolutionCheck if you have enough free PEs available in the volume group (VG) the LV is part of.
vgdisplay vgXX
will show you "Free PE" and "PE Size" among other VG meta data.
Multiplying these values gives you the amount of free MBs you possibly can extend the LV by.
However, if the LV is mirrored you have to devide the free MBs by No. of mirrors.
Also there could apply strict allocation policy (which is the case for mirrored LVs), or the LV could be striped over several physical volumes (PVs).
In those cases you will have to do a verbose vgdisplay (vgdisplay -v vgXX) that also shows you the involved PVs and amount of free physical extents (PEs) on each PV.
Then the smallest free PEs is the maximum extensible size for the LV.
After having found out the potential extension size either extend the LV by specifying the new total size of the LV in MB
where you use -L, or giving the total Nos. of LEs (1 LE maps 1 PE) using -l.
e.g. the volume should be increased to 500 MB
(beware of possible rounding of LVM if the chosen size isn't exactly devidable by PE size)
lvextend -L 500 /dev/vgXX/lvolXX
After that an
lvdisplay /dev/vgXX/lvolXX
shows you the exact new size of the LV in MB.
Since you verified that you have OnlineJFS installed the blowing up of the VxFS filesystem to the new LV size is a simple
fsadm -F vxfs -b 500m /mountpoint/of/lvolXX
A bdf will show immediately the new size of the filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2005 04:48 AM
11-10-2005 04:48 AM
Re: How to extend the running file system (LVM) size
Please find the attached file which contains all the details of the server.
This is my requirement:
Data Mount point:
/PMOR/db/ORPMORP/data/dat01 - 20 GB
Current usage: 10 GB and remain 10 GB need to free for staging purpose.
Index Mount point:
/PMOR/db/ORPMORP/data/idx01 - 2 GB not a good file system deign
For 50 GB of DW application, near to 25 GB is recommend for index usages. And now database data size is near to 40 GB. It is good if we have at least 15 GB of index storage space.
For new data storage (for 150 millions rows as users input), after calculation it needs 15.64 GB not the 10GB. Is it possible to add more 20GB of storage space to /PMOR/db/ORPMORP/data/dat01 without unmounting the mount point? Else, please allocate with /PMOR/db/ORPMORP/data/dat02.
Temp Mount point:
/PMOR/db/ORPMORP/data/tmp01 - 10 GB
It is sufficient for the database. For safety we need 5 GB.
In summary, I need:
Data storage: 20 GB (possible allocate at /PMOR/db/ORPMORP/data/dat01 or /PMOR/db/ORPMORP/data/dat02)
Index storage: 15 GB (possible allocate at /PMOR/db/ORPMORP/data/idx01 or /PMOR/db/ORPMORP/data/idx02)
Temp storage: 5 GB
Please suggest me what should I do
Please look into it and do the needful,
Try 2 send me the step by step commands SOON.
Thanks in advance
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2005 10:49 AM
11-10-2005 10:49 AM
Re: How to extend the running file system (LVM) size
I didn't know it is that urgent to you,
and I didn't find the time today to pop into ITRC.
I just have had a look at your attached sysinfo collector's output which contains all the information (and more than) one would need.
Boy, your server does have quite a few mountpoints where one easily looses orientation.
I do urge you to keep a hardcopy of your fstab's content (or the whole dump of the syscollector) for possible disaster repair.
Thus I may have overlooked something.
So don't take my suggestions for granted and do double check.
Now, you need to 20 GB in /PMOR/db/ORPMORP/data/dat01
From the bdf dump I can see that this filesystem alreay is 20 GB but has only 1.75 GB free space left.
So I assume you wish to increase the filesystem by abt. 18.25 GB to arrive at 20 GB free space?
I'm afraid, from the vgdisplay dump I can see that vg17 (which holds the filesystem) only has 155 PEs of 32 MB left unused.
So you have not quite 5 GB to add.
You could extend the volume by all those remaining 155 PEs by
lvextend -l $((640+155)) /dev/vg17/pmor_data_dat01
and then you would grow the filesystem by
fsadm -F vxfs -b 25440m /PMOR/db/ORPMORP/data/dat01
But as said, this would only increase by 5 GB.
If you need to allocate more you do have to extend the vg17 by one or more PVs which I guess you will claim from a (SAN?) storage subsystem.
After your SAN admin has assigned your server one or more new PVs you would issue an ioscan to identify the new device(s).
ioscan -nfCdisk | more
You will most likely identify the new disks from their missing device special files, or if you know the last instance No. from a prior ioscan you will recognise the new increment.
The you would have to create new device files
(which the system automatically would do on a reboot, but you don't want this)
If you noted the new instance No. you could
insf -e -C disk -I ???
(substitute ??? with the No.)
or you could recreate all special files if you noted the HW path the new disks are attached to
insf -e -H ?/?/?.?.???.?
(again replace the ?)
Then reissue ioscan to verify the special files have been created
ioscan -knfCdisk
Now one would check the size of the new disk
diskinfo /dev/rdsk/c?t?d?
Then create a physical volume
pvcreate /dev/rdsk/c?t?d?
If it belonged to another VG and hasn't been cleared cleanly you would have to use the force switch -f with pvcreate above.
Be extremly careful at this point and better check twice that you refer to the correct disk as the pvcreate would erase all data on the PV (well not really, but it would be a real pain to recover data from an overwritten PV)
Then extend vg17 by the new PV(s)
vgextend /dev/vg17 /dev/dsk/c?t?d?
(note that you use the block device here)
Now a verbose vgdisplay should list the new PV with all its PEs unallocated yet.
vgdisplay -v vg17 | more
Finally you can repeat the lvextend and fsadm as described above.
Apropos, I noticed you have many alternate links.
You would include those to vg17 in the same manner with the vgextend command from above but passing the alternate block device files as argument.
Create their special files also with the insf command as shown above after having identified their instance No. or HW path from an ioscan.
Also it could be necessary for your storage system to change the newly added PVs' timeout .
You would use the pvchange command to this end like
pvchange -t n /dev/dsk/c?t?d?
where n is the timeout in secs.
Ask your SAN admin or refer to the storage system vendor's manual for the required timeout.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2005 04:10 AM
11-11-2005 04:10 AM
Re: How to extend the running file system (LVM) size
Thanks for your response,
Just let me know if I would like to extend 5Gb to my /PMOR/db/ORPMORP/data/dat01 this filesystem, then simply i need to do these steps:
1. umount /dev/vg17/pmor_data_dat01
2. lvextend -l $((640+155)) /dev/vg17/pmor_data_dat01
3. fsadm -F vxfs -b 25440m /PMOR/db/ORPMORP/data/dat01
4. mount /dev/vg17/pmor_data_dat01
5. bdf
Will it show me now that the filesystem size is near about 25Gb?
If yes, then I will do same with the
/PMOR/db/ORPMORP/data/idx01 ,like
1. umount /dev/vg18/pmor_data_idx01
2. lvextend -l $((64+455)) /dev/vg18/pmor_data_idx01
3. fsadm -F vxfs -b 16657m /PMOR/db/ORPMORP/data/idx01
4. mount /dev/vg18/pmor_data_idx01
5. bdf
and it will show 16Gb of this file system?
Please I need your feedback
Thanks
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2005 04:56 AM
11-11-2005 04:56 AM
Re: How to extend the running file system (LVM) size
Thanks
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2005 05:01 AM
11-11-2005 05:01 AM
Re: How to extend the running file system (LVM) size
The entries are required for nwe file systems. When you are extending any existing file system, the entry allready lies in the file and it is not required to be created.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2005 05:32 AM
11-11-2005 05:32 AM
Re: How to extend the running file system (LVM) size
1. umount /dev/vg17/pmor_data_dat01
2. lvextend -l $((640+155)) /dev/vg17/pmor_data_dat01
3. fsadm -F vxfs -b 25440m /PMOR/db/ORPMORP/data/dat01
4. mount /dev/vg17/pmor_data_dat01
5. bdf
Will it show me now that the filesystem size is near about 25Gb?
If yes, then I will do same with the
/PMOR/db/ORPMORP/data/idx01 ,like
1. umount /dev/vg18/pmor_data_idx01
2. lvextend -l $((64+455)) /dev/vg18/pmor_data_idx01
3. fsadm -F vxfs -b 16657m /PMOR/db/ORPMORP/data/idx01
4. mount /dev/vg18/pmor_data_idx01
5. bdf
and it will show 16Gb of this file system?
Please I need your feedback
Thanks
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2005 07:46 AM
11-11-2005 07:46 AM
Re: How to extend the running file system (LVM) size
My data will be there in that perticualar file system when I will do - umount, lvextend, fsadm, mount.
I will backup for my safety.
But please let me know if incase i am not able to take the backup to that filesystem, my data will be there in that file system or i will loose all data by doing those steps.
Thanks
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2005 08:06 AM
11-11-2005 08:06 AM
Re: How to extend the running file system (LVM) size
The data will not be lost during this process but to be safe always have a good tested backup in hand.
Also you have made a wrong sequence of steps, as you have online JFS, unmounting is not required.
1. Extend lvol upon which the file system lies, to the available space in the VG.
2. Online extend the file system using the fsadm command by defining the mount point rather than LVOL device name.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2005 08:15 AM
11-11-2005 08:15 AM
Re: How to extend the running file system (LVM) size
This is the output of this command:
# swlist -l product | grep -i jfs
JFS B.11.23 The Base VxFS File System
OnlineJFS B.11.23.05 Online features of the VxFS File System
But I'll prefer to umount my filesystem and the i will mount.
is it ok?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2005 08:25 AM
11-11-2005 08:25 AM
Re: How to extend the running file system (LVM) size
Online JFS is a tested and reliable program. Allowing extending Online is the only feature provided.
You may opt for extending after unmounting. But in case you are doing it thatway replace fsadm command with extendfs command. The steps than should be something like this.
1. Stop applications accessing file system.
2. Take and test backup.
3. Umount file system.
4. extend LVOL as mentioned earlier.
5. extend file system using fsextend command
#extendfs -F vxfs /dev//dev/vg17/pmor_data_dat01
Here you do not require to mention the LVOL size, the file system will be extending to the available space in LVOL.
6. Remount file system.
7. Check from the output of bdf that size extended.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2005 08:40 AM
11-11-2005 08:40 AM
Re: How to extend the running file system (LVM) size
I really appreciate your efforts for me.
Vipin