Advertisements

Tag Archives: vxdg

VxVM vxdiskunsetup ERROR V-5-2-2397 Veritas Disk Name: Device address must be of the form _

When I’m removing a disk from Veritas Volume Manager I was presented the following error message

root@solaris:/ # vxdg -g documentumdg rmdisk documentum01
root@solaris:/ # vxdiskunsetup -C documentum01
VxVM vxdiskunsetup ERROR V-5-2-2397 documentum01: Device address must be of the form _ where
is the logical name of the enclosure to which the
disk belongs
is the logical number of the disk

I need to specify the enclosure name and disk number so that it ran without errors

root@solaris:/ # vxdisk -o alldgs -e list | grep documentum01
dm documentum01 ibm_ds8x000_3134 – 62816000 – – – –

root@solaris:/ # vxdiskunsetup -C ibm_ds8x000_3134

Advertisements

Rename disk group in Veritas Volume Manager

Listing the disk groups. I want to change usersdg to users175sbcdg

root@solaris:~ # vxdg list
NAME STATE ID
softwaredg enabled 1283277052.11.solaris
bkpcvrddg enabled,cds 1447967356.130.solaris
usersdg enabled,cds 1447967326.128.solaris

Deport the disk group

root@solaris:~ # vxdg deport usersdg
root@solaris:~ # vxdg list
NAME STATE ID
softwaredg enabled 1283277052.11.solaris
bkpcvrddg enabled,cds 1447967356.130.solaris

To rename the disk group, import the disk group using vxdg with the syntax shown below

root@solaris:~ # vxdg -n users175sbcdg import usersdg
root@solaris:~ # vxdg list
NAME STATE ID
softwaredg enabled 1283277052.11.solaris
bkpcvrddg enabled,cds 1447967356.130.solaris
users175sbcdg enabled,cds 1447967326.128.solaris

Resizing a VXFS filesystem on Solaris

I will resize a filesystem with 4 LUNs with 500GB

First, checking disk group, volume and mount point

root@solaris:/ # df -h /usr/software/documentum/engineering
Filesystem size used avail capacity Mounted on
/dev/vx/dsk/documentumdg/ged_engineeringvol
9.3T 8.8T 473G 96% /usr/software/documentum/engineering

Storage team provided these four LUN IDs
6029 / 6030 / 6031 / 6032

Verifying which HBA card is online – c3 and c5

root@solaris:/ # fcinfo hba-port | egrep ‘OS Device Name|State’
OS Device Name: /dev/cfg/c11
State: offline
OS Device Name: /dev/cfg/c12
State: offline
OS Device Name: /dev/cfg/c9
State: offline
OS Device Name: /dev/cfg/c10
State: offline
OS Device Name: /dev/cfg/c4
State: offline
OS Device Name: /dev/cfg/c5
State: online
OS Device Name: /dev/cfg/c2
State: offline
OS Device Name: /dev/cfg/c3
State: online

Making the LUNs available to Solaris and Veritas Volume Manager

root@solaris:/ # cfgadm -c configure c5
root@solaris:/ # cfgadm -c configure c3
root@solaris:/ # devfsadm -C
root@solaris:/ # vxdctl enable

Searching for all 4 LUNs in Solaris

root@solaris:/ # echo | format | grep 6029
c6t6005076308FFC2A70000000000006029d0: configured with capacity of 499.98GB
4. c6t6005076308FFC2A70000000000006029d0
/scsi_vhci/ssd@g6005076308ffc2a70000000000006029

root@solaris:/ # echo | format | grep 6030
c6t6005076308FFC2A70000000000006030d0: configured with capacity of 499.98GB
9. c6t6005076308FFC2A70000000000006030d0
/scsi_vhci/ssd@g6005076308ffc2a70000000000006030

root@solaris:/ # echo | format | grep 6031
c6t6005076308FFC2A70000000000006031d0: configured with capacity of 499.98GB
11. c6t6005076308FFC2A70000000000006031d0
/scsi_vhci/ssd@g6005076308ffc2a70000000000006031

root@solaris:/ # echo | format | grep 6032
c6t6005076308FFC2A70000000000006032d0: configured with capacity of 499.98GB
10. c6t6005076308FFC2A70000000000006032d0
/scsi_vhci/ssd@g6005076308ffc2a70000000000006032

Searching for all 4 LUNs in Veritas Volume Manager

