1755515 Members
5250 Online
108834 Solutions
New Discussion юеВ

AutoRaid

 
Daniel Duarte
Frequent Advisor

AutoRaid

I have a vg04 umounted and I need reuse a vg04 disk in another VG

The output VGDISPLAY command:

# vgdisplay -v vg04 | more
--- Volume groups ---
VG Name /dev/vg04
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1499
VGDA 2
PE Size (Mbytes) 4
Total PE 1499
Alloc PE 1499
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg04/lvol1
LV Status available/syncd
LV Size (Mbytes) 5996
Current LE 1499
Allocated PE 1499
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c3t8d6
PV Name /dev/dsk/c4t8d6 Alternate Link
PV Status available
Total PE 1499
Free PE 0
Autoswitch On

I work here with AUTORAID, as you can see above the alternate link.

I need to know if the remove of VG04 and the include of that disk in another VG can cause any problems because AUTORAID. The Default procedure change in cases of AUTORAID ?

Thanks in advanced !!!
8 REPLIES 8
RAC_1
Honored Contributor

Re: AutoRaid

It has nothing to do with autoraid or any other raid for that matter. If you do not need vg04, back it up and export it.

vgexport, then add pvs to the vgs you want to add it to.

Anil
There is no substitute to HARDWORK
Patrick Wallek
Honored Contributor

Re: AutoRaid

Treat it just like another disk.

When you vgextend into the other VG, include both paths, so that you get the alternate link in the other VG.

# vgextend VG?? /dev/dsk/c3t8d6 /dev/dsk/c4t8d6

Don't forget to pvcreate the disk first.
Rick Garland
Honored Contributor

Re: AutoRaid

If you are talking about reusing a disk from vg04, I take it you have multiple disks in vg04?

If so, you would need to vgreduce that disk out of the VG. On a AUTORAID, depending on the RAID level you are using, this vgreduce could be destructive. NOTE, you could lose data!

Make sure all data is off disk you want to vgreduce out of the VG then vgexport the disk.
Slawomir Gora
Honored Contributor

Re: AutoRaid

Hi,
there will be no problem but of course all data from vg04 will be erased.

To do this you just must:
1. remmove vg: vgremove vg04
2. initialize disk: pvcreate -f /dev/rdsk/c3t8d6
3. add disk to existing vg: vgextend your_group /dev/dsk/c3t8d6
4. add alternate link to disk: vgextend your_group /dev/dsk/c4t8d6
5. create/extend lv
Helen French
Honored Contributor

Re: AutoRaid

If I understood your question correctly, you want to remove /dev/dsk/c3t8d6 from vg04 (that's the only disk in that vg!) and use it in another vg.

Removing a disk from one vg and use it in another does not affect your AUTORAID configuration, since LVM configuration happens in OS and AUTORAID configuration is done on it's own controller. Remember when you remove that disk from vg04, you need to remove the lvols and then that vg. THIS WILL ERASE ALL YOUR DATA on that disk. If that's okay with you, you can add the same disk to another VG using vgextend command.

How did you configure this disk in AUTORAID? It look like the disk capacity is only 6GB.
Life is a promise, fulfill it!
Daniel Duarte
Frequent Advisor

Re: AutoRaid

My configuration actually is:
I'll use LUN 2

# arraydsp -a 0000000F52DD | more

Vendor ID = HP
Product ID = C5447A
Array serial number = 0000000F52DD
----------------------------------------------------
Array State = READY
Server name = idendev1
Array type = 3
Mfg. Product Code = IJMTU00004

--- Disk space usage --------------------
Total physical = 69465 MB *
Allocated to LUNs = 47364 MB *
Used as Active Hot spare = 8683 MB *
Used by non-included disks = 0 MB *
Used for Redundancy = 13264 MB *
Unallocated (avail for LUNs) = 154 MB *
-----------------------------------------


Vendor ID = HP
Product ID = C5447A
Array serial number = 0000000F52DD
----------------------------------------------------

LUN 0:
Capacity (MB=2^20) = 2048 MB *
Maximum block addr = 4194304
Block length = 512

LUN 1:
Capacity (MB=2^20) = 12288 MB *
Maximum block addr = 25165824
Block length = 512

LUN 2:
Capacity (MB=2^20) = 12288 MB *
Maximum block addr = 25165824
Block length = 512

LUN 3:
Capacity (MB=2^20) = 3000 MB *
Maximum block addr = 6144000
Block length = 512

LUN 5:
Capacity (MB=2^20) = 10240 MB *
Maximum block addr = 20971520
Block length = 512

LUN 6:
Capacity (MB=2^20) = 6000 MB *
Maximum block addr = 12288000
Block length = 512

LUN 7:
Capacity (MB=2^20) = 1500 MB *
Maximum block addr = 3072000
Block length = 512

Total capacity allocated to LUNs = 47364 MB *


Helen French
Honored Contributor

Re: AutoRaid

Look like it's an old unit with smaller capacity disks. LUN 6 might be the one you are going to remove from vg04 and use some where. If you want to preserve any data from this disk, do a backup first. Otherwise, it should be okay to reconfigure the PV.
Life is a promise, fulfill it!
Daniel Duarte
Frequent Advisor

Re: AutoRaid

I need to include the disk on LUN 2, Is there any maximum size to be used by LUN ??