HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvreduce doesn't work
Operating System - HP-UX
1837187
Members
2507
Online
110114
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-09-2003 11:09 PM
10-09-2003 11:09 PM
Hello
We had a mirrored system (and it works fine). Than we did a shutdown, changed one HDD and restartet the computer again. The start was fine, but (of corse) the mirror was wrong know (stales). We tried to remove the mirroring (lvreduce -m 0 ...). Unfortunately it didn't work and now we have a bad situation:
lvdisplay -v /dev/vg00/lvol*
shows us the following lines:
00016 /dev/dsk/c2t6d0 00016 current ??? 00016 stale
In the /etc/lvmtab you can find the entry from both HDDs:
/dev/vg00
/dev/dsk/c2t6d0
/dev/dsk/c2t5d0
(c2t6d0 is the working HDD and c2t5d0 is the replaced disk)
Have anybody some ideas, for to remove the replaced disk.
Best Regards Konrad
We had a mirrored system (and it works fine). Than we did a shutdown, changed one HDD and restartet the computer again. The start was fine, but (of corse) the mirror was wrong know (stales). We tried to remove the mirroring (lvreduce -m 0 ...). Unfortunately it didn't work and now we have a bad situation:
lvdisplay -v /dev/vg00/lvol*
shows us the following lines:
00016 /dev/dsk/c2t6d0 00016 current ??? 00016 stale
In the /etc/lvmtab you can find the entry from both HDDs:
/dev/vg00
/dev/dsk/c2t6d0
/dev/dsk/c2t5d0
(c2t6d0 is the working HDD and c2t5d0 is the replaced disk)
Have anybody some ideas, for to remove the replaced disk.
Best Regards Konrad
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 11:36 PM
10-09-2003 11:36 PM
Re: lvreduce doesn't work
Hi Konrad,
I think LVM is confused, (think) you replaced a disk before removing it from the configuration.
You could try to resotre the vg group configuration to the disk, but i think you will have to do it in maintenance mode .
vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t5d0
vgchange -a y /dev/vg00
and know you can remove the mirror from the configuration.
lvremove -m 0 .....
shutdown -r -y 0
Hope it helps,
Robert-Jan.
I think LVM is confused, (think) you replaced a disk before removing it from the configuration.
You could try to resotre the vg group configuration to the disk, but i think you will have to do it in maintenance mode .
vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t5d0
vgchange -a y /dev/vg00
and know you can remove the mirror from the configuration.
lvremove -m 0 .....
shutdown -r -y 0
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 11:49 PM
10-09-2003 11:49 PM
Solution
Konrad --
I agree that -lm boot and vgcfgrestore should do the trick.
From IPL:
hpux -lm
This will bring you into maintanence mode.
Then :
/sbin/vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t5d0
then vgchange -a y /dev/vg00
This will HANG for several minutes while the root disk resyncs to the mirror. Dont be alarmed.
If it comes right back then it may be doing some work in the background so dont reboot right away.
mount /usr
then do ps -ef | grep lvsync and dont reboot until the lvsyncs complete.
NOTE: you will also see "syncer" running but this is a totally different process.
When the "lvsync"s are done, reboot the box.
Best regards,
Kent M. Ostby
I agree that -lm boot and vgcfgrestore should do the trick.
From IPL:
hpux -lm
This will bring you into maintanence mode.
Then :
/sbin/vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t5d0
then vgchange -a y /dev/vg00
This will HANG for several minutes while the root disk resyncs to the mirror. Dont be alarmed.
If it comes right back then it may be doing some work in the background so dont reboot right away.
mount /usr
then do ps -ef | grep lvsync and dont reboot until the lvsyncs complete.
NOTE: you will also see "syncer" running but this is a totally different process.
When the "lvsync"s are done, reboot the box.
Best regards,
Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 12:45 AM
10-10-2003 12:45 AM
Re: lvreduce doesn't work
You may have to refer to the PV Number to 'lvreduce' and the seldom used '-k' option:
A) lvdisplay -v -k /dev/vg00/lvol*
LE PV1 PE1 Status 1
0000 1 0198 Stale
0001 1 0199 Stale
0002 1 0200 Stale
0003 1 0201 Stale
B) You'll need the value of PV1. In this example PV1, which is stale, = 1.
C) lvreduce -m 0 -k /dev/vg00/lvol* 1
Note: Put the '1' at the end of the command.
A) lvdisplay -v -k /dev/vg00/lvol*
LE PV1 PE1 Status 1
0000 1 0198 Stale
0001 1 0199 Stale
0002 1 0200 Stale
0003 1 0201 Stale
B) You'll need the value of PV1. In this example PV1, which is stale, = 1.
C) lvreduce -m 0 -k /dev/vg00/lvol* 1
Note: Put the '1' at the end of the command.
Support Fatherhood - Stop Family Law
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP