mirror rootvg


 
Thread Tools Search this Thread
Operating Systems AIX mirror rootvg
# 1  
Old 08-04-2008
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 unbreak the mirror and then mirror again all the volume group (rootvg). and I can do online ?? I dont need to restart my partition



Thanks for your comments
# 2  
Old 08-04-2008
you created a lv but forgot to tell it that it shoud consist of two mirror copies. If the unmirrored lv is located on one disk only you could mirror the lv in a two disk VG easily with
Code:
# mklvcopy <umirrored_lv> 2 <other_disk>

run varyonvg afterwards to sync.
# 3  
Old 08-04-2008
mirror rootvg

thanks shockneck for your reply

Im sorry I dont the idea that you told me. I send a screen about my lsvg -l rootvg

$ lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 4 8 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 16 32 2 open/syncd /
hd2 jfs2 55 110 2 open/syncd /usr
hd9var jfs2 12 24 2 open/syncd /var
hd3 jfs2 12 24 2 open/syncd /tmp
hd1 jfs2 12 24 2 open/syncd /home
hd10opt jfs2 12 24 2 open/syncd /opt
lg_dumplv sysdump 16 16 1 open/syncd N/A
sdump_lv sysdump 16 16 1 open/syncd N/A
Processlv jfs2 80 80 1 open/syncd /opt/IBM

the last one I need to get on mirror.

This is my lsvg rootvg output if you need it

$ lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 0009d1540000d6000000010955099d8c
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1092 (139776 megabytes)
MAX LVs: 256 FREE PPs: 730 (93440 megabytes)
LVs: 12 USED PPs: 362 (46336 megabytes)
OPEN LVs: 11 QUORUM: 1
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable


Thanks again
# 4  
Old 08-04-2008
Quote:
Originally Posted by lo-lp-kl
[...]
$ lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
[...]
Processlv jfs2 80 80 1 open/syncd /opt/IBM
[...]
right, your lv 80 PP big, is located on one disk. Use
Code:
 # lslv -l Processlv

to find out on which disk the LV is. Let us assume that it is placed on hdisk0 in your two disk rootvg. So it needs to be mirrored to the other, the second disk in rootvg assumedly hdisk1.
Code:
 # mklvcopy Processlv 2 hdisk1

This should do.
# 5  
Old 08-05-2008
mirror rootvg

Thanks again shockneck

It works perfect

$ lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 4 8 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 16 32 2 open/syncd /
hd2 jfs2 55 110 2 open/syncd /usr
hd9var jfs2 12 24 2 open/syncd /var
hd3 jfs2 12 24 2 open/syncd /tmp
hd1 jfs2 12 24 2 open/syncd /home
hd10opt jfs2 12 24 2 open/syncd /opt
lg_dumplv sysdump 16 16 1 open/syncd N/A
sdump_lv sysdump 16 16 1 open/syncd N/A
Processlv jfs2 80 160 2 open/syncd /opt/IBM


Im only have a question. when I type lslv for example hd4. I got

$ lslv -l hd4
hd4:/
PV COPIES IN BAND DISTRIBUTION
hdisk0 016:000:000 100% 000:000:016:000:000
hdisk1 016:000:000 100% 000:000:016:000:000

and in the processlv I got

$ lslv -l Processlv
Processlv:/opt/IBM
PV COPIES IN BAND DISTRIBUTION
hdisk0 080:000:000 5% 076:004:000:000:000
hdisk1 080:000:000 55% 036:044:000:000:000

There is no problem for the differences, because I think in the processlv have to be 100%


Thanks for your comments in advance
# 6  
Old 08-05-2008
Quote:
Originally Posted by lo-lp-kl
[...]
Im only have a question. when I type lslv for example hd4. I got

$ lslv -l hd4
hd4:/
PV COPIES IN BAND DISTRIBUTION
hdisk0 016:000:000 100% 000:000:016:000:000
hdisk1 016:000:000 100% 000:000:016:000:000

and in the processlv I got

$ lslv -l Processlv
Processlv:/opt/IBM
PV COPIES IN BAND DISTRIBUTION
hdisk0 080:000:000 5% 076:004:000:000:000
hdisk1 080:000:000 55% 036:044:000:000:000

There is no problem for the differences, because I think in the processlv have to be 100% [...]
Are you concerned because of the "low" percentage value? Well, that is just an indicator how good your LV matches its position on the disk according to its definition. E.g. AIX uses ranges on disks: edge-middle-center-inner_middle-inner_edge with a preference to use center and middle areas first (to reduce movement of read-write heads). If you define that an LV has to be placed in center and all PP fit in there you get the 100%. If some or all PP in center area are taken already your LV goes somewhere else and the percent value is getting smaller.
With SAN storage this is of no interest. It may be of interest on SCSI disks e.g. in most cases for reasons of performance. One can change the LV's properties with chlv and run a reorgvg to make it look "nicer" but as long as the LV's location on the local disks does not impact performance in a bad way I'd just leave it alone.
# 7  
Old 08-05-2008
mirror rootvg

Thank you very much Shockneck
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. AIX

AIX break rootvg mirror from system down

Hello, aix 5.2, mirrored rootvg on hdisk0 and hdisk1. hdisk0 is dead. I can boot to cd, into sms, into maintenance mode. I can fsck all the various partitions on hdisk1 (the hd4 hd2 hd3, etc...) all is fine. But without the hdisk0 part of the mirror I cannot get the system to boot. ystem hangs on... (6 Replies)
Discussion started by: sshapiro
6 Replies

3. HP-UX

What is the difference between DRD and Root Mirror Disk using LVM mirror ?

what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 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

AIX Rootvg mirror and sysdumplv

Guys, In my AIX 6.1 box the rootvg was on hdisk2, I tried to migrated it to hdisk0 Added hisk0 to rootvg , mirrored rootvg and changed bootlist and and sucessfully rebooted from hdisk0 Now I tried to remove the hdisk2 from rootvg so breaked mirror -bash-3.00# unmirrorvg rootvg hdisk2... (3 Replies)
Discussion started by: kkeng808
3 Replies

6. Solaris

What is mirror and sub mirror in RAID -1 SVM

Hi , I am new to SVM .when i try to learn RAID 1 , first they are creating two RAID 0 strips through metainit d51 1 1 c0t0d0s2 metainit d52 1 1 c1t0d0s2 In the next step metainit d50 -m d51 d50: Mirror is setup next step is metaattach d50 d52 d50 : submirror d52 is... (7 Replies)
Discussion started by: vr_mari
7 Replies

7. Solaris

ZFS Mirror versus Hardware Mirror

I've looked a little but haven't found a solid answer, assuming there is one. What's better, hardware mirroring or ZFS mirroring? Common practice for us was to use the raid controllers on the Sun x86 servers. Now we've been using ZFS mirroring since U6. Any performance difference? Any other... (3 Replies)
Discussion started by: Lespaul20
3 Replies

8. 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

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