- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Increasing a Volume
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-12-2003 01:13 PM
02-12-2003 01:13 PM
Have a Volume #8 out of 10 that is at 96% capacity and need a way to create more avaible disk space. My LVDisplay info is below....
LV Name /dev/vg00/lvol8
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 92
Current LE 23
Allocated PE 23
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
I have plent of space on other Volumes but this one was set small and seems to grow much quicker than the others.
What are the steps needed to accomplish this?
Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 01:19 PM
02-12-2003 01:19 PM
Re: Increasing a Volume
or
delete unwanted file in lvol8 and then check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 01:26 PM
02-12-2003 01:26 PM
Re: Increasing a Volume
A similar question just arose. Essentially, you will need to 'lvextend' your logical volume (if you have space on the physical volume), and then resize your filesystem.
I suggest you use SAM if you are new to this.
I also suggest that you first have a look at the chapter on managing disks and files in "Managing Systems and Workgroups: A Guide for HP-UX System Administrators":
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
A quick read will help you understand your options much better. SAM can guide you through the mechanics or you can use the actual LVM commands.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 01:27 PM
02-12-2003 01:27 PM
Re: Increasing a Volume
Another way to handle the problem is to offload some of the files in /var. A good candidate is /var/adm/sw. Simply tar the files in this directory to a backup, do:
cd /var/adm/sw
rm -R *
cd /
use sam to create a new logical volume and use /var/adm/sw as the mount point. Make sure the lvol is large enough to contain all the files that were in /var/adm/sw plus room to spare (needed when you install patches). finally, untar the files into /var/adm/sw.
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 01:31 PM
02-12-2003 01:31 PM
Re: Increasing a Volume
Either use the output of 'bdf' or view the /etc/fstab file.
Depending on the mount-point will determin if the change can be completely done on line or a reboot maybe required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 01:32 PM
02-12-2003 01:32 PM
Re: Increasing a Volume
If you don't have enough space available on vg00, then you can add another disk to this vg first (if you have a free disk). You can then increase lv size through SAM. If you don't have Online JFS installed, you might want to bring the server to single user mode and then unmount the file system first. Once the FS is extended, you can mount it back and bring the system to normal run level.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 01:49 PM
02-12-2003 01:49 PM
SolutionVG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 12
Open LV 12
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 3751
Free PE 4929
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
The two bits of information are PE size, and free PE. Multiply these two together to find out how many megabytes of space is available for assignment in the vg00 volume group. If the number isn't enough to meet your anticipated needs, there are a few things you can do; the easiest of these is to add hard disk(s) to the volume group.
If there is enough unallocated space, the next step is to extend the logical volume. The best way to do this is to calculate the number of PE's you need. In the above case, a PE is 8 megabytes. So if I want to add 32 megabytes to the filesystem, I need 4 PE's.
The next information to collect is the number of PE's in the logical volume that you wish to extend. The command "lvdisplay /dev/vg00/lvol8" will show you what you need. Here's what mine looks like:
LV Name /dev/vg00/lvol8
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1000
Current LE 125
Allocated PE 125
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
So my logical volume #8 (/dev/vg00/lvol8) is 125 PE's times 8 megabytes, or 1000 bytes large.
Simple math: add the number of PE's currently in the logical volume to the number you need. In my example, I would need 129 (125 PE's +4 PE's).
Next, extend the filesystem. Do this with "lvextend -L 129 /dev/vg00/lvol8". This adds the 32 megabytes to the 1000 that are already there.
The last step depends on whether or not your system has fsadm installed. If you do, your job is about done. The command "fsadm -b 1032M /opt" extends the mounted filesystem, and you don't have to unmount it beforehand. You can check that the free space has increased by the specified amount with "bdf".
If you don't have fsadm, you need to schedule a reboot. You first have to unmount the filesystem with "umount /dev/vg00/lvol8". Next "extendfs /dev/vg00/lvol8" will extend the filesystem to the maximum amount defined by the logical volume. After a reboot, you should see the space that you allocated.
Good luck, and let us know how this works out for you.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2003 02:20 AM
02-13-2003 02:20 AM
Re: Increasing a Volume
since other replies guided you already to
lvextend / extendfs, I just want to remark, that it might be not a simple task to unmount /var or similar filesystems.
I use to call only the lvextend-command. Additionally I have this commands added in
/sbin/bcheckrc just before the final for-loop:
/sbin/umount /dev/vg00/lvol8 2>/dev/null
/sbin/extendfs /dev/vg00/rlvol8
During the reboot, the volume gets extended without problems.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2003 08:46 AM
02-13-2003 08:46 AM
Re: Increasing a Volume
vgdisplay: Cannot display volume group "/dev/vg00/lvol8".
/dev/vg00
My PE size = 4
My PE free = 136
Also, is there a way to have keyboard history like "doskey up arrow" functionality?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2003 08:50 AM
02-13-2003 08:50 AM
Re: Increasing a Volume
# lvdisplay -v /dev/vg00/lvol8
Also for getting command hostory, you can set the HISTFILE argument in your local profile file:
HISTSIZE=4096
HISTFILE=/.sh_history
Or you can execute this for temp. usage:
# ksh -o vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2003 08:52 AM
02-13-2003 08:52 AM
Re: Increasing a Volume
It's "vgdisplay /dev/vg00" (or just vg00 without the dev) not "vgdisplay /dev/vg00/lvol08".
Secondly, to enable keyboard history:
export EDITOR=vi
set -o vi
will then recall your last command. It's based on vi so I hope you have some familiarity with vi.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2003 10:08 AM
02-13-2003 10:08 AM
Re: Increasing a Volume
My Vol8 has 23 PE so the Vol is currently 92MB
So to double the size I would type...
lvextend -L 401 /dev/vg00/lvol8
How do I check to see if I have FSADM on our server?
I typed fsadm and received...
fsadm:
usage: fsadm [-F FStype] [-V] [-o specific_options] special
If I do have it then I type
fsadm -b 1032M /opt
How do you retrieve the last command? What key(s) to press? I tried the up arrow but that didn't work. Currently I am accessing the server via Reflection, VT320
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2003 10:19 AM
02-13-2003 10:19 AM
Re: Increasing a Volume
lvextend -L 1000 /dev/vg00/lvol8
and to see if you have Online JFS, you just have to do
#swlist -l product|grep Adv
if Advanced JFS shows up, you're in business and can do the fsadm -F vxfs -b 1024000 /opt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2003 10:29 AM
02-13-2003 10:29 AM
Re: Increasing a Volume
The parameter after -L should be in Mbytes. If you want to specify -l, then use the LE numbers.
# lvextend -L 500 lv_name will increase the space to 500MB.
# swlist -l product - will tell you if you have Online JFS installed on the system. If yes, you can use fsadm command for extending it.
"Esc+k" will repeat the last command you typed. Also use 'vi' commands for operations - h, j, k and l for moving.