Keeping same emc sudo name in Linux


 
Thread Tools Search this Thread
Operating Systems Linux Keeping same emc sudo name in Linux
# 1  
Old 04-29-2013
Keeping same emc sudo name in Linux

Hi,

I have Suse Linux Enterprise Server 10 installed on two node ocfs2 cluster my server. Node-1 is ptdmod01 and Node-2 is ptdmod02. It is having 218 ocfs file system, which are shared among both servers. Since this is ocfs2, each disk from EMC Storage is mounted individually on file-system as below
PHP Code:
root@ptdmod01:~> df -tail -10
/dev/emcpowerhj        18G  246M   18G   2% /pcps/apps/test
/dev/emcpowerhk        18G  230M   18G   2% /vror/apps/test
/dev/emcpowerhl       8.8G  140M  8.6G   2% /inf/duet_dom/inf_domain02/cache/VROR/test
/dev/emcpowerhm       8.8G  148M  8.6G   2% /inf/duet_dom/inf_domain02/logs/VROR/test
/dev/emcpowerhn       8.8G  136M  8.6G   2% /inf/duet_dom/inf_domain02/cache/PCPS/test
/dev/emcpowerho       8.8G  139M  8.6G   2% /inf/duet_dom/inf_domain02/logs/PCPS/test
/dev/emcpowerhp        18G  461M   17G   3% /redwood/apps/rwtt_tlinft
/dev/mapper/vg_local_redwood-lv_reedwood_apps_rwtt
                      8.0G  744M  7.3G  10
% /redwood/apps/rwtt
/dev/emcpowerhr        18G  379M   18G   3% /inf/duet_dom/inf_domain02/cache/ndw/uat
root
@ptdmod01:~> cat /etc/fstab tail -10
/dev/emcpowerhh /pfcst/apps/qa                                  ocfs2   _netdev         0 0
dmonpod13
:/root_vdm_5/APPS01/SASQA      /pfcst/etl-qa   nfs defaults 0 0
/dev/emcpowergo         /redwood/apps/rw8d              ocfs2   _netdev         0 0
/dev/emcpowerhj         /pcps/apps/test                                 ocfs2   _netdev         0 0
/dev/emcpowerhk         /vror/apps/test                                 ocfs2   _netdev         0 0
/dev/emcpowerhl         /inf/duet_dom/inf_domain02/cache/VROR/test   ocfs2   _netdev         0 0
/dev/emcpowerhm         /inf/duet_dom/inf_domain02/logs/VROR/test    ocfs2   _netdev         0 0
/dev/emcpowerhn         /inf/duet_dom/inf_domain02/cache/PCPS/test   ocfs2   _netdev         0 0
/dev/emcpowerho         /inf/duet_dom/inf_domain02/logs/PCPS/test    ocfs2   _netdev         0 0
/dev/emcpowerhp         /redwood/apps/rwtt_tlinft                       ocfs2   _netdev         0 0 
Apart from it there are few vg also created on server, which are also shared among both ocfs cluster servers. Now, I have a challenge here. Our Storage is going to be migrated from DMX to vmax, so all the data has to be migrated to new storage and those new luns to be presented to server. I know, vg can be exported and imported and server will be able to see new luns and will mount them as expected. But when storage team will migrate data to new storage and present new luns, those will come in different emc sudo format. OS takes help from /etc/fstab to mount them, but after migration, emc device name will be changed to something else and mount will fail.
One way is to check each new lun and change entry in /etc/fstab, but it is a tedious job since there are large number of devices. Is there any way, if I can keep same.
For example, currently /dev/emcpowerdj is mounted on /inf/domain02/ora_dev. lun id is 37AD for this. On Storage side, they will copy data to new lun and will present that lun to server. I will be able to see that lun in inq output. But I expect its naming convention to be /dev/emcpowerdj, so that I do not need to edit /etc/fstab.
Hope, I am enough clear in explaining my problem.
# 2  
Old 04-29-2013
Being no EMC expert, my guess is that you will need to set-up some udev rules. However, this may also become a tedious job if there are a large number of devices, so this might not be a better option to changing all of your /etc/fstab entries. Either way you could write a script to automate the task.
# 3  
Old 04-29-2013
While googling, I got some for emc, but not sure if this can really works on my complex.
PHP Code:
emcpadm renamepseudo -s emcpowerg -t emcpowerc 
# 4  
Old 04-29-2013
Can you mount by UUID?
# 5  
Old 04-29-2013
I can have my old lun id (from old storage) and storage team can tell me, "hey, this is the lun-id from new storage, and its ol lun-id was this this this".
But I want to make my process easy, because there are more than two hundred file-systems.
Otherwise I have solution to edit fstab and mount them accordingly.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sudo: sorry, you must have a tty to run sudo

