maniu@securebrain.com:~/lvm# vi modifica_spazi



>>>>>>>Creazione nuovi spazi per myhost<<<<<<<

Creazione LUN 51 su STORAGE GROUP 2 100GB da assegnare a mount point /oradata/DSS/data1
Creazione LUN 52 su STORAGE GROUP 7 100GB da assegnare a mount point /oradata/DSS/data2
Creazione LUN 53 su STORAGE GROUP 8 71GB da assegnare a mount point /oradata/DSS/index
Creazione LUN 54 su STORAGE GROUP 6 19GB da assegnare a mount point /oradata/DSS/other


>>>>>>>Analisi spazi da liberare su myhost e su myhost2 (cloni)<<<<<<<
>>>>>>>Analisi fattibilitą creazione nuovi cloni su myhost2<<<<<<<
Da liberare:
RAID GROUP 1:
		LUN 7 - DSS_Idx_Prod 80GB montata su myhost:/oradata/DSS/index
		LUN 9 - DSS_Altro_Svil 20GB montata su myhost2:/oradata/DSS/other
-------->Creazione LUN 100GB clone data1
RAID GROUP 2:
		LUN 11 - DSS_Dati_Prod 120GB montata su myhost:/oradata/DSS/data
RAID GROUP 3:
		LUN 13 - DSS_Altro_Prod 20GB montata su myhost:/oradata/DSS/other
		LUN 14 - DSS_Dati_Svil 120GB montata su myhost2:/oradata/DSS/data
-------->Crezione LUN 100GB clone data2
RAID GROUP 5:
		LUN 20 - DSS_Idx_Svil 80GB montata su myhost2:/oradata/DSS/index
-------->Creazione LUN 71GB clone index
RAID GROUP 7:
-------->Creazione LUN 19GB clone other


>>>>>>>Rename LUN myhost<<<<<<<
DSS_DATA1_PROD
DSS_DATA2_PROD
DSS_INDEX_PROD
DSS_OTHER_PROD

>>>>>>>Assegnazione nuove LUN allo STORAGE GROUP myhost<<<<<<<

>>>>>>>Installazione special file myhost<<<<<<<
disk      6  0/8/0/0.1.17.0.0.0.4  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk      7  0/8/0/0.1.17.0.0.0.7  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk      8  0/8/0/0.1.17.0.0.1.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk      9  0/8/0/0.1.17.0.0.1.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     35  0/8/0/0.1.26.0.0.0.4  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     52  0/8/0/0.1.26.0.0.0.7  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     53  0/8/0/0.1.26.0.0.1.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     54  0/8/0/0.1.26.0.0.1.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     10  1/2/0/0.2.22.0.0.0.4  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     11  1/2/0/0.2.22.0.0.0.7  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     12  1/2/0/0.2.22.0.0.1.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     13  1/2/0/0.2.22.0.0.1.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     55  1/2/0/0.2.26.0.0.0.4  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     56  1/2/0/0.2.26.0.0.0.7  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     57  1/2/0/0.2.26.0.0.1.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
disk     58  1/2/0/0.2.26.0.0.1.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5

# for i in 6 7 8 9 35 52 53 54 10 11 12 13 55 56 57 58
> do
> insf -I ${i}
> done
insf: Installing special files for sdisk instance 6 address 0/8/0/0.1.17.0.0.0.4
insf: Installing special files for sdisk instance 7 address 0/8/0/0.1.17.0.0.0.7
insf: Installing special files for sdisk instance 8 address 0/8/0/0.1.17.0.0.1.0
insf: Installing special files for sdisk instance 9 address 0/8/0/0.1.17.0.0.1.2
insf: Installing special files for sdisk instance 35 address 0/8/0/0.1.26.0.0.0.4
insf: Installing special files for sdisk instance 52 address 0/8/0/0.1.26.0.0.0.7
insf: Installing special files for sdisk instance 53 address 0/8/0/0.1.26.0.0.1.0
insf: Installing special files for sdisk instance 54 address 0/8/0/0.1.26.0.0.1.2
insf: Installing special files for sdisk instance 10 address 1/2/0/0.2.22.0.0.0.4
insf: Installing special files for sdisk instance 11 address 1/2/0/0.2.22.0.0.0.7
insf: Installing special files for sdisk instance 12 address 1/2/0/0.2.22.0.0.1.0
insf: Installing special files for sdisk instance 13 address 1/2/0/0.2.22.0.0.1.2
insf: Installing special files for sdisk instance 55 address 1/2/0/0.2.26.0.0.0.4
insf: Installing special files for sdisk instance 56 address 1/2/0/0.2.26.0.0.0.7
insf: Installing special files for sdisk instance 57 address 1/2/0/0.2.26.0.0.1.0
insf: Installing special files for sdisk instance 58 address 1/2/0/0.2.26.0.0.1.2

>>>>>>>Associazione LUN<->special file myhost<<<<<<<
disk      6  0/8/0/0.1.17.0.0.0.4  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c16t0d4   /dev/rdsk/c16t0d4
disk      7  0/8/0/0.1.17.0.0.0.7  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c16t0d7   /dev/rdsk/c16t0d7
disk      8  0/8/0/0.1.17.0.0.1.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c16t1d0   /dev/rdsk/c16t1d0
disk      9  0/8/0/0.1.17.0.0.1.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c16t1d2   /dev/rdsk/c16t1d2
disk     35  0/8/0/0.1.26.0.0.0.4  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c17t0d4   /dev/rdsk/c17t0d4
disk     52  0/8/0/0.1.26.0.0.0.7  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c17t0d7   /dev/rdsk/c17t0d7
disk     53  0/8/0/0.1.26.0.0.1.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c17t1d0   /dev/rdsk/c17t1d0
disk     54  0/8/0/0.1.26.0.0.1.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c17t1d2   /dev/rdsk/c17t1d2
disk     10  1/2/0/0.2.22.0.0.0.4  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c18t0d4   /dev/rdsk/c18t0d4
disk     11  1/2/0/0.2.22.0.0.0.7  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c18t0d7   /dev/rdsk/c18t0d7
disk     12  1/2/0/0.2.22.0.0.1.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c18t1d0   /dev/rdsk/c18t1d0
disk     13  1/2/0/0.2.22.0.0.1.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c18t1d2   /dev/rdsk/c18t1d2
disk     55  1/2/0/0.2.26.0.0.0.4  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c19t0d4   /dev/rdsk/c19t0d4
disk     56  1/2/0/0.2.26.0.0.0.7  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c19t0d7   /dev/rdsk/c19t0d7
disk     57  1/2/0/0.2.26.0.0.1.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c19t1d0   /dev/rdsk/c19t1d0
disk     58  1/2/0/0.2.26.0.0.1.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c19t1d2   /dev/rdsk/c19t1d2
                            
>>>>>>>Creazione VG/LV myhost<<<<<<<
# mkdir /dev/vg_dss_prod
# chmod 755 /dev/vg_dss_prod
# mknod /dev/vg_dss_prod/group c 64 0x110000
# chmod 640 /dev/vg_dss_prod/group


DSS_DATA1_PROD c17t1d2
DSS_DATA2_PROD c16t1d0
DSS_INDEX_PROD c17t0d7
DSS_OTHER_PROD c17t0d4

# pvcreate /dev/rdsk/c17t1d2
Physical volume "/dev/rdsk/c17t1d2" has been successfully created.
# pvcreate /dev/rdsk/c16t1d0
Physical volume "/dev/rdsk/c16t1d0" has been successfully created.
# pvcreate /dev/rdsk/c17t0d7
Physical volume "/dev/rdsk/c17t0d7" has been successfully created.
# pvcreate /dev/rdsk/c17t0d4
Physical volume "/dev/rdsk/c17t0d4" has been successfully created.

# vgcreate -l 255 -p 50 -s 32 -e 65535 vg_dss_prod /dev/dsk/c17t1d2 /dev/dsk/c16t1d0 /dev/dsk/c17t0d7 /dev/dsk/c17t0d4
Increased the number of physical extents per physical volume to 3199.
Volume group "/dev/vg_dss_prod" has been successfully created.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf

# vgdisplay -v vg_dss_prod
--- Volume groups ---
VG Name                     /dev/vg_dss_prod
VG Write Access             read/write     
VG Status                   available                 
Max LV                      255    
Cur LV                      0      
Open LV                     0      
Max PV                      50     
Cur PV                      4      
Act PV                      4      
Max PE per PV               65535        
VGDA                        8   
PE Size (Mbytes)            32              
Total PE                    9273    
Alloc PE                    0       
Free PE                     9273    
Total PVG                   0        
Total Spare PVs             0              
Total Spare PVs in use      0                     


   --- Physical volumes ---
   PV Name                     /dev/dsk/c17t1d2
   PV Status                   available                
   Total PE                    3198    
   Free PE                     3198    
   Autoswitch                  On        

   PV Name                     /dev/dsk/c16t1d0
   PV Status                   available                
   Total PE                    3198    
   Free PE                     3198    
   Autoswitch                  On        

   PV Name                     /dev/dsk/c17t0d7
   PV Status                   available                
   Total PE                    2270    
   Free PE                     2270    
   Autoswitch                  On        

   PV Name                     /dev/dsk/c17t0d4
   PV Status                   available                
   Total PE                    607     
   Free PE                     607     
   Autoswitch                  On
   
   
   
