- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Extend Logical 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-03-2003 01:41 PM
02-03-2003 01:41 PM
John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 01:47 PM
02-03-2003 01:47 PM
Re: Extend Logical Volume
(1) Can you tell us what "filesystem" you are talking about?
(2) do you have online jfs installed?
(3) What OS level are you running?
(4) is your system up-to-date in patches?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 01:52 PM
02-03-2003 01:52 PM
SolutionSince you are new to HP-UX, i suggest you make sure you have good backup.
vg01 - your volume group
lvol1 - logical volume that is completely full
lvol2 - logical volume that is empty.
1. Stop the app so that it won't access the filesystems.
2. Unmount lvol2.
umount /dev/vg01/lvol2
3. lvremove /dev/vg01/lvol2
This will free up lvol2.
4. Unmount lvol1
umount /dev/vg01/lvol1
5. Now increase lvol1 to + the size of lvol2. new_size = (size of lvol1 + size of lvol2 ) in MB
lvextend -L new_size /dev/vg01/lvol1
extendfs /dev/vg01/lvol1
6. Edit /etc/fstab. Comment out the entry that has lvol2
7. Mount lvol1 back
mount -a
If you have online-jfs, you can do it online. In that case you dn't need to unmount lvol1. While it is still mounted do
#lvextend -L new_size /dev/vg01/lvol
#fsadm -b new_size*1024 /mountpoint_of_lvol1
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 01:53 PM
02-03-2003 01:53 PM
Re: Extend Logical Volume
(2) No online jfs
(3) 10.20
(4) I do not believe this system has had many patches installed since Y2K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 01:54 PM
02-03-2003 01:54 PM
Re: Extend Logical Volume
# vgdisplay /dev/myvg (substitute your volume group name)
This will tell you how many extents are available.
# lvremove /dev/myvg/mylvol (will remove the logical volume and release the space.
To extend the other filsystem we need to know if you have the on-line JFS product installed.
generally speaking if not, you can unmount the filsystem and do this. You could attempt to do this through 'sam'. If you have the on-line JFS installed, then 'sam' can do this.
# umount /myfs
# lvextend /dev/myvg/mylvol
# extendfs /dev/myvg/rmylvol
# mount /myfs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 02:04 PM
02-03-2003 02:04 PM
Re: Extend Logical Volume
1) Do a good backup of both file systems. Find out which logical volumes holds these file systems.
2) Unmount both file systems:
# umount /fs1
# umount /fs2
3) Execute SAM and select "disk and file systems"
4) Select logical volumes. Select the one which you want to remove and remove it.
5) Select the logical volume you want to extend and then choose extend from Actions menu.
6) Input the NEW FS size while prompted and select to extend it.
7) Exit from SAM and mount the FS back:
# mount /dev/vg_name/lv_name /fs2
# rmdir /fs1
# bdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 02:04 PM
02-03-2003 02:04 PM
Re: Extend Logical Volume
the only question now if whether or not you're trying to extend a contiguous mount point. which mount point is the logical volume mounted? You stated that you are new to HP-UX, so to determine if the logical volume is contiguous or not use sfu lvdisplay -v /dev/vg00/lvol1 | grep -i allocation
does the output have the word contiguous in it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 02:06 PM
02-03-2003 02:06 PM
Re: Extend Logical Volume
lvdisplay -v /dev/vg00/lvol1 | grep -i allocation
sfu is a product that allows the issuance of commands as root. you probably don't have it, so issue the command above ...
... or just let us know what mount point your're dealing with.