Hi, Have a need to run the below command as a "karuser" from a java class which will is running as "root" user. When we are trying to run the below command from java code getting the below error. Command: sudo -u karuser -s /bin/bash /bank/karunix/bin/build_cycles.sh Error: sudo: sorry,... (8 Replies)
Discussion started by: Satyak
8 Replies

2. UNIX for Dummies Questions & Answers

linux sudo: no tty present and no askpass program specified

Hi I have an Oracle DBA that is trying to install an RPM from Stratavia which is a web based portal and it executes the following: Instance Wrapper=sudo -u oracle /opt/datapalette/jython/jython Server Wrapper=sudo -u root /opt/datapalette/jython/jython I've compared the /etc/sudoers... (8 Replies)
Discussion started by: jeff-fafa
8 Replies

3. Shell Programming and Scripting

ssh foo.com sudo command - Prompts for sudo password as visible text. Help?

I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this: #!/bin/bash rsync /path/on/local/machine/ foo.com:path/on/remote/machine/ ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies

4. Linux

Linux- Useradd / sudo user

Hi, I am new in linux. Please help for create new user and also need to give sudo access in linux box. Please help me Now i am having new access Thanks, Mani (2 Replies)
Discussion started by: Mani_apr08
2 Replies

5. AIX

sudo log and sudo auditing

Sudo In AIX, how to find out what commands have been run after a user sudo to another user? for example, user sam run 'sudo -u robert ksh' then run some commands, how can I (as root) find what commands have been run? sudo.log only contains sudo event, no activity logging. (3 Replies)
Discussion started by: jalite19
3 Replies

6. UNIX for Advanced & Expert Users

Setup SUDO For a User on Linux Server

Hello! Can anyone please assist: Question: On Linux Server I have created two users John and Matt. I want to give both the users the ability to run 'more' and 'tail -f' commands on the log file in the directory /var/log/test.log. I do not want to give them SU rights. Can any one please... (6 Replies)
Discussion started by: sureshcisco
6 Replies

7. UNIX for Dummies Questions & Answers

Unable to use the Sudo command. "0509-130 Symbol resolution failed for sudo because:"

Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks! When attempting to use sudo on and AIX machine with oslevel 5.1.0.0, I get the following error: exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
Discussion started by: Chloe123
1 Replies

8. Linux

Enable sudo for Win AD users authenticated with Linux samba winbind service

Hi everyone, I wonder if anyone ever came across the idea of unifying AD and Linux user accounts We have a Linux machine with 'samba' 'winbind' service configured to let Windows AD users to logon locally using their AD accounts and passwords. I can use 'su' to get to the local user privilege... (0 Replies)
Discussion started by: will_mike
0 Replies

9. Linux

First time sudo and Linux

We have a linux system at all locations that is not really used interactively. Well the users need to shutdown the box on weekends. to do this they usally call us to shut it down remotely with root. well i just came accross sudo. and i am unsure how to use it i did visudo then i did %mliu ... (2 Replies)
Discussion started by: deaconf19
2 Replies
Login or Register to Ask a Question