[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

AIX - lsvg showing open/stale

Posted on 2012-09-21
16
Medium Priority
?
2,651 Views
Last Modified: 2012-09-24
When I run lsvg -l rootvg, all my filesystems show open/stale.

I have had an issue in the past that when rebooting a server and it shows filesystems open/stale, it gives me trouble bringing the server back up and running.

Can someone help me with making my filesystems show open/syncd?
0
Comment
Question by:AIX25
  • 8
  • 8
16 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 38422626
Your logical volumes are mirrored, and one side of the mirror must have been inaccessible some time in the past.

If all your disks are back online just run

varyonvg rootvg

This will take a little while (in the background!) but should do the trick.

If "lsvg -p rootvg" shows physical volumes as missing ("PVMISSING"), however, you must run "cfgmgr" first to have the OS redetect the disks.
0
 

Author Comment

by:AIX25
ID: 38422660
root@server[/]# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            missing           319         232         63..40..01..64..64
hdisk4            active            319         232         63..40..01..64..64

Do I have to unmirror the disks first, before I run varyonvg rootvg?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38422677
Why didn't you read my comment above up to its end?

Run "cfgmgr" and check if the disks are active again.
Then run "varyonvg rootvg"
Wait a little while and recheck.

No reason to unmirror anything (or to get into panic - it's AIX, after all!)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:AIX25
ID: 38422740
I did listen to you, I just forgot to post that I ran cfgmgr. Apologies.

However, after running cfgmgr..it still shows missing.

root@server[/]# cfgmgr
root@server[/]# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            missing           319         232         63..40..01..64..64
hdisk4            active            319         232         63..40..01..64..64
root@server[/]#
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 2000 total points
ID: 38422911
So hdisk0 is not back online.

Is it a SAN disk? What is the path status? MPIO: "lspath -l hdisk0"

Something in errpt?

lsdev -Cl hdisk0
0
 

Author Comment

by:AIX25
ID: 38423061
It is a SAN disk.

root@server[/]# lspath -l hdisk0
Enabled hdisk0 vscsi0
Enabled hdisk0 vscsi1
root@server[/]# lsdev -Cl hdisk0
hdisk0 Available  Virtual SCSI Disk Drive
root@server[/]# errpt -a |more |grep hdisk0
root@server[/]#
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38423091
It's a VIO disk, so the underlying issue must be searched at the VIO servers.

Did you check there? It looks quite as if both VIO servers cannot access the backing device,
although the virtual SCSI link is functional nonetheless.

I saw such things with disks whose reserve policy was not "no_reserve".
0
 

Author Comment

by:AIX25
ID: 38423132
I found out that we should only have one rootvg disk.

I tried to unmirror it but its not working. Any help?

root@server[/]# unmirrorvg rootvg
0516-1246 rmlvcopy: If hd5 is the boot logical volume, please run 'chpv -c <diskname>'
        as root user to clear the boot record and avoid a potential boot
        off an old boot image that may reside on the disk from which this
        logical volume is moved/removed.
0516-1155 lreducelv: Last good copy of a partition cannot reside on a missing disk.
Try again after reactivating the disk using chpv and varyonvg.
0516-922 rmlvcopy: Unable to remove logical partition copies from
        logical volume hd6.
0516-1135 unmirrorvg: The unmirror of the volume group failed.
        The volume group is still partially or fully mirrored.
0
 

Author Comment

by:AIX25
ID: 38423151
Then I ran:
root@server[/]# chpv -c hdisk0
root@server[/]# unmirrorvg rootvg
0516-1155 lreducelv: Last good copy of a partition cannot reside on a missing disk.
Try again after reactivating the disk using chpv and varyonvg.
0516-922 rmlvcopy: Unable to remove logical partition copies from
        logical volume hd6.
0516-1135 unmirrorvg: The unmirror of the volume group failed.
        The volume group is still partially or fully mirrored.

hd6 is paging. What is needed to complete the unmirroring?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38423186
The message was trying to tell you that you should run

chpv -v a hdisk0

to make it available, but this will not work, because the disk is not there.

It looks as if you removed a disk from rootvg which contained a not cleanly mirrored paging space!

Please post the output of

lslv -l hd6
lslv -m hd6

Let's see if we can run a manual rmlvcopy.

I think you already used the disk for other purposes, so you cannot reattach it just for cleaning up hd6?
0
 

Author Comment

by:AIX25
ID: 38423220
I when ahead chpv on hdisk0. Than manually ran rmlvcopy on all the LV Names. That worked! I was able to free up hdisk0 and rmdev it. Now everything is open/syncd.
0
 

Author Comment

by:AIX25
ID: 38423245
However, I'm getting this error. Do you have an other ideas of what I can do?

I set the bootlist correctly and ran bosboot on hdisk4. As you can see at the bottom.

0503-409 installp:  bosboot verification starting...
0503-497 installp:  An error occurred during bosboot verification processing.

install_all_updates: Checking for recommended maintenance level 6100-07.
install_all_updates: Executing /usr/bin/oslevel -rf, Result = 6100-06
install_all_updates: ATTENTION, the system recommended maintenance level
does not correspond to the highest level known to install_all_updates.
For more details, execute /usr/bin/oslevel -rl 6100-07.

install_all_updates: Log file is /var/adm/ras/install_all_updates.log
install_all_updates: Result = FAILURE
root@server[/]# bootlist -m normal -o
hdisk4 blv=hd5 pathid=0
hdisk4 blv=hd5 pathid=1
root@server[/]# bosboot -ad hdisk4

bosboot: Boot image is 47118 512 byte blocks.
root@server[/]#
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38423252
I hope you ran reducevg before rmdev!

Yes, manually running rmlvcopy instead of unmirrorvg would have been my suggestion (see above)!

But I'm very sure that running chpv (which flag did you use?) didn't have any effect at all.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38423275
That's quite a different kind of problem.

You're missing several filesets in order to reach the level 6100-07

"oslevel -rl 6100-07" will show you which ones have still to be installed.

Run "installp -C" first to cleanup, then run "lppchk -v" Any messages?
0
 

Author Comment

by:AIX25
ID: 38423426
This was the specific error at the top:
0503-409 installp:  bosboot verification starting...
0503-497 installp:  An error occurred during bosboot verification processing.

I ran this and it fixed my error.

#ln -f /dev/rhdisk0 /dev/ipldevice
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38423455
Very misleading.

OK, this "ipldevice" thing is very common after unmirroring a rootvg.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month20 days, 14 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question