- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Take space from lvol to another
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-06-2008 10:34 PM
04-06-2008 10:34 PM
I have to filesystem in the same volume group,
/dev/vg01/lvol9 92176384 9400472 82129280 10% /u09
/dev/vg01/lvol8 71696384 60367720 11240200 84% /u08
I want to take 30GB from available size in lvol9 to set in lvol8
Is this possible or no.
Thanks & kind Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 10:46 PM
04-06-2008 10:46 PM
Re: Take space from lvol to another
Take the back up of /u09 and reduce the lvol9 for reduce the size. Then do exendfs to lvol9. Now you can increase the space in /u08.
Regsrds,
Davis Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 10:56 PM
04-06-2008 10:56 PM
Re: Take space from lvol to another
You can give me more details
And what you mean In "" exendfs" to lvol9 ""
thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 11:04 PM
04-06-2008 11:04 PM
Re: Take space from lvol to another
Yes devis is right.
Backup lvol09
#umount /dev/vg01/lvol9
#lvreduce -L
Enter size in MB which is reduced size of lvol9
#umount /dev/vg01/lvol8
#lvextend -L
Enter size in MB which is increased size.
#extendfs -F vxfs /dev/vg01/rlvol8
Assuming FS is vxfs type.
#mount /dev/vg01/lvol8
#mount /dev/vg01/lvol9
Done.
-=ShRi=-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 11:07 PM
04-06-2008 11:07 PM
Re: Take space from lvol to another
I forgot to mention before you mount lvol9, you have to restore data from backup on it,if necessary.
lvol8 new size will be current size + extra space taken i.e. increased size.
-=ShRi=-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 11:09 PM
04-06-2008 11:09 PM
Solution1) #take the backup of /u09.
2) #umount /u09
3) #lvreduce -L 60710M /dev/vg01/lvol9
4) #extendfs -F vxfs /dev/vg01/rlvol9
5) #umount /u08
6) #lvextend -L 103154M /dev/vg01/lvol8
7) #extendfs -F vxfs /dev/vg01/rlvol8
8) #mount /dev/vg01/lvol9 /u09
9) #mount /dev/vg01/lvol8 /u08
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 11:15 PM
04-06-2008 11:15 PM
Re: Take space from lvol to another
You can check it by using:
#swlist -l pakage| grep -i JFS
If online JFS is installed then slight difference in procedure. Resizing will be done by-
#fsadm -b
size is decresed size of lvol9
#fsadm -b
size is increased size of lvol8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 11:22 PM
04-06-2008 11:22 PM
Re: Take space from lvol to another
thanks for all replay
but i have a last Questions, Is there any impact of lvreduce command on my data
i need yes or no answer?
i have vxfs filesystem
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 11:29 PM
04-06-2008 11:29 PM
Re: Take space from lvol to another
It may damage your data. So backup is very important.
Davis Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 11:38 PM
04-06-2008 11:38 PM
Re: Take space from lvol to another
If lvreduce is reducing your disk size to X which is greater than data lvol holds then their are very rare chances of loosing data. But if you are reducing to size which is lesser than data it hold then you are surely going to mess up with your data.
Anyways, why to take chance.. Be ready with backup!
-=ShRi=-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 12:12 AM
04-07-2008 12:12 AM
Re: Take space from lvol to another
after applay lvreduce command thes message appeared
Warning: rounding up logical volume size to extent boundary at size "49728" MB.
Warning: The Logical Volume has a file system larger than the reduced size.
Reducing the Logical Volume will cause filesystem corruption.
When a logical volume is reduced useful data might get lost;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 12:20 AM
04-07-2008 12:20 AM
Re: Take space from lvol to another
So take backup and proceed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 12:39 AM
04-07-2008 12:39 AM
Re: Take space from lvol to another
.back up is very important
and if online jfs installed u can use fsadm
command
otherwise u can use extendfs command for extending filesytem ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 12:41 AM
04-07-2008 12:41 AM
Re: Take space from lvol to another
JFS B.11.23 The Base VxFS File System
OnlineJFS B.11.23.0609 Online features of the VxFS File System
see if u are getting result like these then it means online jfs is isntalled then u can use fsadm command otherwise u have to use
extendfs command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 12:44 AM
04-07-2008 12:44 AM
Re: Take space from lvol to another
You may need to do newfs for reducing /u09.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 01:05 AM
04-07-2008 01:05 AM
Re: Take space from lvol to another
i am reducing the lvol9, all step applaying is Successfully
except
#extendfs -F vxfs /dev/vg01/lvol9 after this command appeared this message
vxfs extendfs: Only expansion allowed #mount /dev/vg01/lvol9 /u09 and after applay this command appearing this message
vxfs mount: /dev/vg01/lvol9 is corrupted. needs checking
how to solve this problem and if i need to do new filesystem i don't need to remove the last
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 01:19 AM
04-07-2008 01:19 AM
Re: Take space from lvol to another
i am using this command but the problem is still
#fsck -F vxfs -o full /dev/vg01/lvol9
file system is larger than device
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 01:42 AM
04-07-2008 01:42 AM
Re: Take space from lvol to another
if you have onlile JFS installed then use the command:
reduce /u09..prev size 92GB.. reduced to 62 GB
============================================================
fsadm -F vxfs -e /u09
fsadm -F vxfs -b 65011712 /u09
lvreduce -L 63488 /dev/vg01/lvol9
Increase /u08 to 30GB--prev 70GB so new 100GB
=============================================
lvextend -L 10000 /dev/vg01/lvol8
fsadm -b 104857600 /u08
Thanks & Regards
Aashique
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 01:53 AM
04-07-2008 01:53 AM
Re: Take space from lvol to another
I am reducing the lvol9 and extend the lvol8 successfully except the filesystem
Of lvol9 is corrupted and I canâ t mount the /u09.
see the output of this command
#mount /dev/vg01/lvol9 /u09
vxfs mount: /dev/vg01/lvol9 is corrupted. needs checking
#extendfs -F vxfs /dev/vg01/lvol9
vxfs extendfs: Only expansion allowed.
#fsck -F vxfs -o full /dev/vg01/lvol9
file system is larger than device
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 02:15 AM
04-07-2008 02:15 AM
Re: Take space from lvol to another
>>#mount /dev/vg01/lvol9 /u09
vxfs mount: /dev/vg01/lvol9 is corrupted. needs checking
For this you need to create new FS on lvol9. As you have already backed up data of lvol during lvreduce so you can go ahead with newfs on it. Use :
#newfs -F vxfs /dev/vg01/rlol9
>>#extendfs -F vxfs /dev/vg01/lvol9
vxfs extendfs: Only expansion allowed.
Reference to my command list given above there is no need of extendfs for lvol9 as you have reduced lvol. So this command totally irrelevant in this context and should not be runned. Anyways as you are creating new FS suggested as above so no need to worry about this thing now.
-=ShRi=-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 02:26 AM
04-07-2008 02:26 AM
Re: Take space from lvol to another
If you want to large files support use this:
#newfs -F vxfs -o largefiles /dev/vg01/rlol9
Thanks & Regards
Aashique
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2008 03:48 AM
04-07-2008 03:48 AM
Re: Take space from lvol to another
i am applay this command and then it the filesystem is working
#newfs -F vxfs -o largefiles /dev/vg01/rlvol9
version 4 layout
41189376 sectors, 5148672 blocks of size 8192, log size 256 blocks
unlimited inodes, largefiles supported
5148672 data blocks, 5148192 free data blocks
158 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 4096 data blocks
#mount /dev/vg01/lvol9 /u09
#bdf
/dev/vg01/lvol9 41189376 3536 40864088 0% /u09
but i am lost all data
thanks for all