Highlighted
h2omedia
1 Copper

chown via ssh on a VNXe possible

Jump to solution

Hi,

the topic pretty much already states my Problem/Question. Is it possible to login via ssh and execute commands like chown?

I'd need to automatically chown 10+ mIllion files from time to time and via NFS that take forever.

Thanks a lot,

Ben

0 Kudos
1 Solution

Accepted Solutions
MarkParenti
1 Copper

Re: chown via ssh on a VNXe possible

Jump to solution

There is no access to user data from either ssh or uemcli. From Ben's description above it sounds like he is looking for the ability to do a "chown" on his user data files. The only way to to that is via NFS or CIFS.

Mark

0 Kudos
3 Replies
Shivanand1
2 Iron

Re: chown via ssh on a VNXe possible

Jump to solution

Hi Ben,

As per the design of VNXe, ssh has to be only used by support or engineering.

However there is another set of cli for end customers called "uemcli" which can be downloaded from https://supportbeta.emc.com/downloads/downloads_search.htm?productId=8864&name=VNXe Series&id=225735...

install on the system from where you need to run the cli commands. There is also a guide on how to run the uemcli commands please refer it for your reference.

Regards

Shivanand

MarkParenti
1 Copper

Re: chown via ssh on a VNXe possible

Jump to solution

There is no access to user data from either ssh or uemcli. From Ben's description above it sounds like he is looking for the ability to do a "chown" on his user data files. The only way to to that is via NFS or CIFS.

Mark

0 Kudos
Brito1
1 Copper

Re: chown via ssh on a VNXe possible

Jump to solution

I'm not a support resource at EMC but I do have personal experience with trying to CHOWN large numbers of files and it taking a VERY long time to complete.

My problem was this: every day large numbers of files were added to a share under the user WEB. I needed them to be owned by the user and group BATCH for a nightly process to execute. If I CHOWN'ed them using -R it would go through the entire file structure (existing files with the correct owner and new files with the incorrect owner) and take a very long time.

My solution was: a shell script which uses the FIND command to very quickly identify files with the incorrect owner and run CHOWN on only those files. My script is below.

#!/bin/bash

find /media/nfs -user web -exec chown batch:batch {} \;

Again this is not coming from EMC support and is not an EMC official solution but I saw your post while having lunch and thought I would just throw in my personal experience since you can't get to your user data from the VNXe CLI. If I can be of any help at all just reply to this thread.