# pvchange -t 90 /dev/dsk/c17t1d2
Physical volume "/dev/dsk/c17t1d2" has been successfully changed.
pvchanVolume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# pvchange -t 90 /dev/dsk/c16t1d0
Physical volume "/dev/dsk/c16t1d0" has been successfully changed.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# pvchange -t 90 /dev/dsk/c17t0d7
Physical volume "/dev/dsk/c17t0d7" has been successfully changed.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# pvchange -t 90 /dev/dsk/c17t0d4
Physical volume "/dev/dsk/c17t0d4" has been successfully changed.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf


# lvcreate -n lv_dss_data1 vg_dss_prod
Logical volume "/dev/vg_dss_prod/lv_dss_data1" has been successfully created with
character device "/dev/vg_dss_prod/rlv_dss_data1".
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# lvcreate -n lv_dss_data2 vg_dss_prod
Logical volume "/dev/vg_dss_prod/lv_dss_data2" has been successfully created with
character device "/dev/vg_dss_prod/rlv_dss_data2".
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# lvcreate -n lv_dss_index vg_dss_prod
Logical volume "/dev/vg_dss_prod/lv_dss_index" has been successfully created with
character device "/dev/vg_dss_prod/rlv_dss_index".
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# lvcreate -n lv_dss_other vg_dss_prod
Logical volume "/dev/vg_dss_prod/lv_dss_other" has been successfully created with
character device "/dev/vg_dss_prod/rlv_dss_other".
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf


# lvchange -r n /dev/vg_dss_prod/lv_dss_data1
Logical volume "/dev/vg_dss_prod/lv_dss_data1" has been successfully changed.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# lvchange -r n /dev/vg_dss_prod/lv_dss_data2
Logical volume "/dev/vg_dss_prod/lv_dss_data2" has been successfully changed.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# lvchange -r n /dev/vg_dss_prod/lv_dss_index
Logical volume "/dev/vg_dss_prod/lv_dss_index" has been successfully changed.
lvcxhVolume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# lvchange -r n /dev/vg_dss_prod/lv_dss_other
Logical volume "/dev/vg_dss_prod/lv_dss_other" has been successfully changed.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf


# lvextend -l 3198 /dev/vg_dss_prod/lv_dss_data1 /dev/dsk/c17t1d2
Logical volume "/dev/vg_dss_prod/lv_dss_data1" has been successfully extended.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# lvextend -l 3198 /dev/vg_dss_prod/lv_dss_data2 /dev/dsk/c16t1d0
Logical volume "/dev/vg_dss_prod/lv_dss_data2" has been successfully extended.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# lvextend -l 2270 /dev/vg_dss_prod/lv_dss_index /dev/dsk/c17t0d7
Logical volume "/dev/vg_dss_prod/lv_dss_index" has been successfully extended.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
# lvextend -l 607 /dev/vg_dss_prod/lv_dss_other /dev/dsk/c17t0d4
Logical volume "/dev/vg_dss_prod/lv_dss_other" has been successfully extended.
Volume Group configuration for /dev/vg_dss_prod has been saved in /etc/lvmconf/vg_dss_prod.conf
        

