How to present EMC MirrorView SnapView snapshot devices to a Linux server using Veritas DMP

book

Article ID: 100037847

calendar_today

Updated On:

Description

Description


This document attempts to explain the devices required to present an EMC MirrorView SnapView snapshot device to a Linux server using Veritas DMP as the multipathing solution.


How to view the EMC CLARiiON devices associated with StorageGroup "vcssx065_066"

 

Sample output

 

Note: The IP address for the EMC CLARiiON in this instance is "10.209.64.26"
 


Daffy # /opt/Navisphere/bin/naviseccli -h 10.209.64.26 storagegroup -list -gname Daffy303_304 -host

Storage Group Name:    Daffy303_304
Storage Group UID:     84:43:0F:12:03:14:E0:11:B8:90:00:60:16:0E:E6:04
HBA/SP Pairs:

  HBA UID                                          SP Name     SPPort
  -------                                          -------     ------
  20:00:00:E0:8B:1A:AD:B5:21:00:00:E0:8B:1A:AD:B5   SP A         0
Host name:             vcslx303.vxindia.veritas.com
  20:00:00:E0:8B:1A:AD:B5:21:00:00:E0:8B:1A:AD:B5   SP B         0
Host name:             vcslx303.vxindia.veritas.com

HLU/ALU Pairs:

  HLU Number     ALU Number
  ----------     ----------
    0               281
Shareable:             YES

 

Daffy # ./add.luns
+ /opt/Navisphere/bin/naviseccli -h 10.209.64.26 snapview -startsession VCS_mvsnap_sync_fd_session -lun 281 -persistence -consistent
You must activate a snapshot on this session before you can access it.


+ /opt/Navisphere/bin/naviseccli -h 10.209.64.26 snapview -createsnapshot 281 -snapshotname lun281_fd_snapshot

+ /opt/Navisphere/bin/naviseccli -h 10.209.64.26 snapview -activatesnapshot VCS_mvsnap_sync_fd_session -snapshotname lun281_fd_snapshot

+ /opt/Navisphere/bin/naviseccli -h 10.209.64.26 storagegroup -addsnapshot -gname
Daffy303_304 -snapshotname lun281_fd_snapshot

+ /opt/Navisphere/bin/naviseccli -h 10.209.64.26 storagegroup -list -gname
Daffy303_304 -host

Storage Group Name:    Daffy303_304
Storage Group UID:     84:43:0F:12:03:14:E0:11:B8:90:00:60:16:0E:E6:04
HBA/SP Pairs:

  HBA UID                                          SP Name     SPPort
  -------                                          -------     ------
  20:00:00:E0:8B:1A:AD:B5:21:00:00:E0:8B:1A:AD:B5   SP A         0
Host name:             vcslx303.vxindia.veritas.com
  20:00:00:E0:8B:1A:AD:B5:21:00:00:E0:8B:1A:AD:B5   SP B         0
Host name:             vcslx303.vxindia.veritas.com

HLU/ALU Pairs:

  HLU Number     ALU Number
  ----------     ----------
    0               281

HLU/SLU Pairs:

 HLU No.  SNAP SHOT UID                                     SNAP SHOT NAME
 ------  -----------------------------------------------    --------------
 1       60:06:01:60:93:00:1B:00:94:D8:85:D0:E3:44:E0:11      lun281_fd_snapshot
Shareable:             YES



Display the devices currently discovered by the O/S


Daffy # /usr/bin/lsscsi
[0:0:0:0]    disk    MAXTOR   ATLAS10K5_73SCA  JNZM  /dev/sda
[0:0:6:0]    process PE/PV    1x6 SCSI BP      1.0   -
[2:0:0:0]    storage HP       HSV200           6110  -
[2:0:0:1]    disk    HP       HSV200           6110  /dev/sdb
[2:0:0:2]    disk    HP       HSV200           6110  /dev/sdc
[2:0:0:3]    disk    HP       HSV200           6110  /dev/sdd
[2:0:0:4]    disk    HP       HSV200           6110  /dev/sde
[2:0:0:5]    disk    HP       HSV200           6110  /dev/sdf
[2:0:0:6]    disk    HP       HSV200           6110  /dev/sdg
[2:0:0:7]    disk    HP       HSV200           6110  /dev/sdh
[2:0:1:0]    storage HP       HSV200           6110  -
[2:0:1:1]    disk    HP       HSV200           6110  /dev/sdi
[2:0:1:2]    disk    HP       HSV200           6110  /dev/sdj
[2:0:1:3]    disk    HP       HSV200           6110  /dev/sdk
[2:0:1:4]    disk    HP       HSV200           6110  /dev/sdl
[2:0:1:5]    disk    HP       HSV200           6110  /dev/sdm
[2:0:1:6]    disk    HP       HSV200           6110  /dev/sdn
[2:0:1:7]    disk    HP       HSV200           6110  /dev/sdo
[2:0:2:0]    disk    DGC      RAID 5           0326  /dev/sdp
[2:0:3:0]    disk    DGC      RAID 5           0326  /dev/sdq



