Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1976

December 7th, 2011 02:00

chown via ssh on a VNXe possible

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

19 Posts

December 7th, 2011 11:00

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

70 Posts

December 7th, 2011 02:00

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=2257352&type=3&contentID=8864&termId=3869

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

5 Practitioner

 • 

274.2K Posts

December 8th, 2011 09:00

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.

No Events found!

Top