- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Error reducing a mirror with 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
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
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
тАО06-21-2006 12:32 AM
тАО06-21-2006 12:32 AM
Error reducing a mirror with lvreduce command
jaipur:root:/>lvreduce -m 0 /dev/vgemc00/emclvol01 /dev/dsk/c4t0d1 /dev/dsk/c4t2d3 /dev/dsk/c4t2d5
lvreduce: Couldn't reduce the logical volume:
No such file or directory
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vgemc00/emclvol01".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 12:39 AM
тАО06-21-2006 12:39 AM
Re: Error reducing a mirror with lvreduce command
Put you output of,
# lvdisplay -v /dev/vgemc00/emclvol01
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 12:48 AM
тАО06-21-2006 12:48 AM
Re: Error reducing a mirror with lvreduce command
jaipur:root:/>lvdisplay -v /dev/vgemc00/emclvol01|pg
--- Logical volumes ---
LV Name /dev/vgemc00/emclvol01
VG Name /dev/vgemc00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 262000
Current LE 65500
Allocated PE 131000
Stripes 0
Stripe Size (Kbytes) 0
Bad block NONE
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c4t0d1 60650 93418
/dev/dsk/c4t2d3 4850 4850
/dev/dsk/c11t1d3 27882 27882
/dev/dsk/c11t1d4 4850 4850
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 12:53 AM
тАО06-21-2006 12:53 AM
Re: Error reducing a mirror with lvreduce command
The PV c4t2d5 is not in LVOL
Disks in LVOL:
/dev/dsk/c4t0d1
/dev/dsk/c4t2d3
/dev/dsk/c11t1d3
/dev/dsk/c11t1d4
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 12:56 AM
тАО06-21-2006 12:56 AM
Re: Error reducing a mirror with lvreduce command
rgs,
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 01:19 AM
тАО06-21-2006 01:19 AM
Re: Error reducing a mirror with lvreduce command
If I try to reduce with the lvreduce -m 0 /dev/vgemc00/emclvol01 I get the same error. Any idea to recover?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 01:35 AM
тАО06-21-2006 01:35 AM
Re: Error reducing a mirror with lvreduce command
What does a vgdisplay -v show? is /dev/dsk/c4t2d5 showing up as part of the vg?
try lvreduce -m 0 /dev/vgemc00/emclvol01 /dev/dsk/c4t0d1 /dev/dsk/c4t2d3 to reduce off of the two known disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 01:58 AM
тАО06-21-2006 01:58 AM
Re: Error reducing a mirror with lvreduce command
Here is the output from the vgdisplay. I think the Used PV = 4 is strange. The table shows that all 6 PV's are in use:
VG Name /dev/vgemc00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 6
Act PV 6
Max PE per PV 27887
VGDA 12
PE Size (Mbytes) 4
Total PE 139408
Alloc PE 131000
Free PE 8408
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vgemc00/emclvol01
LV Status available/syncd
LV Size (Mbytes) 262000
Current LE 65500
Allocated PE 131000
Used PV 4
--- Physical volumes ---
PV Name /dev/dsk/c4t0d1
PV Status available
Total PE 27882
Free PE 0
Autoswitch On
PV Name /dev/dsk/c4t2d3
PV Status available
Total PE 27882
Free PE 0
Autoswitch On
PV Name /dev/dsk/c4t2d5
PV Status available
Total PE 13940
Free PE 4204
Autoswitch On
PV Name /dev/dsk/c11t1d3
PV Status available
Total PE 27882
Free PE 0
Autoswitch On
PV Name /dev/dsk/c11t1d4
PV Status available
Total PE 27882
Free PE 0
Autoswitch On
PV Name /dev/dsk/c11t1d5
PV Status available
Total PE 13940
Free PE 4204
Autoswitch On
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 02:15 AM
тАО06-21-2006 02:15 AM
Re: Error reducing a mirror with lvreduce command
let's go back to the original message:
lvreduce: Couldn't reduce the logical volume:
No such file or directory
Do the following files exist?
/dev/vgemc00/emclvol01
/dev/dsk/c4t0d1
/dev/dsk/c4t2d3
/dev/dsk/c4t2d5
Does an ioscan of the system show all hardware devices claimed?
does vgscan -pv show any error messages?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 02:21 AM
тАО06-21-2006 02:21 AM
Re: Error reducing a mirror with lvreduce command
I would agree with DCE with the lvreduce.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 02:23 AM
тАО06-21-2006 02:23 AM
Re: Error reducing a mirror with lvreduce command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 02:26 AM
тАО06-21-2006 02:26 AM
Re: Error reducing a mirror with lvreduce command
I could see that mirror copy is one so out of these four disk two are current and two are mirrored one. I would suggest you to run lvdisplay -v
Then try lvreduce -m 0 one by one for both the disks. Its still not clear which is the mirrored disk/disks.
If possible please post lvdisplay -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 02:27 AM
тАО06-21-2006 02:27 AM
Re: Error reducing a mirror with lvreduce command
when you do a lvdisplay -v /dev/vgemc00/emclvol01, are there any extents assigned to /dev/dsk/c4t2d5? It is very troubling that you are "missing" two disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 02:36 AM
тАО06-21-2006 02:36 AM
Re: Error reducing a mirror with lvreduce command
lvdisplay -v /dev/vgemc00/emclvol01
Please post it so can sugest accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 02:38 AM
тАО06-21-2006 02:38 AM
Re: Error reducing a mirror with lvreduce command
27881 /dev/dsk/c4t0d1 27881 current /dev/dsk/c11t1d3 27881 current
27882 /dev/dsk/c4t2d3 00000 current /dev/dsk/c11t1d4 00000 current
I have tried to reduce both the c4.. and the c11.. with same result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 02:47 AM
тАО06-21-2006 02:47 AM
Re: Error reducing a mirror with lvreduce command
So both /dev/dsk/c4t2d5
& /dev/dsk/c11t1d5 do not show up in the lvdisplay -v?
How critical is this data? It appears that both of those disks are not responding right.
One potential effort is to vgexport the volume group, and then vgimport it back. This MAY help, but I would suggest waiting for more people to weigh in on that option......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 02:53 AM
тАО06-21-2006 02:53 AM
Re: Error reducing a mirror with lvreduce command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 02:58 AM
тАО06-21-2006 02:58 AM
Re: Error reducing a mirror with lvreduce command
results. Logical volumes with less than 65536 physical extents are not affected by this defect. Since the maximum number of logical extents in a logical volume is 65535, this problem can only occur in mirrored logical volumes where the number of physical extents can exceed this number. For example, a logical volume with no mirrors contains 40000 logical extents and 40000 physical extents. Once this
logical volume is mirrored, it will contain 40000 logical extents and 80000 physical extents.
May I have the OS version details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 03:01 AM
тАО06-21-2006 03:01 AM
Re: Error reducing a mirror with lvreduce command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 06:49 PM
тАО06-21-2006 06:49 PM
Re: Error reducing a mirror with lvreduce command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 08:13 PM
тАО06-21-2006 08:13 PM
Re: Error reducing a mirror with lvreduce command
1) open the page ==> http://www1.itrc.hp.com/service/patch/assessSystemsPage.do?BC=main|
2) click on "select a system to assess or upload new system information"
3) Download the script "swainv ". Right click on this and save to the system
4) Transfer this file to the HP-UX system. If ftp is used, then select binary mode of transfer.
5) Go to the directory in HP-UX system where the script "swainv " is loaded and give the executable permission by using the command " chmod 700 swainv "
6) Execute the script as " ./swainv "
7) This will generate a file called "inventory.xml" in current directory.
8) Transfer the file to the system which has got access to ITRC site.
9) Use the above link " http://www1.itrc.hp.com/service/patch/assessSystemsPage.do?BC=main " again and upload the "inventory.xml" to ITRC by clicking "submit".
10) click on " display candidate patches". The site will give the recommendations.
11) click on "create assessment report". This will give consolidated report.
12) Check at the line " Patches recommended by InstalledPatchAnalyzer (summary)" for recommendations.