- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM : How to create the logi.volume in alterna...
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
11-27-2006 06:38 PM
11-27-2006 06:38 PM
LVM : How to create the logi.volume in alternate path ?
Can someone pls answer to the following query.
In LVM, I created a volume group ( /dev/vg02 ) which has 3 different disks, One is primary link and others are alternate links.
And 4 logical volumes are created in the primary disk (/dev/dsk/c5t5d0). Now i want to create the logi.volumes in alternate link (/dev/dsk/c34t3d1) instead of primary link.
So i used vgreduce to change the primary path to alternate path.
# vgreduce vg02 /dev/dsk/c5t5d0
vgreduce: Physical volume "/dev/dsk/c5t5d0" could not be removed since some of its
physical extents are still in use.
#
# vgdisplay -v /dev/vg02
PV Name /dev/dsk/c5t5d0
PV Name /dev/dsk/c34t3d1
PV Name /dev/dsk/c34t3d2
#
How can i create a logical volumes in /dev/dsk/c34t3d1 and /dev/dsk/c34t3d2 disks without removing the previous log.volumes created in /dev/dsk/c5t5d0.
Regards
Saravanan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 08:26 PM
11-27-2006 08:26 PM
Re: LVM : How to create the logi.volume in alternate path ?
from "man vgreduce"
"Before executing vgreduce, remove all logical volumes residing on each physical volume represented by a pv_path by executing lvremove (see lvremove(1M))."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2006 12:14 AM
11-28-2006 12:14 AM
Re: LVM : How to create the logi.volume in alternate path ?
Depending upon the number and distribution of free physical extents, you may be able to use 'pvmove' to isolate a logical volume on the disk you want. For instance:
# pvmove -n /dev/vg02/lvol1 /dev/dsk/c5t5d0 /dev/dsk/c34t1d1
If you use 'pvmove' do *not* interrupt it during its execution. To do so may leave your logical volume in an unusable state.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2006 01:21 AM
11-28-2006 01:21 AM
Re: LVM : How to create the logi.volume in alternate path ?
I think you may be trying to have c5t5d0 be the primary and c34t3d1 and c34t3d2 be mirror copies?
If so you need to do:
lvextend -m 1 /dev/vg02/lvol1 /dev/dsk/c34t3d1
lvextend -m 1 /dev/vg02/lvol2 /dev/dsk/c34t3d1
lvextend -m 1 /dev/vg02/lvol3 /dev/dsk/c34t3d1
lvextend -m 1 /dev/vg02/lvol4 /dev/dsk/c34t3d1
lvextend -m 1 /dev/vg02/lvol1 /dev/dsk/c34t3d2
lvextend -m 1 /dev/vg02/lvol2 /dev/dsk/c34t3d2
lvextend -m 1 /dev/vg02/lvol3 /dev/dsk/c34t3d2
lvextend -m 1 /dev/vg02/lvol4 /dev/dsk/c34t3d2
Substitute your LV names in place of lvol1-4 in the above commands.
Note that this also requires that you have the MirrorDisk/UX product installed on your system. This is something that you must BUY.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2006 01:24 AM
11-28-2006 01:24 AM
Re: LVM : How to create the logi.volume in alternate path ?
lvextend -m 2 /dev/vg02/lvol1 /dev/dsk/c34t3d2
lvextend -m 2 /dev/vg02/lvol2 /dev/dsk/c34t3d2
lvextend -m 2 /dev/vg02/lvol3 /dev/dsk/c34t3d2
lvextend -m 2 /dev/vg02/lvol4 /dev/dsk/c34t3d2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2006 01:39 AM
11-29-2006 01:39 AM