Removing vpath disks coming from IBM storage

root@linux:~ # datapath query device

Total Devices : 7

DEV#: 0 DEVICE NAME: vpathk TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000097
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdaw CLOSE NORMAL 0 0
1 Host1Channel0/sdbd CLOSE NORMAL 0 0
2 Host1Channel0/sdai CLOSE NORMAL 173 0
3 Host1Channel0/sdap CLOSE NORMAL 106 0
4 Host0Channel0/sdu CLOSE NORMAL 0 0
5 Host0Channel0/sdab CLOSE NORMAL 0 0
6 Host0Channel0/sdg CLOSE NORMAL 80 0
7 Host0Channel0/sdn CLOSE NORMAL 236 0

DEV#: 1 DEVICE NAME: vpathn TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000092
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdax CLOSE NORMAL 0 0
1 Host1Channel0/sdaj CLOSE NORMAL 9294 0
2 Host1Channel0/sdaq CLOSE NORMAL 0 0
3 Host0Channel0/sdv CLOSE NORMAL 0 0
4 Host1Channel0/sdac CLOSE NORMAL 9067 0
5 Host0Channel0/sda CLOSE NORMAL 8218 0
6 Host0Channel0/sdh CLOSE NORMAL 7460 0
7 Host0Channel0/sdo CLOSE NORMAL 0 0

DEV#: 2 DEVICE NAME: vpathl TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000096
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sday CLOSE NORMAL 1819009 0
1 Host1Channel0/sdak CLOSE NORMAL 0 0
2 Host1Channel0/sdar CLOSE NORMAL 1818549 0
3 Host0Channel0/sdw CLOSE NORMAL 1820897 0
4 Host1Channel0/sdad CLOSE NORMAL 0 0
5 Host0Channel0/sdb CLOSE NORMAL 0 0
6 Host0Channel0/sdi CLOSE NORMAL 0 0
7 Host0Channel0/sdp CLOSE NORMAL 1804045 0

DEV#: 3 DEVICE NAME: vpathm TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000091
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdaz CLOSE NORMAL 0 0
1 Host1Channel0/sdal CLOSE NORMAL 100105 0
2 Host1Channel0/sdas CLOSE NORMAL 0 0
3 Host0Channel0/sdq CLOSE NORMAL 0 0
4 Host0Channel0/sdx CLOSE NORMAL 0 0
5 Host1Channel0/sdae CLOSE NORMAL 95597 0
6 Host0Channel0/sdc CLOSE NORMAL 96473 0
7 Host0Channel0/sdj CLOSE NORMAL 95534 0

DEV#: 4 DEVICE NAME: vpathh TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000095
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdba CLOSE NORMAL 160 0
1 Host1Channel0/sdam CLOSE NORMAL 0 0
2 Host1Channel0/sdat CLOSE NORMAL 219 0
3 Host0Channel0/sdr CLOSE NORMAL 254 0
4 Host0Channel0/sdy CLOSE NORMAL 370 0
5 Host1Channel0/sdaf CLOSE NORMAL 0 0
6 Host0Channel0/sdd CLOSE NORMAL 0 0
7 Host0Channel0/sdk CLOSE NORMAL 0 0

DEV#: 5 DEVICE NAME: vpathi TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000094
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdbb CLOSE NORMAL 4959899 0
1 Host1Channel0/sdag CLOSE NORMAL 0 0
2 Host1Channel0/sdan CLOSE NORMAL 0 0
3 Host1Channel0/sdau CLOSE NORMAL 4956162 0
4 Host0Channel0/sds CLOSE NORMAL 5032326 0
5 Host0Channel0/sdz CLOSE NORMAL 5055897 0
6 Host0Channel0/sde CLOSE NORMAL 0 0
7 Host0Channel0/sdl CLOSE NORMAL 0 0

DEV#: 6 DEVICE NAME: vpathj TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000093
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdbc CLOSE NORMAL 3715251 0
1 Host1Channel0/sdah CLOSE NORMAL 0 0
2 Host1Channel0/sdao CLOSE NORMAL 0 0
3 Host1Channel0/sdav CLOSE NORMAL 3743916 0
4 Host0Channel0/sdt CLOSE NORMAL 3823190 0
5 Host0Channel0/sdaa CLOSE NORMAL 3800038 0
6 Host0Channel0/sdf CLOSE NORMAL 0 0
7 Host0Channel0/sdm CLOSE NORMAL 0 0

Use the command rmvpath to remove all paths

root@linux:~ # rmvpath
Continuing will remove all IBM vpath devices.
Do you want to continue (y/n)?: n

This is a little man page for the rmvpath command

root@linux:~ # rmvpath ?

NAME
rmvpath — remove IBM vpath devices.

SYNOPSIS
rmvpath [OPTION]… [VPATH]

DESCRIPTION
rmvpath can be invoked with no options or with the name
of a specific vpath device to remove, and/or a specific
configuration file.

OPTIONS
-f [FILENAME] indicate a specific configuration file to update
rmvpath will default to /etc/vpath.conf
[VPATH] if no vpath is specified, all IBM vpath
devices will be removed
debug prints debug information to stdout

DEFAULTS
o default configuration file is /etc/vpath.conf
o all vpaths are removed

To remove /dev/vpath4, updating /tmp/configuration:

rmvpath -f /tmp/configuration vpath4

I removed only the vpathi disk here

root@linux:~ # rmvpath vpathi
Remove vpathi requested
Deleting file: /dev/vpathi

Source: Implementing Linux with IBM Disk Storage

Advertisement