ehowton: (Default)
Matt's vm firmware upgrade:

grab file systems to that will be upgraded.
# df -h | grep vx | awk '{print $6}' | grep -v vx > list

grab vxdg that will upgrade
# vxdg list |grep -v NAME |awk '{print $1}' > list2

check volume group version
# for i in $(cat list2); do vxdg -q list $i |grep version; done

upgrade volume groups
# for i in $(cat list2); do vxdg upgrade $i; done

Verify VG upgrade successful
# for i in $(cat list2); do vxdg -q list $i |grep version; done

Now upgrade file system versions, check version level for each.
# df -h |grep vx| awk '{print $1}' |grep -v tmpfs > vxfs.out
# for i in $(cat vxfs.out); do /opt/VRTS/bin/fstyp -v $i |grep version; done

Step upgrade each file system, if current version is 9 start with 10 and upgrade through 15.
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 10 $i; done
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 11 $i; done
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 12 $i; done
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 13 $i; done
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 14 $i; done
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 15 $i; done

Finally verify all vxfs are version 15 now
# for i in $(cat vxfs.out); do /opt/VRTS/bin/fstyp -v $i |grep version; done

IF YOU GET A SIMILAR ERROR:
UX:vxfs vxupgrade: ERROR: V-3-27659: /sapmnt/SID is not a mountpoint
and the raw device cannot be deduced.
use [-r] to specify a raw device

Find the *actual* path via /etc/fstab & /etc/auto.direct and upgrade that path separately:

# /opt/VRTS/bin/vxupgrade -n 10 /export/sapmnt/SID
# /opt/VRTS/bin/vxupgrade -n 11 /export/sapmnt/SID
. . .
. . .
. . .
# /opt/VRTS/bin/vxupgrade -n 15 /export/sapmnt/SID
◾ Tags:
ehowton: (Default)
IF THIS:

UX:vxfs mount.vxfs: ERROR: V-3-22168: Cannot open portal device: No such file or directory
UX:vxfs mount.vxfs: ERROR: V-3-25255: mount.vxfs: You don't have a license to run this program

THEN THIS:

# modprobe vxportal
# lsmod | grep vxportal
vxportal 16384 0
vxfs 3923968 1 vxportal
veki 20480 9 vxfs,vxio,dmpaa,dmpap,vxdmp,dmpjbod,vxportal,vxspec
# mount -a
◾ Tags:
ehowton: (Default)
scripts]$ cat vxcreate1
x=0
while [ $x = 0 ]
do

clear
echo "Initialize all Veritas disks press 1"
echo "Create a vg and extend disks into it press 2"
echo "Create specific sized LV on specific disks and format press 3"
echo "Press 6 to exit"
read input1

case "$input1" in

1)
> vxcreate.out
vxdisk list
vxdisk list | grep -i emc-vplex1_ |awk '{print $1}' > vxcreate.out
for i in `cat vxcreate.out`
do
/etc/vx/bin/vxdisksetup -i $I
# if adding single-disk, just /etc/vx/bin/vxdisksetup -I sde (no /dev, for example)
done
;;

2)
./stuff.pl
echo "Enter VG name"
read VGname
echo "Enter disk"
read disk0
echo "Enter Disk Name"
read disk1
vxdg init $VGname $disk1=$disk0
# if adding single-disk, just vxdg init vgDISK4 sde=sde (for example)
# vxprint -htg vgDISK4 (helpful command to identify size): bold, italics below
#
# dm sde sde auto 65536 978688 -

w=0
while [ $w = 0 ]
do
echo "Would you like to add another disk to the VG?"
read stuff1
case "$stuff1" in
y)
#echo "Enter VG name"
#read VGname
echo "The VG name is $VGname"
echo "Enter disk"
read disk0
echo "Enter Disk Name"
read disk1
vxdg -g $VGname adddisk $disk1=$disk0
;;
n)
w=1
;;
*)
echo "Invalid Choice"
sleep 1
;;
esac
done
;;

3)
vxdisk list
echo "Enter VG name"
read VGname
echo "Enter LV name"
read LVname
vxdg -g $VGname free
echo "Enter LV size as 10G or in blocks"
read LVsize
echo "Enter the disk"
read Disk
vxassist -g $VGname make $LVname $LVsize $Disk (use size from above)
/usr/lib/fs/vxfs/mkfs -t vxfs -o largefiles,bsize=8192 /dev/vx/rdsk/$VGname/$LVname
echo "Enter the Mount Point"
read mountp
echo "/dev/vx/dsk/$VGname/$LVname $mountp vxfs defaults,_netdev 0 0" >> /etc/fstab
mkdir $mountp
mount $mountp
;;

6)
echo exit
x=1
;;
*)
clear
echo "not a valid option"
sleep 2
;;
esac
done
◾ Tags:
ehowton: (TRON)
scripts]$ cat vxcreate1
x=0
while [ $x = 0 ]
do

clear
echo "Initialize all Veritas disks press 1"
echo "Create a vg and extend disks into it press 2"
echo "Create specific sized LV on specific disks and format press 3"
echo "Press 6 to exit"
read input1

case "$input1" in

1)
> vxcreate.out
vxdisk list
vxdisk list | grep -i emc-vplex1_ |awk '{print $1}' > vxcreate.out
for i in `cat vxcreate.out`
do
/etc/vx/bin/vxdisksetup -i $i
done
;;

2)
./stuff.pl
echo "Enter VG name"
read VGname
echo "Enter disk"
read disk0
echo "Enter Disk Name"
read disk1
vxdg init $VGname $disk1=$disk0

w=0
while [ $w = 0 ]
do
echo "Would you like to add another disk to the VG?"
read stuff1
case "$stuff1" in
y)
#echo "Enter VG name"
#read VGname
echo "The VG name is $VGname"
echo "Enter disk"
read disk0
echo "Enter Disk Name"
read disk1
vxdg -g $VGname adddisk $disk1=$disk0
;;
n)
w=1
;;
*)
echo "Invalid Choice"
sleep 1
;;
esac
done
;;

3)
vxdisk list
echo "Enter VG name"
read VGname
echo "Enter LV name"
read LVname
vxdg -g $VGname free
echo "Enter LV size as 10G or in blocks"
read LVsize
echo "Enter the disk"
read Disk
vxassist -g $VGname make $LVname $LVsize $Disk
/usr/lib/fs/vxfs/mkfs -t vxfs -o largefiles,bsize=8192 /dev/vx/rdsk/$VGname/$LVname
echo "Enter the Mount Point"
read mountp
echo "/dev/vx/dsk/$VGname/$LVname $mountp vxfs defaults,_netdev 0 0" >> /etc/fstab
mkdir $mountp
mount $mountp
;;

6)
echo exit
x=1
;;
*)
clear
echo "not a valid option"
sleep 2
;;
esac
done
◾ Tags:

June 2025

S M T W T F S
1 2 3 4 5 6 7
8 91011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Expand Cut Tags

No cut tags