- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvreduce
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
04-21-2005 12:58 AM
04-21-2005 12:58 AM
lvreduce
Please find attached file herewith containing the available VGs on a MSA 1000. The problem now is I need to freed up space from these and create a new LV which will be around 1.5 TB cause to take a Oracle Daily HOT Backup.
Please guide me what all steps I should take to do a lvreduce or do i need to do a vgreduce too, cause there are 2 diff. VGs.
Early response appreciated.
Thanks in advance
Abhijit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 01:05 AM
04-21-2005 01:05 AM
Re: lvreduce
1. Decide which VG the lvol be creted in.
2. Back it up.
3. Make free space avaialbale. You should be deleting unwanted files.
4. Reduce the lvols to appropriate sizes.
(If you have OnlineJFS, you can do it online, else you will have to unmount the FS)
If you have onlineJFS, the procedure is as follows.
fsadm -F vxfs -b "new_size" /dev/vgxx/lvolx
lvreduce -L "new_size" /dev/vgxx/lvolx
If you do not have onlineJFS, then as follows.
umount /FS
fsadm -F vxfs -b "new_size" /dev/vgxx/lvolx
lvreduce -L "new_size" /dev/vgxx/lvolx
Check if everything is OK., I would like to repeat that take the backup first.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 01:13 AM
04-21-2005 01:13 AM
Re: lvreduce
not only you will have to lvreduce lv from volume group but you will have to fund which disk tcan be taken from one volume group and used for the vg where you want to create you 1.5Tb lv.
check these links :
for lvreduce
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=74968
for vgreduce
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=816216
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=139550
Also, I would start the procedure with a proper backup.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 01:21 AM
04-21-2005 01:21 AM
Re: lvreduce
thanks for early reply....
First thing is I don't have Online JFS and second is I have two diffrent VGS as mentioned in the file.
so I need to freed up the space from these two make it as a raw space and then create a LV in one of the VG and extend it to that space.
how to go abt it.....?
Abhijit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 02:09 AM
04-21-2005 02:09 AM
Re: lvreduce
so you have the answer, reduce space from one(or more)LV, create a new LV.
your job to think which to reduce....
if choosing a non-system LV doing it with SAM, will be the easier, and you won't forget anything.
if choosing LV containing /var /opt ...etc..
(IF NO OTHER CHOICE): you'll have to boot as a single user.
even see : man lvextend / vgextend
or thread, where discussing about increase/decrease LV and FS :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=640683
HTH
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 02:15 AM
04-21-2005 02:15 AM
Re: lvreduce
Run pvdisplay on each of pvs in vgs and check if you can move any of the data to some other pvs. (check pvmove command. Read man page first) If vgs are stripped, you can not use pvmove command.
Once a pv/pvs are made free, vgreduce those pvs and create (or add to a vg, where you want to create a FS)
Then, vgcreate
lvcreate. While doing vgcreate take care of no. pes. Check man page of vgcreate)
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 02:39 PM
04-21-2005 02:39 PM
Re: lvreduce
Have you checked wheather your VG have some unallocated space or not. They might have some free physical Volumes. Check it by
vgdisplay -v /dev/vgname
Do it for both VGs. Attachment shows output that envolves three VGs. Which two you want to play with. Do it for those two.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 04:53 PM
04-21-2005 04:53 PM
Re: lvreduce
thanks for your early responses but I have one more query that as these VGs are in MSA when I give vgsiplave -v VGNAME it shows me only single PV per VG as attached herewith.
So please giude me how to take care of the PVs while doing a vgreduce
Thanks and Regards,
Abhijit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 05:09 PM
04-21-2005 05:09 PM
Re: lvreduce
Looks difficult to create a single filesystem with all the free PEs and the free space left on each logical volume. The maximum space you can create is on the third VG where you have some Free PEs and you can perhaps do an lvreduce on some logical volumes in the third VG and create a volume out of it.
The maximum space you get depends on how well you handle the Free PEs and free space.
/back04 is around 413GB free.. lvreduce this filesystem and take the maximum space from this. /dev/vgmsa03 has around 15288 free PEs which comes to 978GB.
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2005 03:27 PM
04-23-2005 03:27 PM
Re: lvreduce
As earlier clarified, You can have a single volume of 978GB in /dev/vgmsa03 Volume group without altering anything.
Another thing I would suggest is to have an existing volume extended to the allowed limit here by another 978 GB to become a total of 1490GB.
If you can do it with creating multiple volumes then you can also create one volume each of 578GB in /dev/vgmsa01 and /dev/vgmsa02.
The best thing you can do here is to create a new volume in either /dev/vgmsa01 or /dev/vgmsa02 of 512GB and copy the data from /dev/vgmsa03/back04 onto it and mount it on /back04 and extend /dev/vgmsa03/back04 to 1490Gb and use it in place of new Volume you are intending to create having mount at a desires mount point.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2005 08:47 AM
04-24-2005 08:47 AM
Re: lvreduce
First you must defrag the file system before reducing it. See my posing in the link.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=517467