- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- clean disk mirror.
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
07-06-2006 12:10 AM
07-06-2006 12:10 AM
I have one big problem.
I have one disk, that don´t are reduce the lvol.
Was three lvols.
I did lvreduce , pvcreate -f, but not do.
--- Physical volumes ---
PV Name /dev/dsk/c3t15d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 3
PE Size (Mbytes) 16
Total PE 4374
Free PE 3524
Allocated PE 850
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg00/lvol5 12 12
/dev/vg00/lvol11 13 13
/dev/vg00/lvol98 825 825
Please I need help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:16 AM
07-06-2006 12:16 AM
Re: clean disk mirror.
Check if it is mounted, umount it and lvremove, e.g.
lvremove /dev/vg00/lvol98
Be carefull, pvcreate -f will destroy all data on the disk!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:20 AM
07-06-2006 12:20 AM
Re: clean disk mirror.
Not really sure what you want to do.
to break the mirrors
lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c3t5d0
you need to do that for each logical volume.
By telling it what disk you know which disk it will remove the mirror from.
Then if you want to pvcreate the disk
vgreduce vg00 /dev/dsk/c3t5d0
pvcreate /dev/rdsk/c3t5d0
then you can use that disk in another volume group.
I would suggest you do a vgdisplay and see if you reduced the lvols off the other physical disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:21 AM
07-06-2006 12:21 AM
Re: clean disk mirror.
I'm not sure what you would like to do.
would you like to remove all three logical volumes from this disk?
/dev/vg00/lvol5
/dev/vg00/lvol11
/dev/vg00/lvol98
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:25 AM
07-06-2006 12:25 AM
Re: clean disk mirror.
I need umount, my lvol?
The lvol are in disk mirror, and I want clean.
look this pvdisplay of the disk mirror.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:30 AM
07-06-2006 12:30 AM
Re: clean disk mirror.
You want to free the disk /dev/dsk/c3t15d0, right?
So assuming the LVOLs 5, 11, and 98 are mirrored, you need to break the mirror first.
e.g.
lvreduce -m 0 /dev/vg00/lvol5 /dev/rdsk/c3t15d0
After this, check pvdisplay again. You should see now an empty disk.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:31 AM
07-06-2006 12:31 AM
Re: clean disk mirror.
If they are not mirrors, then you will need to either do pvmove and move them to the other disk. Or umount them and do an lvremove.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:33 AM
07-06-2006 12:33 AM
Re: clean disk mirror.
I need to clean the record that this with some lvols, that they had been taken off the espelhamento. Ja I made the commands lvreduce, vgreduce and finally pvcreate - f to clean the record and not yet I obtained clean it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:36 AM
07-06-2006 12:36 AM
Re: clean disk mirror.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:39 AM
07-06-2006 12:39 AM
Re: clean disk mirror.
What remains where?
If possible, describe the problem again and post some more information, like vgdisplay, lvdisplay and so on.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:39 AM
07-06-2006 12:39 AM
Re: clean disk mirror.
# dd if=/dev/null of=/dev/rdsk/c3t15d0 bs=1024k count=10
# pvcreate -f /dev/....
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:52 AM
07-06-2006 12:52 AM
Re: clean disk mirror.
In file, the pvdisplay, lvdisplay and vgdisplay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:57 AM
07-06-2006 12:57 AM
Solution--- Logical volumes ---
LV Name /dev/vg00/lvol98
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 15008
Current LE 938
Allocated PE 938
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/c1t15d0 113 113
/dev/dsk/c3t15d0 825 825
Do you want to delete the LVOLs completly?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 01:01 AM
07-06-2006 01:01 AM
Re: clean disk mirror.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 01:04 AM
07-06-2006 01:04 AM
Re: clean disk mirror.
you only have 85 PE free and the 3 lvols you are trying to remove from the disk take up
12 13 and 825. = 850 PE's
you could pvmove lvol5 and lvol11 to c1t15d0
pvmove -n /dev/vg00/lvol5 /dev/dsk/c1t15d0
pvmove -n /dev/vg00/lvol11 /dev/dsk/c1t15d0
but disk c1t15d0 does not have enough free space to hold all of lvol98. You would need to lvreduce the size of lvol98. Thus shrinking the volume group in order to completely clean the c1t15d0 disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 01:04 AM
07-06-2006 01:04 AM
Re: clean disk mirror.
you only have 85 PE free and the 3 lvols you are trying to remove from the disk take up
12 13 and 825. = 850 PE's
you could pvmove lvol5 and lvol11 to c1t15d0
pvmove -n /dev/vg00/lvol5 /dev/dsk/c1t15d0
pvmove -n /dev/vg00/lvol11 /dev/dsk/c1t15d0
but disk c1t15d0 does not have enough free space to hold all of lvol98. You would need to lvreduce the size of lvol98. Thus shrinking the logical volume in order to completely clean the c1t15d0 disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 01:11 AM
07-06-2006 01:11 AM
Re: clean disk mirror.
As mentioned, the data in the LVOL is on 2 different disks (and NOT mirrored!).
If you delete one disk, you delete the data too and corrupt it.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 01:18 AM
07-06-2006 01:18 AM