root@solaris:/ # vxdisk -o alldgs -e list | egrep ‘6029|6030|6031|6032’
ibm_ds8x000_6029 auto – – nolabel c6t6005076308FFC2A70000000000006029d0s2 std
ibm_ds8x000_6030 auto – – nolabel c6t6005076308FFC2A70000000000006030d0s2 std
ibm_ds8x000_6031 auto – – nolabel c6t6005076308FFC2A70000000000006031d0s2 std
ibm_ds8x000_6032 auto – – nolabel c6t6005076308FFC2A70000000000006032d0s2 std

Apply label on all 4 disks

root@solaris:/ # format c6t6005076308FFC2A70000000000006029d0s2

c6t6005076308FFC2A70000000000006029d0s2: configured with capacity of 499.98GB
selecting c6t6005076308FFC2A70000000000006029d0s2
[disk formatted]

FORMAT MENU:
disk – select a disk
type – select (define) a disk type
partition – select (define) a partition table
current – describe the current disk
format – format and analyze the disk
repair – repair a defective sector
label – write label to the disk
analyze – surface analysis
defect – defect list management
backup – search for backup labels
verify – read and display labels
save – save new disk/partition definitions
inquiry – show vendor, product and revision
volname – set 8-character volume name
! – execute , then return
quit
format> label
Ready to label disk, continue? y

format> q

The disks will show the status online invalid instead of nolabel

root@solaris:/ # vxdisk -o alldgs -e list | egrep ‘6029|6030|6031|6032’
ibm_ds8x000_6029 auto:none – – online invalid c6t6005076308FFC2A70000000000006029d0s2 std
ibm_ds8x000_6030 auto:none – – online invalid c6t6005076308FFC2A70000000000006030d0s2 std
ibm_ds8x000_6031 auto:none – – online invalid c6t6005076308FFC2A70000000000006031d0s2 std
ibm_ds8x000_6032 auto:none – – online invalid c6t6005076308FFC2A70000000000006032d0s2 std

I’ll be adding the LUNs to documentumdg. I follow a numerical order so I’m verifying which will be the next ones

root@solaris:/ # vxdisk -o alldgs -e list | grep documentumdg | sort -k3
ibm_ds8x000_3134 auto:cdsdisk documentum01 documentumdg online c6t6005076308FFC2A70000000000003134d0s2 std
ibm_ds8x000_6006 auto:cdsdisk documentum02 documentumdg online c6t6005076308FFC2A70000000000006006d0s2 std
ibm_ds8x000_3136 auto:cdsdisk documentum03 documentumdg online c6t6005076308FFC2A70000000000003136d0s2 std
ibm_ds8x000_6005 auto:cdsdisk documentum04 documentumdg online c6t6005076308FFC2A70000000000006005d0s2 std
ibm_ds8x000_3133 auto:cdsdisk documentum05 documentumdg online c6t6005076308FFC2A70000000000003133d0s2 std
ibm_ds8x000_6011 auto:cdsdisk documentum06 documentumdg online c6t6005076308FFC2A70000000000006011d0s2 std
ibm_ds8x000_6012 auto:cdsdisk documentum07 documentumdg online c6t6005076308FFC2A70000000000006012d0s2 std
ibm_ds8x000_6007 auto:cdsdisk documentum08 documentumdg online c6t6005076308FFC2A70000000000006007d0s2 std
ibm_ds8x000_6008 auto:cdsdisk documentum09 documentumdg online c6t6005076308FFC2A70000000000006008d0s2 std
ibm_ds8x000_6009 auto:cdsdisk documentum10 documentumdg online c6t6005076308FFC2A70000000000006009d0s2 std
ibm_ds8x000_6010 auto:cdsdisk documentum11 documentumdg online c6t6005076308FFC2A70000000000006010d0s2 std
ibm_ds8x000_6013 auto:cdsdisk documentum12 documentumdg online c6t6005076308FFC2A70000000000006013d0s2 std
ibm_ds8x000_6014 auto:cdsdisk documentum13 documentumdg online c6t6005076308FFC2A70000000000006014d0s2 std
ibm_ds8x000_6015 auto:cdsdisk documentum14 documentumdg online c6t6005076308FFC2A70000000000006015d0s2 std
ibm_ds8x000_6016 auto:cdsdisk documentum15 documentumdg online c6t6005076308FFC2A70000000000006016d0s2 std
ibm_ds8x000_6017 auto:cdsdisk documentum16 documentumdg online c6t6005076308FFC2A70000000000006017d0s2 std
ibm_ds8x000_6018 auto:cdsdisk documentum17 documentumdg online c6t6005076308FFC2A70000000000006018d0s2 std
ibm_ds8x000_6019 auto:cdsdisk documentum18 documentumdg online c6t6005076308FFC2A70000000000006019d0s2 std
ibm_ds8x000_6020 auto:cdsdisk documentum19 documentumdg online c6t6005076308FFC2A70000000000006020d0s2 std
ibm_ds8x000_6021 auto:cdsdisk documentum20 documentumdg online c6t6005076308FFC2A70000000000006021d0s2 std
ibm_ds8x000_6022 auto:cdsdisk documentum21 documentumdg online c6t6005076308FFC2A70000000000006022d0s2 std
ibm_ds8x000_6002 auto:cdsdisk documentum22 documentumdg online c6t6005076308FFC2A70000000000006002d0s2 std
ibm_ds8x000_6004 auto:cdsdisk documentum23 documentumdg online c6t6005076308FFC2A70000000000006004d0s2 std
ibm_ds8x000_6023 auto:cdsdisk documentum24 documentumdg online c6t6005076308FFC2A70000000000006023d0s2 std
ibm_ds8x000_6024 auto:cdsdisk documentum25 documentumdg online c6t6005076308FFC2A70000000000006024d0s2 std
ibm_ds8x000_6000 auto:cdsdisk documentum26 documentumdg online c6t6005076308FFC2A70000000000006000d0s2 std
ibm_ds8x000_6001 auto:cdsdisk documentum27 documentumdg online c6t6005076308FFC2A70000000000006001d0s2 std
ibm_ds8x000_6003 auto:cdsdisk documentum28 documentumdg online c6t6005076308FFC2A70000000000006003d0s2 std
ibm_ds8x000_6027 auto:cdsdisk documentum29 documentumdg online c6t6005076308FFC2A70000000000006027d0s2 std
ibm_ds8x000_6028 auto:cdsdisk documentum30 documentumdg online c6t6005076308FFC2A70000000000006028d0s2 std