Rediscover newly presented devices.



Daffy # echo '- - -' > /sys/class/scsi_host/host2/scan



Refresh the O/S device listing


Daffy # /usr/bin/lsscsi
[0:0:0:0]    disk    MAXTOR   ATLAS10K5_73SCA  JNZM  /dev/sda
[0:0:6:0]    process PE/PV    1x6 SCSI BP      1.0   -
[2:0:0:0]    storage HP       HSV200           6110  -
[2:0:0:1]    disk    HP       HSV200           6110  /dev/sdb
[2:0:0:2]    disk    HP       HSV200           6110  /dev/sdc
[2:0:0:3]    disk    HP       HSV200           6110  /dev/sdd
[2:0:0:4]    disk    HP       HSV200           6110  /dev/sde
[2:0:0:5]    disk    HP       HSV200           6110  /dev/sdf
[2:0:0:6]    disk    HP       HSV200           6110  /dev/sdg
[2:0:0:7]    disk    HP       HSV200           6110  /dev/sdh
[2:0:1:0]    storage HP       HSV200           6110  -
[2:0:1:1]    disk    HP       HSV200           6110  /dev/sdi
[2:0:1:2]    disk    HP       HSV200           6110  /dev/sdj
[2:0:1:3]    disk    HP       HSV200           6110  /dev/sdk
[2:0:1:4]    disk    HP       HSV200           6110  /dev/sdl
[2:0:1:5]    disk    HP       HSV200           6110  /dev/sdm
[2:0:1:6]    disk    HP       HSV200           6110  /dev/sdn
[2:0:1:7]    disk    HP       HSV200           6110  /dev/sdo
[2:0:2:0]    disk    DGC      RAID 5           0326  /dev/sdp
[2:0:2:1]    disk    DGC      RAID 5           0326  -
[2:0:3:0]    disk    DGC      RAID 5           0326  /dev/sdq
[2:0:3:1]    disk    DGC      RAID 5           0326  -


Refresh VxVM


Daffy # vxdisk scandisks


Refresh the contents of the /etc/vx/disk.info file


Daffy # vxddladm assign names
 

Display the devices presented to VxVM
 

Daffy # vxdisk -x UDID -x LUN_SERIAL_NO -p list | grep DGC
emc_clariion0_281 DGC%5FRAID%205%5FCK200065000220%5F6006016093001B002AD4B6D9FD13E011 6006016093001B002AD4B6D9FD13E011
emc_clariion0_281_1 DGC%5FRAID%205%5FCK200065000220%5F6006016093001B0094D885D0E344E011 6006016093001B0094D885D0E344E011


Daffy # /opt/Navisphere/bin/naviseccli -h 10.209.64.26 storagegroup -list -gname Daffy303_304 -host | grep ":"
Storage Group Name:    Daffy303_304
Storage Group UID:     84:43:0F:12:03:14:E0:11:B8:90:00:60:16:0E:E6:04
HBA/SP Pairs:
  20:00:00:E0:8B:1A:AD:B5:21:00:00:E0:8B:1A:AD:B5   SP A         0
Host name:             vcslx303.vxindia.veritas.com
  20:00:00:E0:8B:1A:AD:B5:21:00:00:E0:8B:1A:AD:B5   SP B         0
Host name:             vcslx303.vxindia.veritas.com
HLU/ALU Pairs:
HLU/SLU Pairs:
 1       60:06:01:60:93:00:1B:00:94:D8:85:D0:E3:44:E0:11      lun281_fd_snapshot
Shareable:             YES

 

