================================================================================================
# vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4384
VGDA 2
PE Size (Mbytes) 16
Total PE 4374
Alloc PE 894
Free PE 3480
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
# lvcreate -n lv_oracle_bin vg00
Logical volume "/dev/vg00/lv_oracle_bin" has been successfully created with
character device "/dev/vg00/rlv_oracle_bin".
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvcreate -n lv_oracle_data vg00
Logical volume "/dev/vg00/lv_oracle_data" has been successfully created with
character device "/dev/vg00/rlv_oracle_data".
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
#
#
#
# lvdisplay /dev/vg00/lv_oracle_bin
--- Logical volumes ---
LV Name /dev/vg00/lv_oracle_bin
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
# lvdisplay /dev/vg00/lv_oracle_data
--- Logical volumes ---
LV Name /dev/vg00/lv_oracle_data
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
# lvextend
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
More arguments required.
# lvextend -L 35840 /dev/vg00/lv_oracle_data
Logical volume "/dev/vg00/lv_oracle_data" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvextend -L 5120 /dev/vg00/lv_oracle_bin
Logical volume "/dev/vg00/lv_oracle_bin" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
#
#
#
# lvdisplay /dev/vg00/lv_oracle_data
--- Logical volumes ---
LV Name /dev/vg00/lv_oracle_data
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 35840
Current LE 2240
Allocated PE 2240
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
# lvdisplay /dev/vg00/lv_oracle_bin
--- Logical volumes ---
LV Name /dev/vg00/lv_oracle_bin
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 5120
Current LE 320
Allocated PE 320
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
# lvdisplay -v /dev/vg00/lv_oracle_bin
--- Logical volumes ---
LV Name /dev/vg00/lv_oracle_bin
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 5120
Current LE 320
Allocated PE 320
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t0d0 320 320
--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c2t0d0 03134 current
00001 /dev/dsk/c2t0d0 03135 current
00002 /dev/dsk/c2t0d0 03136 current
00003 /dev/dsk/c2t0d0 03137 current
00004 /dev/dsk/c2t0d0 03138 current
00005 /dev/dsk/c2t0d0 03139 current
00006 /dev/dsk/c2t0d0 03140 current
00007 /dev/dsk/c2t0d0 03141 current
00008 /dev/dsk/c2t0d0 03142 current
00009 /dev/dsk/c2t0d0 03143 current
00010 /dev/dsk/c2t0d0 03144 current
00011 /dev/dsk/c2t0d0 03145 current
00012 /dev/dsk/c2t0d0 03146 current
00013 /dev/dsk/c2t0d0 03147 current
00014 /dev/dsk/c2t0d0 03148 current
00015 /dev/dsk/c2t0d0 03149 current
00016 /dev/dsk/c2t0d0 03150 current
00017 /dev/dsk/c2t0d0 03151 current
00018 /dev/dsk/c2t0d0 03152 current
00019 /dev/dsk/c2t0d0 03153 current
00020 /dev/dsk/c2t0d0 03154 current
00021 /dev/dsk/c2t0d0 03155 current
00022 /dev/dsk/c2t0d0 03156 current
lvsplit(1M) - split mirrored LVM logical volume into two logical volumes
lvsync(1M) - synchronize stale mirrors in LVM logical volumes
================================================================================================
================================================================================================
# creare un phisical volume sul disco, -b=bootable
pvcreate -B /dev/rdsk/c2t1d0
# aggiungiamo il disco al volume group
vgextend /dev/vg00 /dev/dsk/c2t1d0
-- a questo punto possiamo decidere di
creare un volume: lvcreate nomevolume
estendere un volume esistente: lvextend nomevolume
in questo caso estende il volume nello spazio libero che trova
se volessimo estendere il volume usando lo spazio di c2t1d0: lvcreate -n nomevolume device (???)
fare il mirror di un disco:
# in questo modo sincroniziamo i volumi da un disco all'altro
# for i in $(ls -ls /dev/vg00/lv*|awk '{print $11}')
> do
> lvextend -m 1 ${i} /dev/dsk/c2t1d0
> done
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lv_oracle_bin" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
# infatti...
# lvdisplay -v /dev/vg00/lv_oracle_data|more
--- Logical volumes ---
LV Name /dev/vg00/lv_oracle_data
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 35840
Current LE 2240
Allocated PE 4480
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t0d0 2240 2240
/dev/dsk/c2t1d0 2240 2240
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c2t0d0 00894 current /dev/dsk/c2t1d0 00320 current
00001 /dev/dsk/c2t0d0 00895 current /dev/dsk/c2t1d0 00321 current
00002 /dev/dsk/c2t0d0 00896 current /dev/dsk/c2t1d0 00322 current
00003 /dev/dsk/c2t0d0 00897 current /dev/dsk/c2t1d0 00323 current
00004 /dev/dsk/c2t0d0 00898 current /dev/dsk/c2t1d0 00324 current
00005 /dev/dsk/c2t0d0 00899 current /dev/dsk/c2t1d0 00325 current
00006 /dev/dsk/c2t0d0 00900 current /dev/dsk/c2t1d0 00326 current
00007 /dev/dsk/c2t0d0 00901 current /dev/dsk/c2t1d0 00327 current
00008 /dev/dsk/c2t0d0 00902 current /dev/dsk/c2t1d0 00328 current
00009 /dev/dsk/c2t0d0 00903 current /dev/dsk/c2t1d0 00329 current
00010 /dev/dsk/c2t0d0 00904 current /dev/dsk/c2t1d0 00330 stale
00011 /dev/dsk/c2t0d0 00905 current /dev/dsk/c2t1d0 00331 stale
# sta portando gli "stale" a "current"
mkboot -l /dev/dsk/c2t1d0
mkboot -a "hpux -lq" /dev/dsk/c2t1d0
/usr/sbin/lvlnboot [[-A autobackup]
{ -b boot_lv | -d dump_lv | -r root_lv | -R | -s swap_lv }] [-v]
[vg_name]
es:
lvlnboot -r /dev/vglvmroot/root
lvlnboot -s /dev/vglvmroot/swap
lvlnboot -d /dev/vglvmroot/dump
lvlnboot -v /dev/vglvmroot
lvlnboot -b /dev/vglvmroot/boot
default:
# lvlnboot -r /dev/vg00/lvol3
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvlnboot -b /dev/vg00/lvol1
lvlnboot: Boot volume should be the first logical volume on the physical volume
# lvlnboot -s /dev/vg00/lvol2
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvlnboot -d /dev/vg00/lvol2
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvlnboot -R
lvlnboot -v
ioscan -fnC disk
Primary boot path: 0/1/1/0.0
Alternate boot path: 0/0/2/0.3
Console path: 0/7/1/1.0
Keyboard path: 0/0/4/0.0
Alternate boot path: intscsia.1
0/1/1/0.1
0/01/01/0.1 (hex)
# per rimuovere i mirror che si trovano sul PCV
lvreduce -m 0 /dev/vg01/lvol4 /dev/dsk/c2t1d0
# per rimuovere il PV dal DG
vgreduce /dev/vg00 /dev/dsk/c2t1d0
================================================================================================
================================================================================================
vgdisplay vg00
vgdisplay -v vg00
lvdisplay /dev/vg00/lvsms_ias1
lvextend -l 4390 /dev/vg00/lvsms_ias1
vgdisplay -v vg00
lvdisplay -v /dev/vg00/lvsms_ias|more
lvdisplay -v /dev/vg00/lvsms_ias1|more
lvdisplay -v
vgdisplay -v
lvextend -l 4530 /dev/vg00/lvsms_ias1
pvdisplay
pvdisplay /dev/dsk/c1t15d0
pvdisplay -v /dev/dsk/c1t15d0
pvdisplay -v /dev/dsk/c1t15d0|grep free|wc -l
================================================================================================
================================================================================================
lvextend -L /dev/vg00/lv_oracle_bin
umount /opt/oracle
extendfs /dev/vg00/rlv_oracle_bin
mount ....
======================
vgchange -a y vg00
#attivare il vg
================================================================================================
================================================================================================
mkdir archdoc
ls
cd oradata
ls
mkdir HR
cd HR/
ls
mkdir index1
mkdir data1
mkdir archive1
ioscan -fnC
ls
ioscan -funC disk
pvcreate /dev/rdsk/c14t1d1
ls -lad /dev/
mkdir /dev/vg_archdoc
ls -la /dev/*/group
mknod /dev/vg_archdoc/group c 64 0x010000
ls -la /dev/*/group
chmod o-r /dev/vg_archdoc/group
ls -la /dev/*/group
ls -lad /dev/vg*
vgcreate vg_archdoc /dev/dsk/c14t1d1
vgdisplay vg_archdoc
lvcreate
lvcreate -n lv_archdoc vg_archdoc
lvextend -l 1791 /dev/vg_archdoc/lv_archdoc
lvdisplay lv_archdoc
lvdisplay /dev/vg_archdoc/lv_archdoc
man lvchange
lvdisplay /dev/vg_archdoc/lv_archdoc
man pvchange
man lvchange
lvchange -r N /dev/vg_archdoc/lv_archdoc
lvdisplay /dev/vg_archdoc/lv_archdo
bdf
lvdisplay /dev/vg_archdoc/lv_archdoc
man pvchange
pvchange -t 90 /dev/dsk/c14t1d1
pvdisplay /dev/dsk/c14t1d1
mkfs -F vxfs -o bsize=8192 -o largefiles /dev/vg_archdoc/rlv_archdoc
ls -la /
vi /etc/fstab
mount -a
bdf
chown -R oracle:dba /archdoc
ls -la /
vi /etc/lvmrc
pvcreate /dev/rdsk/c14t1d2
pvcreate /dev/rdsk/c14t1d3
pvcreate /dev/dsk/c14t1d4
pvcreate /dev/rdsk/c14t1d4
ls -la /dev/*/group
#mkdir /dev/vg_hr
ls -la /dev/vg_hr
mknod /dev/vg_hr/group c 64 0x030000
ls -la /dev/*/group
chmod o-r /dev/vg_hr/group
ls -la /dev/*/group
for i in 2 3 4 ;do
pvchange -t 90 /dev/dsk/c14t1d${i}
done
vgcreate
fc -e vi 6441
for i in 2 3 4 ;do
vgcreate vg_hr /dev/dsk/c14t1d${i}
done
vgextend /dev/vg_hr /dev/dsk/c14t1d3
vgextend /dev/vg_hr /dev/dsk/c14t1d4
vgdisplay -v /dev/vg_hr
for i in 2 3 4 ;do
pvchange -t 90 /dev/dsk/c14t1d${i} ## settare il time_out del pv (quando decide che il pv non c'e' piu')
done
lvcreate -n lv_hr_archive1 vg_hr
lvcreate -n lv_hr_data1 vg_hr
lvcreate -n lv_hr_index1 vg_hr
lvdisplay -v vg_hr
vgdisplay -v vg_hr
lvextend -l 767 /dev/vg_hr/lv_hr_archive1 /dev/dsk/c14t1d2
lvextend -l 1016 /dev/vg_hr/lv_hr_data1 /dev/dsk/c14t1d3
lvextend -l 767 /dev/vg_hr/lv_hr_index1 /dev/dsk/c14t1d4
lvchange -r N /dev/vg_hr/lv_hr_archive1
lvchange -r N /dev/vg_hr/lv_hr_data1
lvchange -r N /dev/vg_hr/lv_hr_index1
vgdisplay -v vg_hr
lvdisplay /dev/vg_hr/lv_hr_archive1
lvdisplay /dev/vg_hr/lv_hr_data1
lvdisplay /dev/vg_hr/lv_hr_index1
mkfs -F vxfs -o bsize=8192 -o largefiles /dev/vg_hr/lv_hr_archive1
mkfs -F vxfs -o bsize=8192 -o largefiles /dev/vg_hr/lv_hr_data1
mkfs -F vxfs -o bsize=8192 -o largefiles /dev/vg_hr/lv_hr_index1
cd /oradata/HR/
vi /etc/fstab
mount -a
bdf
chown -R oracle:dba /oradata/HR/
ls -la /oradata/HR/
vi /etc/lvmrc ## --> per aggiungere il vg all'auto activate
===========================================================================
Here's a procedure I use:
Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 is the disk you want to make a mirror of.
1. Create a bootable LVM disk to be used for the mirror.
pvcreate -B /dev/rdsk/c3t6d0
2. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c3t6d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c3t6d0
4. Copy the correct AUTO file into the new LIF area.
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c3t6d0
5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. Ensure that all devices in vg00, such as /usr, /swap,
etc., are mirrored.
The following is an example of mirroring the boot logical volume:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
The following is an example of mirroring the primary swap logical
volume:
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0
The following is an example of mirroring the root logical volume:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0
6. Update the boot information contained in the BDRA for the mirror
copies of boot, primary swap and root.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
7. Check if the BDRA is correct.
/usr/sbin/lvlnboot -R /dev/vg00
8. Verify that the mirrors were properly created.
lvlnboot -v /dev/vg00
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0
vgdisplay -v vg00
Then lvextend for all other lvols:
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/c3t6d0
================================================
# questo e' il disco che voglio recuperare
pvdisplay /dev/dsk/c6t0d1
--- Physical volumes ---
PV Name /dev/dsk/c6t0d1
VG Name /dev/vg_test
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 4
Total PE 6506
Free PE 2756
Allocated PE 3750
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
# forse su linux non e' necessario
mknod /dev/vg_rescue/group c 64 0x030000
# effettuo l'import del vg_test usando il nome a piacere
# "vg_rescue" (anche perche' nel tuo caso avresti 2 vg VolGroup00)
# Se cosi' non va, prova con l'opt "-f"
vgimport vg_rescue /dev/dsk/c6t0d1
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.
# attivo il volume group
vgchange -a y vg_rescue
Activated volume group
Volume group "vg_rescue" has been successfully changed.
# Adesso in /dev/vg_rescue/ dovresti avere i tuoi volumi,
# che probabilmente non avranno mantenuto il nome originale
# ma avranno un nome di default (perche' e' stato
# effettuato l'export del vg usando un map file)
# Per vedere i volumi:
vgdisplay -v vg_rescue
....
--- Logical volumes ---
LV Name /dev/vg_rescue/lvol1
....
# per montare i volumi
mount /dev/vg_rescue/lvol1 /test
# ho di nuovo i miei dati!
ls /test
xyxy lost+found pippo vmunix
================================================================================================
================================================================================================
espandere un volume
lvdisplay /dev/vg_archdoc_backup/lv_archdoc_backup
vgdisplay -v vg_archdoc_backup
# creo il pv
pvcreate /dev/rdsk/c14t0d5
# estendo il volume group
vgextend vg_archdoc_backup /dev/dsk/c14t0d5
vgdisplay -v vg_archdoc_backup
# estendo il logical volume, 5437 sono i PE finali (la somma di tutti i PE)
lvextend -l 5437 /dev/vg_archdoc_backup/lv_archdoc_backup /dev/dsk/c14t0d5
fstyp /dev/vg_archdoc_backup/lv_archdoc_backup
vgdisplay -v vg_archdoc_backup
lvdisplay /dev/vg_archdoc_backup/lv_archdoc_backup
# cambio il timeout del pv
pvchange -t 90 /dev/dsk/c14t0d5
lvdisplay /dev/vg_archdoc_backup/lv_archdoc_backup
vgdisplay -v vg_archdoc_backup
# estendo il file system. 86992M e' la dimensione finale, la posso prendere su lvdisplay
fsadm -F vxfs -b 86992M /archdoc
# se non c'e' onlinejfs, allora
umount /opt/oracle
extendfs /dev/vg00/rlv_oracle_bin
mount ....
#########################################################################################
mkdir /dev/vgods ;
mknod /dev/vgods/group c 64 0x040000 ;
mkdir /oradata/ods /oradata/ods/data1 /oradata/ods/index1 /oradata/ods/other1 /oradata/ods/admin1
chmod 640 /dev/vgods/group
chmod a+rx /dev/vgods
ioinit -f ioinit_file -r
cat /tmp/ioinit_file
0/3/1/0.1.17.0.0.0.0 disk 3
0/3/1/0.1.17.0.0.0.1 disk 4
0/3/1/0.1.17.0.0.0.2 disk 5
0/3/1/0.1.17.0.0.0.3 disk 6
0/3/1/0.1.17.0.0.0.4 disk 7
0/3/1/0.1.17.0.0.0.5 disk 8
0/3/1/0.1.17.0.0.0.6 disk 9
0/3/1/0.1.17.0.0.0.7 disk 10
0/3/1/0.1.17.0.0.1.0 disk 11
0/3/1/0.1.17.0.0.1.1 disk 12
0/3/1/0.1.17.0.0.1.2 disk 13
0/3/1/0.1.26.0.0.0.0 disk 14
0/3/1/0.1.26.0.0.0.1 disk 15
0/3/1/0.1.26.0.0.0.2 disk 16
0/3/1/0.1.26.0.0.0.3 disk 17
0/3/1/0.1.26.0.0.0.4 disk 18
0/3/1/0.1.26.0.0.0.5 disk 19
0/3/1/0.1.26.0.0.0.6 disk 20
0/3/1/0.1.26.0.0.0.7 disk 21
0/3/1/0.1.26.0.0.1.0 disk 22
0/3/1/0.1.26.0.0.1.1 disk 23
0/3/1/0.1.26.0.0.1.2 disk 24
disk 14 0/3/1/0.1.26.0.0.0.0 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0
disk 15 0/3/1/0.1.26.0.0.0.1 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
disk 16 0/3/1/0.1.26.0.0.0.2 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t0d2 /dev/rdsk/c6t0d2
disk 17 0/3/1/0.1.26.0.0.0.3 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t0d3 /dev/rdsk/c6t0d3
disk 18 0/3/1/0.1.26.0.0.0.4 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t0d4 /dev/rdsk/c6t0d4
disk 19 0/3/1/0.1.26.0.0.0.5 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t0d5 /dev/rdsk/c6t0d5
disk 20 0/3/1/0.1.26.0.0.0.6 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t0d6 /dev/rdsk/c6t0d6
disk 21 0/3/1/0.1.26.0.0.0.7 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t0d7 /dev/rdsk/c6t0d7
disk 22 0/3/1/0.1.26.0.0.1.0 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t1d0 /dev/rdsk/c6t1d0
disk 23 0/3/1/0.1.26.0.0.1.1 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t1d1 /dev/rdsk/c6t1d1
disk 24 0/3/1/0.1.26.0.0.1.2 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t1d2 /dev/rdsk/c6t1d2
disk 26 0/3/1/0.1.26.0.0.1.3 sdisk CLAIMED DEVICE DGC CX700WDR5
/dev/dsk/c6t1d3 /dev/rdsk/c6t1d3
root@starsky [/home/root]
# pvcreate /dev/rdsk/c4t1d0
Physical volume "/dev/rdsk/c4t1d0" has been successfully created.
root@starsky [/home/root]
# pvcreate /dev/rdsk/c4t1d1
Physical volume "/dev/rdsk/c4t1d1" has been successfully created.
root@starsky [/home/root]
# pvcreate /dev/rdsk/c4t1d2
Physical volume "/dev/rdsk/c4t1d2" has been successfully created.
root@starsky [/home/root]
# pvcreate /dev/rdsk/c4t1d3
pvcreate: The physical volume already belongs to a volume group
root@starsky [/home/root]
# pvcreate /dev/rdsk/c4t0d3
Physical volume "/dev/rdsk/c4t0d3" has been successfully created.
root@starsky [/home/root]
# vgcreate vgods /dev/dsk/c4t1d0 /dev/dsk/c4t1d1 /dev/dsk/c4t1d2 /dev/dsk/c4t0d3
Increased the number of physical extents per physical volume to 63999.
vgcreate: Volume group "/dev/vgods" could not be created:
VGRA for the disk is too big for the specified parameters. Increase the
extent size or decrease max_PVs/max_LVs and try again.
root@starsky [/home/root]
# vgcreate
Usage: vgcreate
[-f]
[-A Autobackup]
[-x Extensibility]
[-e MaxPhysicalExtents]
[-l MaxLogicalVolumes]
[-p MaxPhysicalVolumes]
[-s PhysicalExtentSize]
[-g PhysicalVolumeGroupName]
VolumeGroupName PhysicalVolumePath...
More arguments required.
# vgcreate -e -e 65535 -s 64 -l 255 vgods /dev/dsk/c4t1d0 /dev/dsk/c4t1d1 /dev/dsk/c4t1d2 /dev/dsk/c4t0d3
Increased the number of physical extents per physical volume to 3999.
Volume group "/dev/vgods" has been successfully created.
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
root@starsky [/home/root]
# vgdisplay -v vgods
--- Volume groups ---
VG Name /dev/vgods
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 4
Act PV 4
Max PE per PV 3999
VGDA 8
PE Size (Mbytes) 64
Total PE 6236
Alloc PE 0
Free PE 6236
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
root@starsky [/home/root]
# pvchange -t 90 /dev/dsk/c4t0d3
Physical volume "/dev/dsk/c4t0d3" has been successfully changed.
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
root@starsky [/home/root]
# pvchange -t 90 /dev/dsk/c4t1d2
Physical volume "/dev/dsk/c4t1d2" has been successfully changed.
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
root@starsky [/home/root]
# pvchange -t 90 /dev/dsk/c4t1d0
Physical volume "/dev/dsk/c4t1d0" has been successfully changed.
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
# pvchange -t 90 /dev/dsk/c4t1d1
Physical volume "/dev/dsk/c4t1d1" has been successfully changed.
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
# diskinfo /dev/dsk/c4t1d0
diskinfo: Character device required
root@starsky [/home/root]
# diskinfo /dev/rdsk/c4t1d0
SCSI describe of /dev/rdsk/c4t1d0:
vendor: DGC
product id: CX700WDR5
type: direct access
size: 20971520 Kbytes
bytes per sector: 512
root@starsky [/home/root]
# diskinfo /dev/rdsk/c4t1d1
SCSI describe of /dev/rdsk/c4t1d1:
vendor: DGC
product id: CX700WDR5
type: direct access
size: 104857600 Kbytes
bytes per sector: 512
root@starsky [/home/root]
# diskinfo /dev/rdsk/c4t1d2
SCSI describe of /dev/rdsk/c4t1d2:
vendor: DGC
product id: CX700WDR5
type: direct access
size: 262144000 Kbytes
bytes per sector: 512
root@starsky [/home/root]
# diskinfo /dev/rdsk/c4t0d3
SCSI describe of /dev/rdsk/c4t0d3:
vendor: DGC
product id: CX700WDR5
type: direct access
size: 20971520 Kbytes
bytes per sector: 512
root@starsky [/home/root]
# lvcreate -n lvoldata1 vgods
Logical volume "/dev/vgods/lvoldata1" has been successfully created with
character device "/dev/vgods/rlvoldata1".
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
root@starsky [/home/root]
# lvcreate -n lvolindex1 vgods
Logical volume "/dev/vgods/lvolindex1" has been successfully created with
character device "/dev/vgods/rlvolindex1".
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
root@starsky [/home/root]
# lvcreate -n lvolother1 vgods
Logical volume "/dev/vgods/lvolother1" has been successfully created with
character device "/dev/vgods/rlvolother1".
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
root@starsky [/home/root]
# lvcreate -n lvoladmin1 vgods
Logical volume "/dev/vgods/lvoladmin1" has been successfully created with
character device "/dev/vgods/rlvoladmin1".
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
# lvextend -l 3999 /dev/vgods/lvoldata1 /dev/dsk/c4t1d2
Logical volume "/dev/vgods/lvoldata1" has been successfully extended.
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
# lvextend -l 1599 /dev/vgods/lvolindex1 /dev/dsk/c4t1d1
Logical volume "/dev/vgods/lvolindex1" has been successfully extended.
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
# lvextend -l 319 /dev/vgods/lvolother1 /dev/dsk/c4t1d0
Logical volume "/dev/vgods/lvolother1" has been successfully extended.
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
# lvextend -l 319 /dev/vgods/lvoladmin1 /dev/dsk/c4t0d3
Logical volume "/dev/vgods/lvoladmin1" has been successfully extended.
Volume Group configuration for /dev/vgods has been saved in /etc/lvmconf/vgods.conf
root@starsky [/home/root]
# mkfs -F vxfs -o largefiles -o bsize=8192 /dev/vgods/lvoldata1
version 5 layout
262078464 sectors, 32759808 blocks of size 8192, log size 2048 blocks
unlimited inodes, largefiles supported
32759808 data blocks, 32756480 free data blocks
1000 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 24576 data blocks
root@starsky [/home/root]
# mkfs -F vxfs -o largefiles -o bsize=8192 /dev/vgods/lvolindex1
version 5 layout
104792064 sectors, 13099008 blocks of size 8192, log size 2048 blocks
unlimited inodes, largefiles supported
13099008 data blocks, 13096432 free data blocks
400 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 24576 data blocks
root@starsky [/home/root]
# mkfs -F vxfs -o largefiles -o bsize=8192 /dev/vgods/lvolother1
version 5 layout
20905984 sectors, 2613248 blocks of size 8192, log size 2048 blocks
unlimited inodes, largefiles supported
2613248 data blocks, 2611072 free data blocks
80 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 24576 data blocks
root@starsky [/home/root]
# mkfs -F vxfs -o largefiles -o bsize=8192 /dev/vgods/lvoladmin1
version 5 layout
20905984 sectors, 2613248 blocks of size 8192, log size 2048 blocks
unlimited inodes, largefiles supported
2613248 data blocks, 2611072 free data blocks
80 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 24576 data blocks
root@starsky [/home/root]
# mount /dev/vgods/lvoldata1 /oradata/ods/data1/
root@starsky [/home/root]
# mount /dev/vgods/lvolindex1 /oradata/ods/index1/
root@starsky [/home/root]
# mount /dev/vgods/lvolother1 /oradata/ods/other1/
root@starsky [/home/root]
# mount /dev/vgods/lvoladmin1 /oradata/ods/admin1/
root@starsky [/home/root]
# umount .....
root@starsky [/home/root]
# chown -R oracle:dba /oradata/ods
root@starsky [/home/root]
# vgexport -p -s -v -m /tmp/vgods.map vgods
Beginning the export process on Volume Group "vgods".
vgexport: Volume group "vgods" is still active.
/dev/dsk/c4t1d0
/dev/dsk/c4t1d1
/dev/dsk/c4t1d2
/dev/dsk/c4t0d3
root@starsky [/home/root]
# cat /tmp/vgods.map
VGID f2d4e8dc452b73ee
1 lvoldata1
2 lvolindex1
3 lvolother1
4 lvoladmin1
root@starsky [/home/root]
# scp /tmp/vgods.map root@hutch:/tmp
root@hutch [/tmp]
# vgimport -s -m /tmp/vgods.map -v vgods
Beginning the import process on Volume Group "vgods".
Logical volume "/dev/vgods/lvoldata1" has been successfully created
with lv number 1.
Logical volume "/dev/vgods/lvolindex1" has been successfully created
with lv number 2.
Logical volume "/dev/vgods/lvolother1" has been successfully created
with lv number 3.
Logical volume "/dev/vgods/lvoladmin1" has been successfully created
with lv number 4.
Volume group "/dev/vgods" has been successfully created.
root@starsky [/home/root]
# vgchange -a n vgods
Volume group "vgods" has been successfully changed.
# vgchange -c y vgods
Performed Configuration change.
Volume group "vgods" has been successfully changed.
root@hutch [/tmp]
# vgchange -a e /dev/vgods
Activated volume group in Exclusive Mode.
Volume group "/dev/vgods" has been successfully changed.
root@hutch [/tmp]
# mount /dev/vgods/lvolindex1 /oradata/ods/index1/
root@hutch [/tmp]
# mount /dev/vgods/lvolother1 /oradata/ods/other1/
root@hutch [/tmp]
# mount /dev/vgods/lvoladmin1 /oradata/ods/admin1/
root@hutch [/tmp]
# mount /dev/vgods/lvoldata1 /oradata/ods/data1/