All the disks in the disk group are formatted as cdsdisk. Configuring the disks to be used by Veritas Volume Manager

root@solaris:/ # vxdisksetup -i ibm_ds8x000_6029
root@solaris:/ # vxdisksetup -i ibm_ds8x000_6030
root@solaris:/ # vxdisksetup -i ibm_ds8x000_6031
root@solaris:/ # vxdisksetup -i ibm_ds8x000_6032

Checking the disks

root@solaris:/ # vxdisk -o alldgs -e list | egrep ‘6029|6030|6031|6032’
ibm_ds8x000_6029 auto:cdsdisk – – online c6t6005076308FFC2A70000000000006029d0s2 std
ibm_ds8x000_6030 auto:cdsdisk – – online c6t6005076308FFC2A70000000000006030d0s2 std
ibm_ds8x000_6031 auto:cdsdisk – – online c6t6005076308FFC2A70000000000006031d0s2 std
ibm_ds8x000_6032 auto:cdsdisk – – online c6t6005076308FFC2A70000000000006032d0s2 std

Adding them to documentumdg disk group

root@solaris:/ # vxdg -g documentumdg adddisk documentum31=ibm_ds8x000_6029
root@solaris:/ # vxdg -g documentumdg adddisk documentum32=ibm_ds8x000_6030
root@solaris:/ # vxdg -g documentumdg adddisk documentum33=ibm_ds8x000_6031
root@solaris:/ # vxdg -g documentumdg adddisk documentum34=ibm_ds8x000_6032