Daffy # vxdisk -eo alldgs list
DEVICE       TYPE           DISK        GROUP        STATUS               OS_NATIVE_NAME   ATTR
emc_clariion0_281 auto:cdsdisk   -            (dg2)       online               sdq              lun RAID_5
emc_clariion0_281_1 auto:cdsdisk   -            (dg2)       online udid_mismatch sds              lun RAID_5    <<< EMC MirrorView SnapView snapshot lun
eva4k6k0_0   auto:cdsdisk   -            (OracleDG)  online               sdb              -
eva4k6k0_1   auto:cdsdisk   -            (OracleDG)  online               sdj              -
eva4k6k0_2   auto:cdsdisk   -            (WebSphereDG) online               sdk              -
eva4k6k0_3   auto:cdsdisk   -            (WebSphereDG) online               sdl              -
eva4k6k0_4   auto:cdsdisk   -            -           online               sdm              -
eva4k6k0_5   auto:cdsdisk   DISK00       EVACA0      online               sdn              -
eva4k6k0_6   auto           -            -           error                sdo              -
sda          auto:none      -            -           online invalid       sda              -

 


 

How to import the EMC MirrorView SnapView Snapshot lun using VxVM tags


Daffy # vxdisk settag emc_clariion0_281_1 snap_dg2

Daffy # vxdisk listtag
DEVICE          NAME                            VALUE
emc_clariion0_281_1     snap_dg2                        -


Daffy # vxdg -Cfn snap_dg2 -o useclonedev=on -o updateid -o tag=snap_dg2 import dg2

 

Daffy # vxdisk -eo alldgs list
DEVICE       TYPE           DISK        GROUP        STATUS               OS_NATIVE_NAME   ATTR
emc_clariion0_281 auto:cdsdisk   -            (dg2)       online               sdq              lun RAID_5
emc_clariion0_281_1 auto:cdsdisk   emc_clariion0_296  snap_dg2    online clone_disk    sds              lun RAID_5    <<< EMC MirrorView SnapView snapshot lun
eva4k6k0_0   auto:cdsdisk   -            (OracleDG)  online               sdb              -
eva4k6k0_1   auto:cdsdisk   -            (OracleDG)  online               sdj              -
eva4k6k0_2   auto:cdsdisk   -            (WebSphereDG) online               sdk              -
eva4k6k0_3   auto:cdsdisk   -            (WebSphereDG) online               sdl              -
eva4k6k0_4   auto:cdsdisk   -            -           online               sdm              -
eva4k6k0_5   auto:cdsdisk   DISK00       EVACA0      online               sdn              -
eva4k6k0_6   auto           -            -           error                sdo              -
sda          auto:none      -            -           online invalid       sda              -



With VxVM 5.1 SP1 the VxVM volumes will be started automatically.


Daffy # rpm -qa VRTSvxvm
VRTSvxvm-5.1.100.000-SP1_RHEL5
 

Daffy # vxprint -qhtg snap_dg2
dg snap_dg2     default      default  45000    1299101939.20.vcslx303.vxindia.veritas.com

dm emc_clariion0_296 emc_clariion0_281_1 auto 65536 134912 -

v  vol1         -            ENABLED  ACTIVE   102400   SELECT    -        fsgen
pl vol1-01      vol1         ENABLED  ACTIVE   102400   CONCAT    -        RW
sd emc_clariion0_296-01 vol1-01 emc_clariion0_296 0 102400 0      emc_clariion0_281_1 ENA


The VxVM tunable "autostartvolumes" controls this behaviour.


Daffy # vxdefault list
KEYWORD                        CURRENT-VALUE   DEFAULT-VALUE
autostartvolumes               on              on   <<<<<
fssmartmovethreshold           100             100
reclaim_on_delete_start_time   22:10           22:10
reclaim_on_delete_wait_period  1               1
sharedminorstart               33000           33000
usefssmartmove                 all             all
 

Daffy # mount -t vxfs /dev/vx/dsk/snap_dg2/vol1 /snap_vol1
UX:vxfs mount.vxfs: ERROR: V-3-21251: /snap_vol1 does not exist

Daffy # mkdir /snap_vol1
Daffy # mount -t vxfs /dev/vx/dsk/snap_dg2/vol1 /snap_vol1
 

 

Process complete 

Issue/Introduction

How to present EMC MirrorView SnapView snapshot devices to a Linux server using Veritas DMP