Unable to rmlvcopy on jfs2log rootvg


 
Thread Tools Search this Thread
Operating Systems AIX Unable to rmlvcopy on jfs2log rootvg
# 1  
Old 01-27-2017
Unable to rmlvcopy on jfs2log rootvg

Good day folks,

I am unable to remove lv copy from jfs2log lv as I need to replace broken disk on a mirrored rootvg, is there a way that I can fix this?


Code:
bash-4.2# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk1            active            735         724         146..137..147..147..147
hdisk4            active            735         20          00..00..00..00..20
bash-4.2#

Code:
bash-4.2# lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       1       1    closed/syncd  N/A
hd6                 paging     64      64      1    open/syncd    N/A
hd8                 jfslog     1       1       1    open/syncd    N/A
hd4                 jfs        28      28      1    open/syncd    /
hd2                 jfs        190     190     1    open/syncd    /usr
hd9var              jfs        223     223     1    open/syncd    /var
hd3                 jfs        73      73      1    open/syncd    /tmp
hd7                 sysdump    10      10      1    closed/syncd  N/A
hd7x                sysdump    10      10      1    open/syncd    N/A
hd11admin           jfs        4       4       1    open/syncd    /admin
loglv00             jfs2log    1       2       2    open/stale    N/A
hd10opt             jfs2       72      72      1    open/syncd    /opt
usr_local           jfs2       48      48      1    open/syncd    /usr/local

Code:
bash-4.2# unmirrorvg rootvg hdisk1
0516-076 lreducelv: Cannot remove last good copy of stale partition.
        Resynchronize the partitions with syncvg and try again.
0516-922 rmlvcopy: Unable to remove logical partition copies from
        logical volume loglv00.
0516-1135 unmirrorvg: The unmirror of the volume group failed.
        The volume group is still partially or fully mirrored.
bash-4.2# bootlist -m normal -o
hdisk4 blv=hd5 pathid=0
bash-4.2#

Code:
bash-4.2# rmlvcopy loglv00 1 hdisk1
0516-076 lreducelv: Cannot remove last good copy of stale partition.
        Resynchronize the partitions with syncvg and try again.
0516-922 rmlvcopy: Unable to remove logical partition copies from
        logical volume loglv00.
bash-4.2#

# 2  
Old 01-27-2017
Code:
lslv -m loglv00

?
# 3  
Old 01-27-2017
With the disk still Active, perhaps the log volume copy that is alive is actually on the failing disk. Try to sync the logical volume and then see if you can drop the copy on hdisk1. Because it's the only mirrored LV left, you can get away with synchronising the whole volume group.

If it refuses, try to remove the logical copy without specifying a disk. If it drops the copy on hdisk4 then use migratepv to move the LV from hdisk1 to hdisk4



Robin
# 4  
Old 01-31-2017
Quote:
Originally Posted by agent.kgb
Code:
lslv -m loglv00

?

Hi bro,

as follows.

Code:
bash-4.2# lslv -m loglv00
loglv00:N/A
LP    PP1  PV1               PP2  PV2               PP3  PV3
0001  0020 hdisk1            0212 hdisk4
bash-4.2#

---------- Post updated at 02:45 AM ---------- Previous update was at 02:41 AM ----------

Quote:
Originally Posted by rbatte1
With the disk still Active, perhaps the log volume copy that is alive is actually on the failing disk. Try to sync the logical volume and then see if you can drop the copy on hdisk1. Because it's the only mirrored LV left, you can get away with synchronising the whole volume group.

If it refuses, try to remove the logical copy without specifying a disk. If it drops the copy on hdisk4 then use migratepv to move the LV from hdisk1 to hdisk4



Robin

I am hesitant to remove the jfs2log as i'm not sure what would be the outcome as I don't have a test server to try on. Smilie

Thanks for the reply..
# 5  
Old 01-31-2017
I forgot to add, the server has a disk failure and I am trying to remove the mirror on the failed disk via unmirrorvg, rmlvcopy but failed only at the loglv since the state was already "stale", syncvg also failed tu make the loglv sync.
# 6  
Old 01-31-2017
Yeah my bad - forget my point to re-mirror it and split it again; will not work with a broken disk.
# 7  
Old 01-31-2017
It's odd that it won't sync given that the disk is still listed as Active. If it were broken and unusable, you would get Failed on the output from lsvg -p rootvg

Can you show us the relevant sections from errpt -a for the failing disk and the output from lspv -M hdisk1


You might be left with starting in single-user from external media. If you can and make the volume group available, you might be able to forcibly remove it and then create a new one of the same name.

Of course, I have no way to test this theory at all. Make sure you have a working mksysb that you can boot from if need be, because you might need to DR over your existing machine. What other volume groups do you have in play?



Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

AIX - mirror a jfs2log

Hi everybody, I have a little problem with my AIX 6.1, PowerHA 6.1 LVM mirroring. I accidentally created logical volume cpsabcd2lv with external jfs2log loglv00 in the same volume group cpsdata2vg. Then I mirrored LV cpsabcd2lv on the second LUN in VG cpsdata2vg. My journal is unmirrored and... (0 Replies)
Discussion started by: Necronomic
0 Replies

2. AIX

Reducing / on rootvg

The root filesystem was mirrored, someone/something stopped mirroring, and increased / and /home to ridiculous values (/ got increased to 102gb and its only using 4.3gb, so 98gb is free). Can I reduce the / (/dev/hd4) filesytem down WITHOUT corrupting the the OS? I would do a: chfs -a size=10g... (6 Replies)
Discussion started by: mrmurdock
6 Replies

3. AIX

Convert rootvg to scalable

hello everyone, I have an AIX6.1 machine and i want to convert the rootvg to scalable format because i need to increase the size of specific file systems and i cannot do it with its current state. I know that in order to perform this operation the volume group must be varied off so is there a way... (5 Replies)
Discussion started by: omonoiatis9
5 Replies

4. AIX

rootvg mirrored

I want to increase the size of /tmp by 1GB I know that the command is chfs -a size=+1G /tmp But the rootvg is mirrored and when I do a lsvg -p rootvg, I could see 2 disks. Will there be any impact if I increase the size of /tmp when the rootvg is mirrored ? Please advise. (1 Reply)
Discussion started by: newtoaixos
1 Replies

5. AIX

mirroring rootvg

I would like to konw wheather below steps are sufficient for mirroring rootvg. extendvg rootvg hdisk1 mirrorvg rootvg bootlist -m normal hdisk0 hdisk1 bosboot -ad hdisk0 bosboot -ad hdisk1 or anything needs to be added. (7 Replies)
Discussion started by: manoj.solaris
7 Replies

6. AIX

extendvg and rootvg

When attempting to extend rootvg to a new physical disk I received the following message: 0516-1162 extendvg: Warning, The Physical Partition Size of 64 requires the creation of 1093 partitions for hdisk5. The limitation for volume group rootvg is 1016 physical partitions... (4 Replies)
Discussion started by: jyoung
4 Replies

7. AIX

Anyone know how to access rootvg?

I'm trying to troubleshoot an issue with an AIX system here. I have no experience with system administration of IBM stuff. Our local admin is ... um ... not available at this time. I found something online that said enter service mode - How the heck do I do that??? Why is IBM stuff lack proper... (2 Replies)
Discussion started by: bbbngowc
2 Replies

8. AIX

mirror rootvg

Hello I have a question I have a box with Aix 5.3 with rootvg on mirror. I deleted a filesystem and I create a new one to install some software but when I type lsvg -l rootvg all my filesystems has mirror unless the new one. My question is I can mirror this fs only ??? or I have to... (9 Replies)
Discussion started by: lo-lp-kl
9 Replies

9. AIX

Cloned Rootvg

New Question: The purpose of an alternate disk install is in my opinion to have a ready-to-use-backup and i've read that it is possible to install filesets or software on the cloned disk for testing purposal while the normal system is still running. The question is: how do you tell AIX (5.2... (5 Replies)
Discussion started by: kvanelshocht
5 Replies
Login or Register to Ask a Question