root@solaris:/ # vxdisk -o alldgs -e list | grep documentumdg | sort -k3
ibm_ds8x000_3134 auto:cdsdisk documentum01 documentumdg online c6t6005076308FFC2A70000000000003134d0s2 std
ibm_ds8x000_6006 auto:cdsdisk documentum02 documentumdg online c6t6005076308FFC2A70000000000006006d0s2 std
ibm_ds8x000_3136 auto:cdsdisk documentum03 documentumdg online c6t6005076308FFC2A70000000000003136d0s2 std
ibm_ds8x000_6005 auto:cdsdisk documentum04 documentumdg online c6t6005076308FFC2A70000000000006005d0s2 std
ibm_ds8x000_3133 auto:cdsdisk documentum05 documentumdg online c6t6005076308FFC2A70000000000003133d0s2 std
ibm_ds8x000_6011 auto:cdsdisk documentum06 documentumdg online c6t6005076308FFC2A70000000000006011d0s2 std
ibm_ds8x000_6012 auto:cdsdisk documentum07 documentumdg online c6t6005076308FFC2A70000000000006012d0s2 std
ibm_ds8x000_6007 auto:cdsdisk documentum08 documentumdg online c6t6005076308FFC2A70000000000006007d0s2 std
ibm_ds8x000_6008 auto:cdsdisk documentum09 documentumdg online c6t6005076308FFC2A70000000000006008d0s2 std
ibm_ds8x000_6009 auto:cdsdisk documentum10 documentumdg online c6t6005076308FFC2A70000000000006009d0s2 std
ibm_ds8x000_6010 auto:cdsdisk documentum11 documentumdg online c6t6005076308FFC2A70000000000006010d0s2 std
ibm_ds8x000_6013 auto:cdsdisk documentum12 documentumdg online c6t6005076308FFC2A70000000000006013d0s2 std
ibm_ds8x000_6014 auto:cdsdisk documentum13 documentumdg online c6t6005076308FFC2A70000000000006014d0s2 std
ibm_ds8x000_6015 auto:cdsdisk documentum14 documentumdg online c6t6005076308FFC2A70000000000006015d0s2 std
ibm_ds8x000_6016 auto:cdsdisk documentum15 documentumdg online c6t6005076308FFC2A70000000000006016d0s2 std
ibm_ds8x000_6017 auto:cdsdisk documentum16 documentumdg online c6t6005076308FFC2A70000000000006017d0s2 std
ibm_ds8x000_6018 auto:cdsdisk documentum17 documentumdg online c6t6005076308FFC2A70000000000006018d0s2 std
ibm_ds8x000_6019 auto:cdsdisk documentum18 documentumdg online c6t6005076308FFC2A70000000000006019d0s2 std
ibm_ds8x000_6020 auto:cdsdisk documentum19 documentumdg online c6t6005076308FFC2A70000000000006020d0s2 std
ibm_ds8x000_6021 auto:cdsdisk documentum20 documentumdg online c6t6005076308FFC2A70000000000006021d0s2 std
ibm_ds8x000_6022 auto:cdsdisk documentum21 documentumdg online c6t6005076308FFC2A70000000000006022d0s2 std
ibm_ds8x000_6002 auto:cdsdisk documentum22 documentumdg online c6t6005076308FFC2A70000000000006002d0s2 std
ibm_ds8x000_6004 auto:cdsdisk documentum23 documentumdg online c6t6005076308FFC2A70000000000006004d0s2 std
ibm_ds8x000_6023 auto:cdsdisk documentum24 documentumdg online c6t6005076308FFC2A70000000000006023d0s2 std
ibm_ds8x000_6024 auto:cdsdisk documentum25 documentumdg online c6t6005076308FFC2A70000000000006024d0s2 std
ibm_ds8x000_6000 auto:cdsdisk documentum26 documentumdg online c6t6005076308FFC2A70000000000006000d0s2 std
ibm_ds8x000_6001 auto:cdsdisk documentum27 documentumdg online c6t6005076308FFC2A70000000000006001d0s2 std
ibm_ds8x000_6003 auto:cdsdisk documentum28 documentumdg online c6t6005076308FFC2A70000000000006003d0s2 std
ibm_ds8x000_6027 auto:cdsdisk documentum29 documentumdg online c6t6005076308FFC2A70000000000006027d0s2 std
ibm_ds8x000_6028 auto:cdsdisk documentum30 documentumdg online c6t6005076308FFC2A70000000000006028d0s2 std
ibm_ds8x000_6029 auto:cdsdisk documentum31 documentumdg online c6t6005076308FFC2A70000000000006029d0s2 std
ibm_ds8x000_6030 auto:cdsdisk documentum32 documentumdg online c6t6005076308FFC2A70000000000006030d0s2 std
ibm_ds8x000_6031 auto:cdsdisk documentum33 documentumdg online c6t6005076308FFC2A70000000000006031d0s2 std
ibm_ds8x000_6032 auto:cdsdisk documentum34 documentumdg online c6t6005076308FFC2A70000000000006032d0s2 std

Checking available disk group space

root@solaris:/ # vxassist -g documentumdg maxsize
Maximum volume size: 4193908736 (2047807Mb)

Resizing volume and filesystem space

root@solaris:/ # vxresize -g documentumdg ged_engenhariavol +2047807M

root@solaris:/ # df -h /usr/software/documentum/fs_ged_engenharia_01
Filesystem size used avail capacity Mounted on
/dev/vx/dsk/documentumdg/ged_engineeringvol
11T 8.8T 2.4T 79% /usr/software/documentum/engineering

%d bloggers like this: