How to Mirror LV and umirror after to change PVs...
Greetings
Im running HP UX B 11.11 and Im not sure on how to do this request to "mirror current 5 LVs on vgSPAN to the new LUNs assigned to the VG and unmirror the LVs and finally return the 12 LUNs to SAN storage" The existing LVs were extended to accommodate a user request to extend 2 FS on this VG
This is my vgdisplay -v | more output:
Code:
--- Volume groups ---
VG Name /dev/vgSPAN
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 5
Open LV 5
Max PV 16
Cur PV 12
Act PV 12
Max PE per PV 16000
VGDA 24
PE Size (Mbytes) 32
Total PE 19956
Alloc PE 14066
Free PE 5890
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vgSPAN/lvol1
LV Status available/syncd
LV Size (Mbytes) 4224
Current LE 132
Allocated PE 132
Used PV 6
LV Name /dev/vgSPAN/lvol2
LV Status available/syncd
LV Size (Mbytes) 4224
Current LE 132
Allocated PE 132
Used PV 6
LV Name /dev/vgSPAN/lvol3
LV Status available/syncd
LV Size (Mbytes) 71680
Current LE 2240
Allocated PE 2240
Used PV 12
LV Name /dev/vgSPAN/lvol4
LV Status available/syncd
LV Size (Mbytes) 368640
Current LE 11520
Allocated PE 11520
Used PV 12
LV Name /dev/vgSPAN/lvol5
LV Status available/syncd
LV Size (Mbytes) 1344
Current LE 42
Allocated PE 42
Used PV 6
--- Physical volumes ---
PV Name /dev/dsk/c33t8d2
PV Name /dev/dsk/c35t8d2 Alternate Link
PV Status available
Total PE 959
Free PE 0
Autoswitch On
PV Name /dev/dsk/c35t8d3
PV Name /dev/dsk/c33t8d3 Alternate Link
PV Status available
Total PE 959
Free PE 0
Autoswitch On
PV Name /dev/dsk/c33t8d4
PV Name /dev/dsk/c35t8d4 Alternate Link
PV Status available
Total PE 959
Free PE 0
Autoswitch On
PV Name /dev/dsk/c35t8d5
PV Name /dev/dsk/c33t8d5 Alternate Link
PV Status available
Total PE 959
Free PE 0
Autoswitch On
PV Name /dev/dsk/c33t8d6
PV Name /dev/dsk/c35t8d6 Alternate Link
PV Status available
Total PE 959
Free PE 0
Autoswitch On
PV Name /dev/dsk/c35t8d7
PV Name /dev/dsk/c33t8d7 Alternate Link
PV Status available
Total PE 959
Free PE 0
Autoswitch On
PV Name /dev/dsk/c44t9d4
PV Name /dev/dsk/c45t9d4 Alternate Link
PV Status available
Total PE 2367
Free PE 981
Autoswitch On
PV Name /dev/dsk/c44t9d5
PV Name /dev/dsk/c45t9d5 Alternate Link
PV Status available
Total PE 2367
Free PE 981
Autoswitch On
PV Name /dev/dsk/c44t9d6
PV Name /dev/dsk/c45t9d6 Alternate Link
PV Status available
Total PE 2367
Free PE 982
Autoswitch On
PV Name /dev/dsk/c44t9d7
PV Name /dev/dsk/c45t9d7 Alternate Link
PV Status available
Total PE 2367
Free PE 982
Autoswitch On
PV Name /dev/dsk/c44t10d0
PV Name /dev/dsk/c45t10d0 Alternate Link
PV Status available
Total PE 2367
Free PE 982
Autoswitch On
PV Name /dev/dsk/c44t10d1
PV Name /dev/dsk/c45t10d1 Alternate Link
PV Status available
Total PE 2367
Free PE 982
Autoswitch On
--- Physical volume groups ---
PVG Name PVG0
PV Name /dev/dsk/c33t8d2
PV Name /dev/dsk/c35t8d3
PV Name /dev/dsk/c33t8d4
PV Name /dev/dsk/c35t8d5
PV Name /dev/dsk/c33t8d6
PV Name /dev/dsk/c35t8d7
PV Name /dev/dsk/c44t9d4
PV Name /dev/dsk/c44t9d5
PV Name /dev/dsk/c44t9d6
PV Name /dev/dsk/c44t9d7
PV Name /dev/dsk/c44t10d0
PV Name /dev/dsk/c44t10d1
What puzzles me is at first look is that you are using at least 6 PVs (even 12...) in each LV I suppose for performance ( using PVG ...).
Even if system doesnt say so you are in almost stripped mode (distributed)...
I dont see how, with 5 new PVs you can achieve the same (it will be unbalanced...)
---------- Post updated at 13:24 ---------- Previous update was at 13:23 ----------
Will move thread to more suitable forum (HP-UX)
Last edited by vbe; 06-08-2010 at 08:53 AM..
Reason: typo...
I totally forgot i posted this entry! The entry is not entirely correct. I was doing fine until i reached the part where i had to unmirror the old disks to return to SAN team
I was really nervous when i was doing lvreduce, and i missed the space in this syntax:
So i had to do a bit of reverse engineering here. I had to lvextend -m again then lvreduce it and finally vgreduce from VGSPAN to clear the old disks from usage.
need to confirm:
we have a system with two VIOs each serving a partition on a local disk to a client LPAR. That client LPAR has them both in a VG which is mirrored (exact). So each disk has a copy of the client LV that the client VG supports. This is the setup that was bequeathed to us by the... (3 Replies)
OK, I upgraded to the latest version of Solaris 10. Perhaps 'upgrade' isn't the right term because I reinstalled the root/boot drive with Solaris 10. Prior to this I had 4 physical drives. The first two had "/" and "/usr", the other two had a /var/audit and /home. I initially booted from cdrom and... (7 Replies)
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)
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)
Hi,
am a newbie at solaris. Need advice and help on this.
1) How do I break the mirror between 2 hard disks. (wish to keep 1 good hard disk as backup)
2) After remove 1 hard disk and put in new hard disk, how do I initialise or fomat the new hard disk?
3) How do I put back the backup... (3 Replies)
i am working in sun solaris unix platform with storage device T3+
i got an error message mirror failed
i have telneted to the storage and gave the command format
it gives disk not available ,
i have shifted my storage from node A to node B then i gave the same command format by telneting to... (0 Replies)
Hi I'm new Solaris.
I'm trying to understand how a root device is being mirrored. When do df -k I get this:
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d0 49915840 43168158 6248524 88% /
/proc 0 0 0 0% /proc... (1 Reply)