- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Extending the LV
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
тАО05-07-2009 09:30 AM
тАО05-07-2009 09:30 AM
I want to correct myself on extending the LV size.
For examble,
My LV name : /dev/vg02/lvol1
Size : 210GB
Now i want to extend this to 310GB (that is to increase 100GB).
1)Can I use following method if it is hfs:
# umount /dev/vg01/lvol1
# lvextend -L 310000 /dev/vg01/lvol1
# fsck /dev/vg01/lvol1 ---> is it needed?
# extendfs -F hfs /dev/vg01/lvol1
# then we have to mount it again.
2) Can i use following method if it is vxfs(jfs) and Online JFS not installed.
# umount /dev/vg01/lvol1
# lvextend -L 310000 /dev/vg01/lvol1
# fsck /dev/vg01/lvol1 ---> is it needed?
# extendfs -F vxfs /dev/vg01/lvol1
# then we have to mount it again.
3)Can we use follwoing method if online jfs is installed?
# fsadm -F vxjs -b 100000M /mount_point
So advantage of online Jfs is that we dont need to unmount the file system?
And in "fsadm" we need just to give the increment size only, not total size?
So these are my views pls correct myself.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 09:34 AM
тАО05-07-2009 09:34 AM
Re: Extending the LV
# fsck /dev/vg01/lvol1 ---> is it needed?
No
So advantage of online Jfs is that we dont need to unmount the file system?
Yes
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 09:36 AM
тАО05-07-2009 09:36 AM
Re: Extending the LV
1)Can I use following method if it is hfs:
# umount /dev/vg01/lvol1
# lvextend -L 310000 /dev/vg01/lvol1
This can be done before umount
# fsck /dev/vg01/lvol1 ---> is it needed?
No, not needed
# extendfs -F hfs /dev/vg01/lvol1
# then we have to mount it again.
2) Can i use following method if it is vxfs(jfs) and Online JFS not installed.
No need to umount with OnlineJFS. That is kind of the point.
3)Can we use follwoing method if online jfs is installed?
# fsadm -F vxjs -b 100000M /mount_point
So advantage of online Jfs is that we dont need to unmount the file system?
YES
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 11:14 AM
тАО05-07-2009 11:14 AM
Re: Extending the LV
I still want to clarify myself.
1)Can we use second method (2) to create the filesystem even if online JFS installed?
2) is third (3) command is used to just inrease 100GB?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 11:42 AM
тАО05-07-2009 11:42 AM
Solution1)Can we use second method (2) to create the filesystem even if online JFS installed?
yes you can do the 2nd method even if online JFS is installed.
2) is third (3) command is used to just inrease 100GB?
First extend the lvol using lvextend and then do a fsadm but use the new size as 310 not 100
Like it or worked !! Click kudos !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 11:46 AM
тАО05-07-2009 11:46 AM
Re: Extending the LV
Method 2 will work, but contains extra steps.
Method 3 is the best if Online JFS is available and licensed.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 11:50 AM
тАО05-07-2009 11:50 AM
Re: Extending the LV
I still want to clarify myself.
1)Can we use second method (2) to create the filesystem even if online JFS installed?
Yes you can still use umount lvextend extendfs mount even when online-jfs is installed.
2) is third (3) command is used to just inrease 100GB?
# lvextend -L [new_size_MB] /dev/vgxx/lvoly
Extend the JFS file system online
# fsadm -F vxfs -b [new_size_MB]M /filesystem
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 06:48 PM
тАО05-07-2009 06:48 PM
Re: Extending the LV
Be aware that most of the fsadm man pages have a big error: they omit the "m" option to the -b parameter, and they do not define "sector". The first time you use fsadm -b 310000 and the message "filesystem will be reduced" will be very scary. But don't worry. fsadm will quit when it finds that it cannot be reduced without damaging the data.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 03:55 AM
тАО05-08-2009 03:55 AM
Re: Extending the LV
My LV name : /dev/vg02/lvol1
Size : 210GB
Now i want to extend this to 310GB (that is to increase 100GB).
So now i have to used these below two commands if i want to user online JFS (if it is installed).
# lvextend -L 310000 /dev/vg01/lvol1
# fsadm -F vxjs -b 310000M /mount_point
so in fsadm, do we have to mention full size like lvextend.
Am correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 04:15 AM
тАО05-08-2009 04:15 AM
Re: Extending the LV
>>>so in fsadm, do we have to mention full size like lvextend.<<<
Yes. you are right. You need to specify the full size not the increased size.
Your earlier statement is wrong.
>>>And in "fsadm" we need just to give the increment size only, not total size?<<<
This is wrong. Be cautious. If you specify the increment size, filesystem size will reduced and corrupt the data.
Ganesh.