1863025 Members
1495 Online
110446 Solutions
New Discussion

Not creating Mirror disk

 
SOLVED
Go to solution
Ammar_4
Frequent Advisor

Not creating Mirror disk

i try
pvcreate -B /dev/rdsk/c0t11d0
pvcreate: The physical volume already belongs to a volume group
vgdisplay -v
output is that
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2500
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 937
Free PE 86
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 112
Current LE 28
Allocated PE 28
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 128
Allocated PE 128
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 140
Current LE 35
Allocated PE 35
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 64
Current LE 16
Allocated PE 16
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 20
Current LE 5
Allocated PE 5
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 920
Current LE 230
Allocated PE 230
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 980
Current LE 245
Allocated PE 245
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 500
Current LE 125
Allocated PE 125
Used PV 1

LV Name /dev/vg00/lvolecss
LV Status available/syncd
LV Size (Mbytes) 500
Current LE 125
Allocated PE 125
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c0t8d0
PV Status available
Total PE 1023
Free PE 86
Autoswitch On



VG Name /dev/vgsg
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1023
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 375
Free PE 648
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vgsg/lvolsg
LV Status available/syncd
LV Size (Mbytes) 500
Current LE 125
Allocated PE 125
Used PV 1

LV Name /dev/vgsg/sapdata4
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 250
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c0t9d0
PV Status available
Total PE 1023
Free PE 648
Autoswitch On



VG Name /dev/vgammar
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 5
Open LV 5
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1023
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 24
Free PE 999
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vgammar/data
LV Status available/syncd
LV Size (Mbytes) 12
Current LE 3
Allocated PE 3
Used PV 1

LV Name /dev/vgammar/test2
LV Status available/syncd
LV Size (Mbytes) 12
Current LE 3
Allocated PE 3
Used PV 1

LV Name /dev/vgammar/test3
LV Status available/syncd
LV Size (Mbytes) 48
Current LE 12
Allocated PE 12
Used PV 1

LV Name /dev/vgammar/app
LV Status available/syncd
LV Size (Mbytes) 12
Current LE 3
Allocated PE 3
Used PV 1

LV Name /dev/vgammar/tables
LV Status available/syncd
LV Size (Mbytes) 12
Current LE 3
Allocated PE 3
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c0t10d0
PV Status available
Total PE 1023
Free PE 999
Autoswitch On
6 REPLIES 6
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Not creating Mirror disk

Hi Ammar,

Use the -f option to force the creation. You will need to be shure there is no valuable data on the disk.

---
-f Force creation of a physical volume (thus deleting any file system present)
---

Regards,
Robert-Jan
Uday_S_Ankolekar
Honored Contributor

Re: Not creating Mirror disk

use pvcreate -fB instead..
Good Luck..
Raj D.
Honored Contributor

Re: Not creating Mirror disk

Hi Ammar ,

Try
1.
#pvdisplay -v /dev/dsk/c0t11d0

To know if it is a part of existing vg.

and ,
2.
# strings /etc/lvmtab | grep c0t11d0

Hope then you can go ahead ,

Cheers,
Raj.



" If u think u can , If u think u cannot , - You are always Right . "
Ammar_4
Frequent Advisor

Re: Not creating Mirror disk

Thanks a lot
Raj D.
Honored Contributor

Re: Not creating Mirror disk

Ammar ,

You can use -f option with pvcreate to force creation also.

# pvcreate -f /dev/rdsk/c0t11d0
# pvcreate -B /dev/rdsk/c0t11d0

Cheers,
Raj
" If u think u can , If u think u cannot , - You are always Right . "
James R. Ferguson
Acclaimed Contributor

Re: Not creating Mirror disk

Hi:

The error indicates that the physical disk was once part of a volume group. Perhaps you vg(import)ed it from another server.

If you truly want to 'pvcreate' it. do:

# pvcreate -B -f /dev/rdsk/c0t11d0

..the '-f' flag forces the operation.

Regards!

...JRF...