Emc powerpath device & zfs query


 
Thread Tools Search this Thread
Operating Systems Solaris Emc powerpath device & zfs query
# 1  
Old 10-25-2013
Emc powerpath device & zfs query

Hi,

We're trying out a SAN migration from HP EVA to EMC VMAX, and run into a bit of an issue with powerpath and zfs.

The method we're currently using to migrate is to export the HP EVA luns from our sun server, replicate using SAN based method, and then present the new luns to our Sun server doing a zfs import.

The problem we have is when doing a zfs import, zfs chooses one of the 4 possible paths to the lun, instead of using the powerpath pseudo device.

Code:
zpool status output:

 pool: tibcoapp
 state: ONLINE
 scrub: none requested
config:

        NAME                      STATE     READ WRITE CKSUM
        tibcoapp                  ONLINE       0     0     0
          c5t50000975F000258Dd20  ONLINE       0     0     0



/etc/powermt display dev=all

Pseudo name=emcpower29a
Symmetrix ID=0002987XXXXX
Logical device ID=1306
state=alive; policy=SymmOpt; queued-IOs=0
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
3073 pci@3,700000/SUNW,emlxs@0,1/fp@0,0 c3t50000975F0002589d20s0 FA  3gB  active   alive      0      0
3073 pci@3,700000/SUNW,emlxs@0,1/fp@0,0 c3t50000975F0002585d20s0 FA  2gB  active   alive      0      0
3077 pci@13,700000/SUNW,emlxs@0,1/fp@0,0 c5t50000975F000258Dd20s0 FA  4gB  active   alive      0      0
3077 pci@13,700000/SUNW,emlxs@0,1/fp@0,0 c5t50000975F0002581d20s0 FA  1gB  active   alive      0      0

Is there a way to force zfs to use the pseudo device: /dev/dsk/emcpower29a, instead of c5t50000975F000258Dd20, whch it is currently using?

I do know that adding a blank lun from the EMC SAN to the existing zpool as a mirror would be a lot simpler - but unfortunately this method is the one we have to use.

Thanks in advance.
# 2  
Old 10-25-2013
I've done this quite a few times on UFS and I believe the same general procedure will work for ZFS as well. When you're creating the zpool, use the following paramater 'zpool create your_pool_name /dev/dsk/emcpower29a' and not ''zpool create your_pool_name /dev/dsk/c5t50000975F0002581d20s0'.

Or, if you've already tried that, please post the output you used to create the zpool. That's probably the best place to start.
# 3  
Old 10-25-2013
the zpool was created using the id from a different device (as it used to be hosted on HP EVA SAN). So it must have been something along:

Code:
zpool create tibcoapp /dev/dsk/c6t6001438002A57F6C0000800006D80000d0

now we've exported that zpool, done a SAN migration to duplicate the lun onto EMC, presented the new lun to the server and done a

Code:
zpool import tibcoapp

which automatically mounted the zpool, configuring it using the c5t5 path rather than the EMC pseudo device. It seems to be functioning perfectly, other than the fact we'll lose the device if we lose that single c5t5 path.
# 4  
Old 10-26-2013
Just use zpool mirror/attach/detach.

Add a with same size or bigger from EVA storage in tibcoapp pool via attach.
After the resilver is complete, detach the EMC disk.

No need for SAN storage replication techniques.

Hope that helps
Regards
Peasant.
# 5  
Old 10-28-2013
thanks for the advice Peasant.

Yes, I had a feeling we were over complicating things. I will push for the zpool mirror method. Attach the new lun (referencing the EMC pseudo device), wait for sync and detach old device.

Cheers.
# 6  
Old 10-30-2013
Many thanks to everyone for their input so far. I've just got one final ZFS query, then i'll be done - promise!

I've followed peasant's advice utilising the ZFS attach/detach, and it works perfectly. I'm just not clear on how to mirror a zpool with 2 striped luns:

Code:
  pool: dev_app
 state: ONLINE
 scrub: none requested
config:

        NAME                                     STATE     READ WRITE CKSUM
        dev_app                            ONLINE       0     0     0
          c6t6001438002A57F6C000080000C0A0000d0  ONLINE       0     0     0
          c6t6001438002A57F6C000080000C150000d0  ONLINE       0     0     0

On a normal one lun zpool, to attach a mirror device, I would issue a:

Code:
zpool attach <pool name> <existing device> <new device>

But how would I do that one the zpool above, with 2 striped luns? Googling suggests tackling each lun in turn:

Code:
zpool attach dev_app c6t6001438002A57F6C000080000C0A0000d0 <new lun1>
zpool attach dev_app c6t6001438002A57F6C000080000C150000d0 <new lun2>