# vgdisplay -v vg_dss_prod
--- Volume groups ---
VG Name                     /dev/vg_dss_prod
VG Write Access             read/write     
VG Status                   available                 
Max LV                      255    
Cur LV                      4      
Open LV                     4      
Max PV                      50     
Cur PV                      4      
Act PV                      4      
Max PE per PV               65535        
VGDA                        8   
PE Size (Mbytes)            32              
Total PE                    9273    
Alloc PE                    9273    
Free PE                     0       
Total PVG                   0        
Total Spare PVs             0              
Total Spare PVs in use      0                     

   --- Logical volumes ---
   LV Name                     /dev/vg_dss_prod/lv_dss_data1
   LV Status                   available/syncd           
   LV Size (Mbytes)            102336          
   Current LE                  3198      
   Allocated PE                3198        
   Used PV                     1       

   LV Name                     /dev/vg_dss_prod/lv_dss_data2
   LV Status                   available/syncd           
   LV Size (Mbytes)            102336          
   Current LE                  3198      
   Allocated PE                3198        
   Used PV                     1       

   LV Name                     /dev/vg_dss_prod/lv_dss_index
   LV Status                   available/syncd           
   LV Size (Mbytes)            72640           
   Current LE                  2270      
   Allocated PE                2270        
   Used PV                     1       

   LV Name                     /dev/vg_dss_prod/lv_dss_other
   LV Status                   available/syncd           
   LV Size (Mbytes)            19424           
   Current LE                  607       
   Allocated PE                607         
   Used PV                     1       


   --- Physical volumes ---
   PV Name                     /dev/dsk/c17t1d2
   PV Status                   available                
   Total PE                    3198    
   Free PE                     0       
   Autoswitch                  On        

   PV Name                     /dev/dsk/c16t1d0
   PV Status                   available                
   Total PE                    3198    
   Free PE                     0       
   Autoswitch                  On        

   PV Name                     /dev/dsk/c17t0d7
   PV Status                   available                
   Total PE                    2270    
   Free PE                     0       
   Autoswitch                  On        

   PV Name                     /dev/dsk/c17t0d4
   PV Status                   available                
   Total PE                    607     
   Free PE                     0       
   Autoswitch                  On
   
   

# mkfs -F vxfs -o largefiles -o bsize=8192 /dev/vg_dss_prod/rlv_dss_data1
    version 4 layout
    104792064 sectors, 13099008 blocks of size 8192, log size 256 blocks
    unlimited inodes, largefiles supported
    13099008 data blocks, 13098224 free data blocks
    400 allocation units of 32768 blocks, 32768 data blocks
    last allocation unit has 24576 data blocks
# mkfs -F vxfs -o largefiles -o bsize=8192 /dev/vg_dss_prod/rlv_dss_data2
    version 4 layout
    104792064 sectors, 13099008 blocks of size 8192, log size 256 blocks
    unlimited inodes, largefiles supported
    13099008 data blocks, 13098224 free data blocks
    400 allocation units of 32768 blocks, 32768 data blocks
    last allocation unit has 24576 data blocks
# mkfs -F vxfs -o largefiles -o bsize=8192 /dev/vg_dss_prod/rlv_dss_index
    version 4 layout
    74383360 sectors, 9297920 blocks of size 8192, log size 256 blocks
    unlimited inodes, largefiles supported
    9297920 data blocks, 9297280 free data blocks
    284 allocation units of 32768 blocks, 32768 data blocks
    last allocation unit has 24576 data blocks
# mkfs -F vxfs -o largefiles -o bsize=8192 /dev/vg_dss_prod/rlv_dss_other 
    version 4 layout
    19890176 sectors, 2486272 blocks of size 8192, log size 256 blocks
    unlimited inodes, largefiles supported
    2486272 data blocks, 2485896 free data blocks
    76 allocation units of 32768 blocks, 32768 data blocks
    last allocation unit has 28672 data blocks

# mount -o largefiles /dev/vg_dss_prod/lv_dss_data1 /oradata/DSS/data1
# mount -o largefiles /dev/vg_dss_prod/lv_dss_data2 /oradata/DSS/data2
# mount -o largefiles /dev/vg_dss_prod/lv_dss_index /mnt/DSS/index
# mount -o largefiles /dev/vg_dss_prod/lv_dss_other /mnt/DSS/other
    
# chown -R oracle:dba /oradata/DSS/data1
# chown -R oracle:dba /oradata/DSS/data2
# chown -R oracle:dba /mnt/DSS/index
# chown -R oracle:dba /mnt/DSS/other

/dev/vg_dss_prod/lv_dss_index
                   74383360    4552 73797736    0% /mnt/DSS/index
/dev/vg_dss_prod/lv_dss_other
                   19890176    2880 19731936    0% /mnt/DSS/other
/dev/vg_dss_prod/lv_dss_data1
                   104792064    5480 103967952    0% /oradata/DSS/data1
/dev/vg_dss_prod/lv_dss_data2
                   104792064    5480 103967952    0% /oradata/DSS/data2


>>>>>>>Switching ambiente myhost<<<<<<<
modifica /etc/fstab

