- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Lvreduce command
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
02-07-2003 02:46 PM
02-07-2003 02:46 PM
Lvreduce command
I tested lvreduce cmd on test machine before to perform it on production machine....I don't need rush response but I will appreciate your help
I have online JFS, and I performed lvreduce, I received msg that's everything was ok. When I checked in SAM, I saw the new size, but when I did bdf, I saw an old size...
I did these steps:
umount file system
lvreduce
mount file system
Could you tell me what's wrong.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 02:59 PM
02-07-2003 02:59 PM
Re: Lvreduce command
You have reduced the logical volume but not the filesystem yet. i.e. you have to use "fsadm" to resize the filesystem after you have done lvreduce.
Do
fsadm -b newsize /mountpoint
I recomend you go through this document which will help you know the process more better.
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063231654
Let me know if you can access this.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 03:02 PM
02-07-2003 03:02 PM
Re: Lvreduce command
You need to take backup of your filesystem before you attempt to reduce even with onlinejfs.
If you have onlineJFS, you wouldn't need to unmount and lvreduce. Your steps would be the
following. Let us say you had 1000MB and you want to reduce it by 500MB. So, the new size is 500MB.
Size_in_blocks = 500*1024= 512000
1. fsadm -b 512000 /mount_point
If the above is successful, then
2. lvreduce -L 500 /dev/vg01/your_lv
If you do a bdf /mount_point, you should see
only 500MB.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 03:02 PM
02-07-2003 03:02 PM
Re: Lvreduce command
The correct order was
1) fsadm -F vxfs -b newsize
2) lvreduce
You didn't need to unmount with OnlineJFS.
The problem is that LV commands have nothing to do with the filesystems. You now have a filesystem that is bigger than its LVOL. I would immediately do an lvextend to at least the previous size. If you have already allocated other LVOL's then it's probably too late.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 03:08 PM
02-07-2003 03:08 PM
Re: Lvreduce command
you want to:
(1) do a backup
(2) fsadm -b
(3) lvreduce newsize /mountpoint
Keep in mind that you can still have data loss, so you may also want to restore the data as a possible step 4.
I'm glad you mentioned that this is a test box!
Check out this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x312c8ffa98a2d5118ff10090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 03:09 PM
02-07-2003 03:09 PM
Re: Lvreduce command
(1) do a backup
(2) fsadm -b newsize /mountpoint
(3) lvreduce
copy/paste error on my part
(no points for this second entry please!)