- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Increase and decrease the LVM
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
08-23-2000 10:52 PM
08-23-2000 10:52 PM
Increase and decrease the LVM
I have a disk with the below information:
#lvdisplay -v
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2171
VGDA 2
PE Size (Mbytes) 4
Total PE 2170
Alloc PE 2048
Free PE 122
Total PVG 0
--- Logical volumes ---
LV Name /dev/vg01/lvol11
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 1024
Allocated PE 1024
Used PV 1
LV Name /dev/vg01/lvol12
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 1024
Allocated PE 1024
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c0t12d0
PV Status available
Total PE 2170
Free PE 122
#bdf
/dev/vg01/lvol12 4103345 798241 2894769 22% /data0
/dev/vg01/lvol11 4103345 194876 3498134 5% /archive
what I need is to change the size of /dev/vg01/lvol12 to 2GB and add it to /dev/vg01/lvol11.
Help on it please.
Thanks,
Augusto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2000 11:01 PM
08-23-2000 11:01 PM
Re: Increase and decrease the LVM
At first, backup data of directory /data0 and /archive. And then unmount those directories. After this, you can delete those lvols with command lvremove.
Recreate lvol as the size what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2000 11:14 PM
08-23-2000 11:14 PM
Re: Increase and decrease the LVM
The only way to achieve what you want on-the-fly (without having to backup your data, recreate the lvols to the desired size and reload) is by purchasing and installing OnlineJFS 3.3 This allows you to resize on-the-fly, but, if any data is on the 2Gb part of the filesystem you are trying to freeup it will move the data to part of the disk which you are keeping, which is nice and safe. Ive used it here, works fine.
Using the normal OnlineJFS (not ver 3.3) when you try to reduce your 4Gb lvol to 2Gb on-the-fly it may not be able to if any data is on the 2Gb you are trying to freeup, so this may not work.
If you unmount the lvols and try to do lvreduce it will warn you that if data is on the 2Gb you are tying to free up you will lose it - so this is not safe either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2000 02:40 AM
08-24-2000 02:40 AM
Re: Increase and decrease the LVM
Create /dev/vg01/lvol12 with 2Gb space and create the file system. Mount the file system and restore the data. If things are working, then unmount the (/dev/vg01/lvol11) /archive file system. extend the logical volume /dev/vg01/lvol11 and extend the file system.
the steps are like this.
1. Backup
2. Umount /data0
3. lvremove /dev/vg01/lvol12
4. lvcreate -n lvol12 -L 2000 /dev/vg01
5. newfs -F vxfs /dev/vg01/rlvol12
6. mount /data0
7. restore and check
8. umount /archive
9. lvextend -L 6000 /dev/vg01/lvol11
10. extendfs -F vxfs /dev/vg01/rlvol11
11. mount /archive
hope this helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2000 04:13 AM
08-24-2000 04:13 AM
Re: Increase and decrease the LVM
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2000 04:27 AM
08-24-2000 04:27 AM
Re: Increase and decrease the LVM
If you have online JFS you MAY be able to dynamically reduce the size of your logical volume. The fsadm command is used for this purpose. This is not guarenteed to work if the file system is heavily fragmented. It is sometimes possible to defragment extents and directories first and then consolidate space when consolidation alone doesn't work. See man pages for fsadm.
...JRF...