- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
06-14-2000 12:04 AM
06-14-2000 12:04 AM
Logical Volume
could you please help me on how to extend an active logical volume?
this is the logical volume that i would like to extend:
/dev/vg00/lvol5 19861 7317 10557 41% /home
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2000 12:24 AM
06-14-2000 12:24 AM
Re: Logical Volume
# umount /home
# fsck ?y /dev/vg00/lvol5
# lvextend ?L 400 /dev/vg00/lvol5
(exchange 400 with the total amount of MB's you want it to be after the change)
# extendfs /dev/vg00/rlvol5
# mount /dev/vg00/lvol5 /home
Good luck!
Evert Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2000 12:29 AM
06-14-2000 12:29 AM
Re: Logical Volume
It depends on wether the filesystem is vxfs or hfs as to wether you can extend the filesystem whilst it is still active.
You can determine the filesystem type by issuing the command -
fstyp /dev/vg00/lvol5. If this returns vxfs then you can extend it while still active only if you have the online jfs product installed. If you have then the command would be -
fsadm -F vxfs -b
where sectors = the new LV size in Mbytes * 1024.
If you do not have online jfs or the filesystem is hfs then you will have to unmount the filesystem and extend it using the commands -
lvextend -L
extendfs /dev/vg00/rlvol5
Then remount the filesystem
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2000 12:32 AM
06-14-2000 12:32 AM
Re: Logical Volume
lvextend -L 100 /dev/vg00/lvol5 increases the size by 100 MB
usethe -l flag to increase extents
use vgextend to extend an LVM volume group by adding physical volumes.
NB SAM Gui can be used and has good on line help / egs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2000 01:26 AM
06-14-2000 01:26 AM
Re: Logical Volume
My fileSystem Type is hfs and if i issue the command umount /home it retain the following message:
umount: cannot unmount /home : Device busy
and i issued the command ps -ef | grep (filename) to see processing running and the result was:
lab 19669 19666 3 Jun 1 ? 0:54 oracleLAB (DESCRIPTION=(LOCAL=YE
S)(ADDRESS=(PROTOCOL=beq)))
lab 21576 21573 0 07:28:25 ? 0:00 oracleLAB (DESCRIPTION=(LOCAL=YE
S)(ADDRESS=(PROTOCOL=beq)))
lab 14827 1 0 May 31 ? 0:00 ec_msgd
lab 19666 1 0 Jun 1 ? 0:00 ec_sqld
lab 21573 1 2 07:28:24 ? 0:01 l_inst_intf -search_dir/stm/lab/
samples/new -backup_dir/stm/
Should I first stop all processes and after umount /home ?
You help will be appreciated.
Thanks
A Cossa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2000 01:38 AM
06-14-2000 01:38 AM
Re: Logical Volume
You may not need to shut down any applications, it may just be a case of getting users to log off. If you issue the command -
fuser /dev/vg00/lvol5
this will give you a list of processes running on the filesystem. You can the get the exact details using ps -ef | grep
Derek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2000 05:05 AM
06-14-2000 05:05 AM
Re: Logical Volume
If Derek's answer is not sufficient, there is a utility called "lsof" - list open files. It takes as argument a path to a file system and shows files that are open in it. (http://hpux.cs.utah.edu/)
Also, make sure that there are no other file systems mounted below /home. It there are, you have to unmount those first and then remount after you do the extension. You can find those by running "bdf" and looking for "home" as first part of the path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2000 05:39 AM
06-14-2000 05:39 AM
Re: Logical Volume
Hopefully this could help..
umount /stand
if your having problems unmounting it kill all the jobs running on it (i.e fuser -ku /dev/vgXX/lvXXX)
lvextend -L "new_size MB" /dev/vgXX/lvXXX
extendfs /dev/vgX/lvXXXX
mount /stand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2000 09:46 PM
06-14-2000 09:46 PM
Re: Logical Volume
/home should be the default home directory for the users.
For unmounting u have to make sure the users on this has to logout.
# umount /home
# lvextend -L XXX /dev/vg00/rlvol5
XXX - Total size of the filesystem after extending.
# extendfs /dev/vg00/rlvol5
# fsck /dev/vg00/rlvol5
# mount /dev/vg00/rlvol5 /home.
Hope this helps
regards
venu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2000 10:32 PM
06-14-2000 10:32 PM
Re: Logical Volume
As your filesystem if "hfs" ;
1.fuser -u /dev/vg00/lvol5 (to determine users)
2.fuser -ku /dev/vg00/lovl5 (to kill all users or option "c" can do)
3.umount /home
4.lvextend -L
5.extendfs /dev/vg00/rlvol5
6.mount /dev/vg00/lvol5 /home
hope this helps..
regards,
Amit.