./symcfg -FA ALL list -address
./symmaskdb list database
luxadm -e port
luxadm -e dump_map /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0 |grep -i host
210000e08b932a69
210000e08b93966b
./symmask -sid 558 -wwn 210000e08b930660 -dir 09A -p 1 add devs 01F5:0205
./symmask refresh
cfgadm -al
cfgadm -c configure c5
vxdisk list
format c3t5006048452A64D87d41
format> ty
Specify disk type (enter its number)[19]: 0
Disk not labeled. Label it now? y
vxdisk list
vxdisksetup -i c3t5006048452A64D87d39
vxdg init SAP_BACKUP SAP_BACKUP01=c3t5006048452A64D87d39s2
vxdg -g SAP_BACKUP adddisk SAP_BACKUP02=c3t5006048452A64D87d40s2
vxassist -g SAP_BACKUP maxsize
vxassist -g SAP_BACKUP make PHD_backup 285831168
newfs -b 8192 /dev/vx/rdsk/SAP_BACKUP/PHD_backup
vi /etc/vfstab
mount /sapbackup/PHD
Чтобы VxVM увидел дисковую группу на BCV - томе
нужно выполнить команду split:
symdg list
symdg show cons_group_symm
symmir -g cons_group_symm query
symmir -g cons_group_symm split
symmir -g cons_group_symm query
vxdctl enable
vxdisk -o alldgs list
vxdg import cons_group_vxvm
vxdg -C import cons_group_vxvm
vxdisk -o alldgs list
vxvol -g cons_group_vxvm start oradata
fsck -F /dev/vx/dsk/cons_group_vxvm/oradata
mount -F vxfs -o largefiles /dev/vx/dsk/cons_group_vxvm/oradata /oradata
df -k
cd /oradata
ls -l
Timefinder/SRDF Scripting
This is example of the scripts:
Establish script
#!/usr/bin/ksh
/usr/symcli/bin/symmir -g bcvgroup verify > /dev/nul
if [ $? = 0 ]
then
echo "Disks already established"
exit 0
fi
rmbcv -a
/usr/symcli/bin/symmir -g bcvgroup establish -noprompt > /dev/nul
if [ $? != 0 ]
then
echo "Establish phase failed! Exiting."
exit 1
fi
/usr/symcli/bin/symmir -g bcvgroup verify -i 60 -c 120 > /dev/nul
if [ $? != 0 ]
then
echo "Synchronization of Device Group failed or timed out"
echo "(max. minutes: 120)! Exiting."
exit 1
fi
exit 0
Split script
#!/usr/bin/ksh
/usr/symcli/bin/symmir -g bcvgroup -noprompt split
if [ $? -ne 0 ]
then
echo "Error in BCV split - Check is group was established"
exit 1
fi
#
exit 0
./symmaskdb list database
luxadm -e port
luxadm -e dump_map /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0 |grep -i host
210000e08b932a69
210000e08b93966b
./symmask -sid 558 -wwn 210000e08b930660 -dir 09A -p 1 add devs 01F5:0205
./symmask refresh
cfgadm -al
cfgadm -c configure c5
vxdisk list
format c3t5006048452A64D87d41
format> ty
Specify disk type (enter its number)[19]: 0
Disk not labeled. Label it now? y
vxdisk list
vxdisksetup -i c3t5006048452A64D87d39
vxdg init SAP_BACKUP SAP_BACKUP01=c3t5006048452A64D87d39s2
vxdg -g SAP_BACKUP adddisk SAP_BACKUP02=c3t5006048452A64D87d40s2
vxassist -g SAP_BACKUP maxsize
vxassist -g SAP_BACKUP make PHD_backup 285831168
newfs -b 8192 /dev/vx/rdsk/SAP_BACKUP/PHD_backup
vi /etc/vfstab
mount /sapbackup/PHD
Чтобы VxVM увидел дисковую группу на BCV - томе
нужно выполнить команду split:
symdg list
symdg show cons_group_symm
symmir -g cons_group_symm query
symmir -g cons_group_symm split
symmir -g cons_group_symm query
vxdctl enable
vxdisk -o alldgs list
vxdg import cons_group_vxvm
vxdg -C import cons_group_vxvm
vxdisk -o alldgs list
vxvol -g cons_group_vxvm start oradata
fsck -F /dev/vx/dsk/cons_group_vxvm/oradata
mount -F vxfs -o largefiles /dev/vx/dsk/cons_group_vxvm/oradata /oradata
df -k
cd /oradata
ls -l
Timefinder/SRDF Scripting
This is example of the scripts:
Establish script
#!/usr/bin/ksh
/usr/symcli/bin/symmir -g bcvgroup verify > /dev/nul
if [ $? = 0 ]
then
echo "Disks already established"
exit 0
fi
rmbcv -a
/usr/symcli/bin/symmir -g bcvgroup establish -noprompt > /dev/nul
if [ $? != 0 ]
then
echo "Establish phase failed! Exiting."
exit 1
fi
/usr/symcli/bin/symmir -g bcvgroup verify -i 60 -c 120 > /dev/nul
if [ $? != 0 ]
then
echo "Synchronization of Device Group failed or timed out"
echo "(max. minutes: 120)! Exiting."
exit 1
fi
exit 0
Split script
#!/usr/bin/ksh
/usr/symcli/bin/symmir -g bcvgroup -noprompt split
if [ $? -ne 0 ]
then
echo "Error in BCV split - Check is group was established"
exit 1
fi
#
exit 0
Комментариев нет:
Отправить комментарий