But have no idea, what kind out zpool that would create. Unfortunately I don't hve a test system I can try this out on. Can anyone please advise?

Many thanks.
# 7  
Old 10-30-2013
You should be able to create a mirror with from existing two disks to new two disks using attach.

You can try this method on your server using ZVOL's or files as backend for your test zpool.

First create a pool with two zvols or files as backend device, then use attach to attach additional 2 zvols/files as backend device.
This can be 200 MB files or zvols, no need for gigabytes, on existing free space anywhere on the system.

If everything is ok, you can run it on your real data.

Also, you can use virtualization on your desktop to check if things work before typing it on production systems.

Hope that helps
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Setting up Solaris & ZFS for the first time

Hello All I’ve made the decision to switch my storage server from FreeNAS to Solaris. I opted to use FreeNAS as it has ZFS and until BTRFS is stable, it’s the best option (IMHO) for backup and network storage. The switch was facilitated by the USB stick that FreeNAS was on got lost during a... (1 Reply)
Discussion started by: BlueDalek
1 Replies

2. Solaris

One emc powerpath failed

It seems like I lost one path on my Solaris-11 box. But I want to make sure before going to Storage team, if issue is from OS side or Storage side. Storage team is able to see that only one wwwn is looged in their switch. I am not at server's physical location. What does below output says ? I... (0 Replies)
Discussion started by: solaris_1977
0 Replies

3. Linux

EMC, PowerPath and issue on using LUN

Hello guys, I'm going crazy over here with a problem with a LUN created on a EMC CX3. I did sucessfully managed to create the LUN on the Storage (the LUN is named DBLNX25EC_TST), after doing the following process: echo "1" > /sys/class/fc_host/host<n>/issue_lip and echo "- - -" >... (10 Replies)
Discussion started by: Zarnick
10 Replies

4. AIX

Help with EMC BCV device

I'm trying to auto-mount EMC Symmetrix BCV device at boot. but having problem making BCV available. I put script called mkbcv to the inittab and engineer suggested to add 120 sec sleep between cfgmgr so I did that also. My mkbcv script seems to be working fine, it says "hdisk4 Available" ... (1 Reply)
Discussion started by: shuhei365
1 Replies

5. Solaris

ZFS snapshot query

I saved one of my zfs snapshot on the remote machine with following command. And now i want to restore the same snapshot to original server how can i receive it on the original server from backup server. #zfs send rpool/ROOT/sol10_patched@preConfig | ssh x.x.x.x zfs receive... (1 Reply)
Discussion started by: fugitive
1 Replies

6. Emergency UNIX and Linux Support

Mapping between "Pseudo name" and "Logical device ID" in powerpath with SVM changed....

Dear All, I was having powerpath 5.2 on SUN server with SVM connected to CLARIION box.Please find the following output : root # powermt display dev=all Pseudo name=emcpower3a CLARiiON ID=CK200073400372 Logical device ID=60060160685D1E004DD97FB647BFDC11 state=alive; policy=CLAROpt;... (1 Reply)
Discussion started by: Reboot
1 Replies

7. Red Hat

Configure EMC Powerpath?

Hi , I have a redhat 5.3 server which has 2 vg.. one is rootvg in local harddisk and another one is applicationvg in SAN.. When I reboot the server , EMC powerpath driver is not starting up automatically. Hence applicationvg is not mounting properly. Therefore I need to unmount it manually and... (4 Replies)
Discussion started by: Makri
4 Replies

8. Solaris

Query related to device naming of SATA

Friends, Could u please clarify how does a Solaris 10 machine recognize a SATA hard disk, SATA CD/DVD drives. Will it recognize it like a SCSI? eg.c0t0d0 or like ide ? eg.c0d0 thank u. (11 Replies)
Discussion started by: saagar
11 Replies

9. Linux

Query about creating sysfs directory under device driver

Hi all, Currently i am involved in developing a device driver for a custom hardware. My linux stack already has the sysfs directory structure /sys/class/hwmon/ My need is that, while loading my device driver i need to create a "xyz" sysfs directory inside hwmon sysfs directory as... (0 Replies)
Discussion started by: cbalu
0 Replies

10. Filesystems, Disks and Memory

Can Veritas DMP & EMC PowerPath coexist?

We currently have a Solaris box connected to a Clariion storage system that is utilising DMP for path failover. I would prefer to use EMC's Powerpath and was wondering if the two can coexist? Basically, I am struggling to find any documentation on the subject and was wonder if anyone can give me... (2 Replies)
Discussion started by: aaron2k
2 Replies
Login or Register to Ask a Question