- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvreduce problem
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
тАО08-04-2003 02:01 PM
тАО08-04-2003 02:01 PM
lvreduce problem
LV Name /dev/vg01/lvol1b
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 25704
Current LE 3213
Allocated PE 3213
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c4t10d2 46 46
/dev/dsk/c10t8d1 1078 1078
/dev/dsk/c10t8d2 1078 1078
/dev/dsk/c10t8d3 923 923
/dev/dsk/c10t8d7 88 88
how do I remove this disk, from the lvol?
/dev/dsk/c4t10d2. maybe my steps are #$%^&**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2003 02:27 PM
тАО08-04-2003 02:27 PM
Re: lvreduce problem
If you truly want to "reclaim" the physical volume 'c4t10d2' from the volume group, then use 'pvmove' to move the physical extents allocated to that physical volume to another physical volume. If successful, you will be able to 'vgreduce' the physical volume out of the volume group. See the man pages for 'pvmove' for more information. BTW, do not interrupt or otherwise kill the 'pvmove'. It can leave things in an unusable state.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2003 02:28 PM
тАО08-04-2003 02:28 PM
Re: lvreduce problem
The lvol1b shows that this lvol has been split from a mirror.
You should be able to simly lvreduce it out
lvreduce /dev/vg01/lvol1b
It will ask it you really want to or some similar question so proceed with the removal.
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2003 02:40 PM
тАО08-04-2003 02:40 PM
Re: lvreduce problem
Two, I apologize if this is obvious, but you will want to make sure you get a good backup of whatever is on this filesystem before you attempt to do the above commands.
Thanks,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2003 03:02 AM
тАО08-05-2003 03:02 AM
Re: lvreduce problem
not sure if you understand the setup of lvm from your question, sorry if I've interpretted it wrongly, but hopefully this might be of help:
* each disk is associated with a single volume group, a volume group can have many disks
* each logical volume is associated with a single volume group, a volume group can have many logical volumes
disk1 disk2 ... diskn
\ | /
volume group1
/ | lvol1 lvol2 ... lvoln
From your output you can see what physical disk the data in your logical volume is in but when you're dealing with a logical volume you go to the volume group rather than disks.
Dunno why you want the stuff off that disk, guessing you want to either remove the disk or move the disk to another volume group? If so James suggestion would be the way forward methinks, pvmove the stuff off the disk and then vgreduce it out of the volume group.
Can't think of another reason to move stuff off a particular disk offhand, the logical volume can generally be 'striped' across physical volumes to increase performance.
Maybe you know all that already, but if not hopefully its some bit helpful!
Kevin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2003 03:56 AM
тАО08-05-2003 03:56 AM
Re: lvreduce problem
1) use pvmove to move the extents that you have on /dev/dsk/c4t10d2 to another disk already in that VG
(eg. pvmove -n /dev/vg01/lvol1b /dev/dsk/c4t10d2 /dev/dsk/c10t8d7)
2) take a backup of the LV itself, remove completely, and rebuild it then restore it.
I,for one, like to use the pvmove options. I like it cause it doesn't impact your users and it moves your data where you want it.