- removed /dev/vg_dss_data/lv_dss_data_01 /oradata/DSS/data vxfs largefiles,delaylog 0 3
- removed /dev/vg_dss_index/lv_dss_index_01 /oradata/DSS/index vxfs largefiles,delaylog 0 3
- removed /dev/vg_dss_other/lv_dss_other_01 /oradata/DSS/other vxfs largefiles,delaylog 0 3


+ added /dev/vg_dss_prod/lv_dss_other /oradata/DSS/other vxfs largefiles,delaylog 0 3
+ addes /dev/vg_dss_prod/lv_dss_index /oradata/DSS/index vxfs largefiles,delaylog 0 3
+ added /dev/vg_dss_prod/lv_dss_data1 /oradata/DSS/data1 vxfs largefiles,delaylog 0 3
+ added /dev/vg_dss_prod/lv_dss_data2 /oradata/DSS/data2 vxfs largefiles,delaylog 0 3


/dev/vg_dss_prod/lv_dss_data2
                   104792064 65753896 38733248   63% /oradata/DSS/data2
/dev/vg_dss_prod/lv_dss_data1
                   104792064 90372184 14307288   86% /oradata/DSS/data1
/dev/vg_dss_prod/lv_dss_index
                   74383360 53381488 20837864   72% /oradata/DSS/index
/dev/vg_dss_prod/lv_dss_other
                   19890176  930032 18812024    5% /oradata/DSS/other



>>>>>>>Volume group da dismettere su myhost<<<<<<<


/dev/vg_dss_other/lv_dss_other_01
                   20963328 14043416 6865856   67% /oradata/DSS/other
/dev/vg_dss_index/lv_dss_index_01
                   83869696 80866288 2980008   96% /oradata/DSS/index
/dev/vg_dss_data/lv_dss_data_01
                   125804544 123746448 2042072   98% /oradata/DSS/data

# vgdisplay -v vg_dss_other
--- Volume groups ---
VG Name                     /dev/vg_dss_other
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               2559         
VGDA                        2   
PE Size (Mbytes)            8               
Total PE                    2559    
Alloc PE                    2559    
Free PE                     0       
Total PVG                   0        
Total Spare PVs             0              
Total Spare PVs in use      0                     

   --- Logical volumes ---
   LV Name                     /dev/vg_dss_other/lv_dss_other_01
   LV Status                   available/syncd           
   LV Size (Mbytes)            20472           
   Current LE                  2559      
   Allocated PE                2559        
   Used PV                     1       


   --- Physical volumes ---
   PV Name                     /dev/dsk/c16t0d2
   PV Status                   available                
   Total PE                    2559    
   Free PE                     0       
   Autoswitch                  On        


# vgdisplay -v vg_dss_index      
--- Volume groups ---
VG Name                     /dev/vg_dss_index
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               10239        
VGDA                        2   
PE Size (Mbytes)            8               
Total PE                    10238   
Alloc PE                    10238   
Free PE                     0       
Total PVG                   0        
Total Spare PVs             0              
Total Spare PVs in use      0                     

   --- Logical volumes ---
   LV Name                     /dev/vg_dss_index/lv_dss_index_01
   LV Status                   available/syncd           
   LV Size (Mbytes)            81904           
   Current LE                  10238     
   Allocated PE                10238       
   Used PV                     1       


   --- Physical volumes ---
   PV Name                     /dev/dsk/c16t0d0
   PV Status                   available                
   Total PE                    10238   
   Free PE                     0       
   Autoswitch                  On 
   

# vgdisplay -v vg_dss_data
--- Volume groups ---
VG Name                     /dev/vg_dss_data
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               15359        
VGDA                        2   
PE Size (Mbytes)            8               
Total PE                    15357   
Alloc PE                    15357   
Free PE                     0       
Total PVG                   0        
Total Spare PVs             0              
Total Spare PVs in use      0                     

   --- Logical volumes ---
   LV Name                     /dev/vg_dss_data/lv_dss_data_01
   LV Status                   available/syncd           
   LV Size (Mbytes)            122856          
   Current LE                  15357     
   Allocated PE                15357       
   Used PV                     1       


   --- Physical volumes ---
   PV Name                     /dev/dsk/c16t0d1
   PV Status                   available                
   Total PE                    15357   
   Free PE                     0       
   Autoswitch                  On      
   
disk    106  0/8/0/0.1.17.0.0.0.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c16t0d2   /dev/rdsk/c16t0d2
disk    112  0/8/0/0.1.26.0.0.0.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c17t0d2   /dev/rdsk/c17t0d2
disk    119  1/2/0/0.2.22.0.0.0.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c18t0d2   /dev/rdsk/c18t0d2
disk    124  1/2/0/0.2.26.0.0.0.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c19t0d2   /dev/rdsk/c19t0d2

