- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remove lvol and assign space to diff lvol
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
Discussions
Discussions
Forums
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
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
тАО03-11-2008 01:17 AM
тАО03-11-2008 01:17 AM
The system is 11.11 and has Online JFS.
I want to move the space
from /dev/vg01/lvol6 (/USRM) (7500 PE's)
to /dev/vg01/lvol3. (/AM)
Do I simply do
1) umount /USRM
2) lvremove -A -f /dev/vg01/lvol6
3) Remove entry for lvol6 from /etc/fstab
4) lvextend -l 7500 /dev/vg01/lvol3
5) fsadm -F vxfs -b 7500 ?? (is there a conversion here from PE to Sectors??)
Can i do this live without affecting other mountpoints on /dev/vg01?
Also, what can I do to backup configuration in order to restore...and how to restore afterwards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 01:31 AM
тАО03-11-2008 01:31 AM
Re: Remove lvol and assign space to diff lvol
2)lvremove -A [y|n] /dev/vg01/lvol6
"-A y" is the default
use "-f" only if needed
4) lvextend -l 7500 /dev/vg01/lvol3
"-l 7500" is the new *total* size - you may adjust this value
If needed, you can re-create the old LVOL. If you don't autobackup the new config, the backup and the current config will be different. But the system preserve a second backup with the previous config y default. see man vgcfgbackup.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 02:20 AM
тАО03-11-2008 02:20 AM
Re: Remove lvol and assign space to diff lvol
umount /USRM
lvremove -f /dev/vg01/lvol6
edit fstab
lvextend -l 7500 /dev/vg01/lvol3
fsadm -F vxfs -b (7500*PEsize)M /AM
Looks fine....will work.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 05:16 AM
тАО03-11-2008 05:16 AM
Re: Remove lvol and assign space to diff lvol
If I'm adding 50 PE's and the lvol is already 50 PEs do i put -l 100 or -l 50.
i think it's -l 100.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 05:22 AM
тАО03-11-2008 05:22 AM
SolutionUsing your example (extending a 50 extent LV by 50 for a total of 100 extents) you would do 'lvextend -l 100 /dev/vg??/lvol??'.
For your '/dev/vg01/lvol3' you would need to specify the TOTAL (current # of /dev/vg01/lvol3 extents + the 7500 extents from lvol6).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 05:22 AM
тАО03-11-2008 05:22 AM
Re: Remove lvol and assign space to diff lvol
http://docs.hp.com/en/B2355-90691/lvextend.1M.html
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 05:24 AM
тАО03-11-2008 05:24 AM
Re: Remove lvol and assign space to diff lvol
So, it would be "-L 100" to specify that the total new size is 100 extents.
The "-l" is to indicated in MB you large you want the new file system to be (not how much bigger, it's not relative, it's a total).
I don't use the "-l" in MB because if, for example, I've got 521 extents remaining to use in a vg, I'll allocate by hard numbers PE, not try to figure out in MB what will use all or part of that number that I'm trying to go for.
Of course, you have to know how many MB your PEs are, to get an idea of what you're allocating - so you've still got to do both.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 05:27 AM
тАО03-11-2008 05:27 AM
Re: Remove lvol and assign space to diff lvol
Have a look at the lvextend man page for confirmation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 05:35 AM
тАО03-11-2008 05:35 AM
Re: Remove lvol and assign space to diff lvol
/usr/sbin/lvextend [-A autobackup] {-l le_number | -L lv_size | -m mirror_copies} lv_path [pv_path ... | pvg_name ...]
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2008 12:00 AM
тАО03-12-2008 12:00 AM
Re: Remove lvol and assign space to diff lvol
I successfully removed lvol6 and extended those PE's onto lvol3.
The fsadm command failed. No licensing.
So I went to my test system and the issue duplicates there.
I wanted to try extendfs on my test system.
this happened:
extendfs -F vxfs /kju
vxfs extendfs: /kju wrong file type
cannot open device /kju
The fstab for kju is
/dev/vg01/lvtest1 /kju vxfs delaylog 0 1
BUT I do an fstype on the disk for lvtest1 and get:
/ =>fstyp /dev/dsk/c0t5d0
unknown_fstyp (no matches)
So now I have on my production box and LV with 12500 extents but only 5000 are part of the filesystem. And I cannot extend it with fsadm.
What do I do? I'm stuck. I don't even know if I blow away the whole lvol if I'll be able to recreate it as vxfs...(I'm thinking this because of the failure of fsadm and the unknown value returned from fstyp).
I'm stuck. We only have hardware support and not software support on this system.