- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvreduce and lvextend
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
10-17-2003 01:57 AM
10-17-2003 01:57 AM
I don't have to do this on AIX ;->>
Is this an old lvm bug or just a design feature? Has anyone else heard of this feature/recommendation?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 02:01 AM
10-17-2003 02:01 AM
SolutionI don't see where OnlineJFS comes into this. You're adding a mirror with lvextend, then using lvreduce to get rid of the original primary? That involves MirrorDisk/UX, not OnlineJFS - and I may be wrong, but I don't think you have to unmount the filesystem.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 02:09 AM
10-17-2003 02:09 AM
Re: lvreduce and lvextend
I would have to agree with Pete, I don't see where umounting or the use of OnlineJFS has anything to do with this.
Say these are your disks:
c0t1d0 old disk
c0t2d0 new disk
You should be able to do this:
lvextend -m 1 /dev/vgXX/lvolX /dev/dsk/c0t2d0
Then do:
lvreduce -m 0 /dev/vgXX/lvolX /dev/dsk/c0t1d0
I would think that would be all you need to do.
Hope this helps!
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 02:09 AM
10-17-2003 02:09 AM
Re: lvreduce and lvextend
lvreduce is to reduce lvols and online jfs works with filesystems.
1 add the now disk to the volumegroup
pvcreate /dev/rdsk/c?t?d? && vgextend /dev/vg?? /dev/dsk/c?t?d?
2 add a mirrorcopy to the lvols
lvextend -m1 /dev/vg??/lvol? /dev/dsk/c?t?d?
3. lvreduce the old disk
lvreduce -m0 /dev/vg??/lvol? /dev/dsk/c?t?d?
4. remove the disk out of the volume group
vgreduce /dev/vg?? /dev/dsk/c?t?d?
There is no need voor onlinejfs.
If you do need to use it just fsadm -F vxfs -b
Gideon
Gideon
It is safe to use lvreduce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 02:35 AM
10-17-2003 02:35 AM
Re: lvreduce and lvextend
There isn't any reason to unmount the LV prior to lvreducing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 03:49 AM
10-17-2003 03:49 AM
Re: lvreduce and lvextend
lvextend -m 1 /dev/vgXX /dev/dsk/cXtXdX for new mirror on new disk
lvreduce -m 0 /dev/vgXX /dev/dsk/cXtXdX for removal of old disk
Then remove the old disk from the VG or reallocate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 05:48 AM
10-17-2003 05:48 AM
Re: lvreduce and lvextend
I've lvextended and lvreduced hundreds of times without any problems.
But the HP support team says I quote:
"
It is critical to ensure that all I/O has been flushed to both copies of
the mirrored logical volume(s) before reducing one of the mirror copies;
the only way to guarantee this is to stop the application, unmount the
filesystems or raw volumes, and deactivate the volume groups that are
affected
NOTE: these steps need to be done on all 9 systems, however they can
be performed one system at a time if desired
a) Confirm mirrors are sync'd before proceeding
# vgdisplay -v (ensure all LVs are sync'd)
b) Ensure the I/O is flushed to each logical volume
Stop application
umount filesystems
deactivate VGs
# vgdisplay (only vg00 should be active)
c) Reduce a mirror from each logical volume
# vgchange -a y /dev/vgxx
# vgdisplay -v
# lvreduce -m 0 /dev/VGxx/LVx /dev/dsk/...
# lvdisplay -v /dev/VGxx/LVx
# vgreduce /dev/VGxx /dev/dsk/... (alternate link)
# vgreduce /dev/VGxx /dev/dsk/... (primary link)
# vgdisplay -v /dev/VG
# strings /etc/lvmtab
"
They say if you really want to do this with your filesystems active you need to buy vxvm.
Just wondered if anyone else had heard this feature with lvreduce/lvextend?