disk    104  0/8/0/0.1.17.0.0.0.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c16t0d0   /dev/rdsk/c16t0d0
disk      4  0/8/0/0.1.26.0.0.0.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c17t0d0   /dev/rdsk/c17t0d0
disk    117  1/2/0/0.2.22.0.0.0.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c18t0d0   /dev/rdsk/c18t0d0
disk      5  1/2/0/0.2.26.0.0.0.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c19t0d0   /dev/rdsk/c19t0d0

disk    105  0/8/0/0.1.17.0.0.0.1  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c16t0d1   /dev/rdsk/c16t0d1
disk    111  0/8/0/0.1.26.0.0.0.1  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c17t0d1   /dev/rdsk/c17t0d1
disk    118  1/2/0/0.2.22.0.0.0.1  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c18t0d1   /dev/rdsk/c18t0d1
disk     34  1/2/0/0.2.26.0.0.0.1  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5
                            /dev/dsk/c19t0d1   /dev/rdsk/c19t0d1

LUN da rimuovere dallo storage e da 01-nagios:
Raid Group 3 - LUN 13 - DSS_Altro_Prod
Raid Group 2 - LUN 11 - DSS_Dati_Prod
Raid group 1 - LUN 7 - DSS_Idx_Prod




>>>>>>>Volumi dismessi su myhost<<<<<<<

# lvremove /dev/vg_dss_other/lv_dss_other_01
The logical volume "/dev/vg_dss_other/lv_dss_other_01" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg_dss_other/lv_dss_other_01" has been successfully removed.
Volume Group configuration for /dev/vg_dss_other has been saved in /etc/lvmconf/vg_dss_other.conf
root@myhost   [/]
# vgremove vg_dss_other
Volume group "vg_dss_other" has been successfully removed.
root@myhost   [/]
# rm -rf /dev/vg_dss_other



root@myhost   [/]
# lvremove /dev/vg_dss_index/lv_dss_index_01
The logical volume "/dev/vg_dss_index/lv_dss_index_01" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg_dss_index/lv_dss_index_01" has been successfully removed.
Volume Group configuration for /dev/vg_dss_index has been saved in /etc/lvmconf/vg_dss_index.conf
root@myhost   [/]
# vgremove vg_dss_index
Volume group "vg_dss_index" has been successfully removed.
root@myhost   [/]
# rm -rf /dev/vg_dss_index


# lvremove /dev/vg_dss_data/lv_dss_data_01
The logical volume "/dev/vg_dss_data/lv_dss_data_01" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg_dss_data/lv_dss_data_01" has been successfully removed.
Volume Group configuration for /dev/vg_dss_data has been saved in /etc/lvmconf/vg_dss_data.conf
root@myhost   [/]
# vgremove vg_dss_data
Volume group "vg_dss_data" has been successfully removed.
root@myhost   [/]
# rm -rf /dev/vg_dss_data


root@myhost   [/]
# rmsf -H 0/8/0/0.1.17.0.0.0.2
root@myhost   [/]
# rmsf -H 0/8/0/0.1.26.0.0.0.2
root@myhost   [/]
# rmsf -H 1/2/0/0.2.22.0.0.0.2
root@myhost   [/]
# rmsf -H 1/2/0/0.2.26.0.0.0.2
root@myhost   [/]
# rmsf -H 0/8/0/0.1.17.0.0.0.0
root@myhost   [/]
# rmsf -H 0/8/0/0.1.26.0.0.0.0
root@myhost   [/]
# rmsf -H 1/2/0/0.2.22.0.0.0.0
root@myhost   [/]
# rmsf -H 1/2/0/0.2.26.0.0.0.0
root@myhost   [/]
# rmsf -H 0/8/0/0.1.17.0.0.0.1
root@myhost   [/]
# rmsf -H 0/8/0/0.1.26.0.0.0.1
root@myhost   [/]
# rmsf -H 1/2/0/0.2.22.0.0.0.1
root@myhost   [/]
# rmsf -H 1/2/0/0.2.26.0.0.0.1


Rimosse LUN da storage group myhost
Raid Group 3 - LUN 13 - DSS_Altro_Prod
Raid Group 2 - LUN 11 - DSS_Dati_Prod
Raid group 1 - LUN 7 - DSS_Idx_Prod
Unbind LUN da raid group.......





:q!