General :: EMC PowerPath - How To Change Psuedo Names

May 26, 2009

I am setting up an nfs failover node. The NFS servers share out mounts to a SAN. My problem is this: the master node has
emcpowera as the 100 gig partition
emcpowerb as the 200 gig partition
emcpowerc as the 300 gig partition

and the failover node has
emcpowerc as the 100 gig partition
emcpowerb as the 200 gig partition
emcpowera as the 300 gig partition

This is no problem until the failover node takes over the duties of nfs. The nfs clients that were connected to the share that map to emcpowerc on the master now for some reason map to emcpowera. I had a look and see that powermt is responsible for the pseudo naming of the devices. How do I change the pseudo names for the SAN on the failover node to match the emcpower# (a,b,c) on the Primary node?

View 8 Replies


ADVERTISEMENT

General :: Any Way To Change Actual File Names Using Amarok?

Jan 9, 2010

I use amarok 2 and I have a lot of files that are titled "Track #.mp3", in Amarok I have changed them to see as the real songs but the actual files are still the same. Is there a way to change the actual file names using amarok to match the tags I have inside of amarok? The reason why I'd want to do this:

1. If my home folder becomes corrupt I don't have to redo 100's of songs (I have a backup but none the less
2. If I ever decide to use another program or if I'm in W7 using Windows Media Player classic it'd be nice to have it recognize the correct files without having to double up on the tag editing

If this isn't possible I'm going to wishlist it because I think it's functional and having a bunch of Track# files is a pain but impossible to get around when you have a lot of mix cd's.

View 2 Replies View Related

General :: How To Change Same File Names Directory Wise

Apr 9, 2010

I have a problem with file names changes. I have a hundred of file with same names and different subdirectories. I want to change that file names by their subdirectery names.

Currently is:
file name------------------------subdirectory name
1_km_16_days_EVI_s2_01200_01200.img --> MOD13A2.A2000049.h23v03.005.dir
1_km_16_days_EVI_s2_01200_01200.img --> MOD13A2.A2000065.h23v03.005.dir
1_km_16_days_EVI_s2_01200_01200.img --> MOD13A2.A2000081.h23v03.005.dir
...

I want to
MOD13A2.A2000049.h23v03.005.img
MOD13A2.A2000065.h23v03.005.img
MOD13A2.A2000081.h23v03.005.img

View 3 Replies View Related

General :: Use Script To Batch Change File Names In Folder

Nov 9, 2009

I would like to change file names in two ways

1)
1.jpg -> 0001.jpg
2.jpg -> 0002.jpg
...
x.jpg -> 000x.jpg
...
xy.jpg -> 00xy.jpg

2)
5201.jpg -> 5001.jpg
5202.jpg -> 5002.jpg
...
5xyz.jpg -> 5(x-2)yz.jpg (where x >= 2)

View 3 Replies View Related

Programming :: Psuedo Terminal - Cannot Add Fflush To Source Code

Feb 22, 2010

I have a problem in programing pseudo terminal. In the book APUE (advanced programing in the unix environment) in chapter 15.4: coprocess gives an example of using pipe to operate another program, that provide its input and read its output: Figure 15.18. Figure 15.19 is filter to add two numbers using standard IO. The author said that you must flush the IO buffer in the program which are operated through pipe by another program, however, we cannot add fflush to the source code and re-compile the whole program if we need to use it in another process. It said that pseudo terminal can solve this problem, but I have tried in fedora12 with forkpty call and fail. Source code as follows:

The main process:
Code:
#include "common.h"
#define LINESIZE 256
int main()
{
int fd[2];
pid_t pid;
if( socketpair(AF_UNIX, SOCK_STREAM, 0, fd)<0 ) {
perror("create socket error");
exit(1);
}
int master;
struct termios tm;
if( tcgetattr(STDIN_FILENO, &tm)<0 ) {
perror("tcgetattr error");
exit(3);
}
struct winsize size;
if( ioctl(STDIN_FILENO, TIOCGWINSZ, (char*)&size)<0 ) {
perror("ioctl error");
exit(4);
}
setbuf(stdout, NULL);
pid=forkpty(&master, NULL, &tm, &size);
if( pid<0 ) {
perror("create process error");
exit(2);
}
else if(pid>0) {//parent
close(fd[1]);
char line[LINESIZE];
memset(line, 0, LINESIZE);
while( fgets(line, LINESIZE, stdin)!=NULL ) {
write(fd[0], line, strlen(line));
memset(line, 0, LINESIZE);
int n=read(fd[0], line, LINESIZE);
if(n>=0) line[n]=0;
printf("%s", line);
memset(line, 0, LINESIZE);
}
} else {//child
close(fd[0]);
if( fd[1]!=STDIN_FILENO ) {
if(dup2(fd[1], STDIN_FILENO)!=STDIN_FILENO) {
perror("dup2 error");
exit(1);
}
}
if( fd[1]!=STDOUT_FILENO) {
if(dup2(fd[1], STDOUT_FILENO)!=STDOUT_FILENO) {
perror("dup2 error");
exit(2);
}
}
close(fd[1]);
if(execl("./add", "add", (char*)0)<0) {
perror("exec error");
exit(3);
}
exit(0);
}
//parent
wait(NULL);
return 0;
}
The add program reads a line and get two numbers and return the sum of them.

Code:
#include "common.h"
int main() { int n1, n2;
char line[256];
memset(line, 0, 256);
while( fgets(line, 256, stdin)!=NULL) {
sscanf(line, "%d%d", &n1, &n2);
printf("%d", n1+n2);
fflush(NULL); /*the program does not work without this sentence why?*/
memset(line, 0, 256); } return 0; }

View 5 Replies View Related

Server :: Powerpath And Filter Out SDX Disks

May 3, 2009

We use powerpath on RHEL servers, with at least 2 paths to each disk, as you know the powerpath creates a pseudo devices called emcpowerX. I was wondering if there is any overhead if we don't use the lvm.conf to filter out all sdX disks? Except the "duplicate PV found" messages on LVM, does it delays the boot of the server?

View 1 Replies View Related

Server :: Using EMC For Storage - PowerPath And Qlogic

Jul 8, 2011

In our environment we are using EMC for storage. We are using Qlogic provided drivers and PowerPath and the OS is RHEL5.3. Currently we have 2 Luns connected in one of our server (emcpowera & emcpowerb) and storage team has allocated another 100Gb Lun to that system, my doubt is if I execute "ql-dynamic-tgt-lun-disc.sh" script that would be enough to detect the Lun and see the device under /dev/ as emcpowerc or I need to execute "powermt config" and "powermt save" commands also.

View 3 Replies View Related

Ubuntu :: Change Mp3 Names From Tag Id?

Jun 1, 2010

i my friend has just droped loads of music on to the computer from his ipod but all the names are just codes, when i look at the tag id the information is all there, how can i get the names to change automatically without having to do it all manually. is there a comand that can be put into the termal or a programme

View 2 Replies View Related

Ubuntu :: Change The Names Of Applications In Their Windows?

Mar 5, 2010

I.e. i have Opera open up at the moment and it says "Ubuntu Forums - Post New Thread - Opera". How can i change my programs so that i can change the name of the program that appears in the windows?

View 2 Replies View Related

Ubuntu Installation :: Change The Partition Names?

Jan 30, 2011

i have dual boot installation-win7+ ubuntu 10.10 working fine. but the linux partitions are shown as 67gb, 30gb etc , filesystem. what should be done to change the names, and should be changed to what?,for correct identification.-ppm

View 3 Replies View Related

Fedora Networking :: Change Network Interfaces Names?

Dec 11, 2009

I found problem in FC 12 release. I installed fc 12 to server (earlier there was FC 7). Then as always i realised that names of interfaces (eth0, eth1, eth2 .... eth9) changed after install. eth0 became eth9, eth1 became eth5 ... Earlier on previous fedora releases i solved this problem correcting HWADDR in ifcfg-eth files, so i linked MAC addresses to names (eth0, eth1, eth2) as i wanted in a right order. Now I can't do this. After correcting these files and restarting network sevice i constantly get a message: device ... has different mac than expected. I looked ifup-eth file and compare it with the same one in fedora 7. And i found that in fedora 7 there is function rename_device which processes if HWADDR value doen't coincide with real mac address value. See code:

# remap, if the device is bound with a MAC address and not the right device num
# bail out, if the MAC does not fit
if [ -n "${HWADDR}" ]; then
FOUNDMACADDR=`get_hwaddr ${REALDEVICE}`
if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then
curdev=`get_device_by_hwaddr ${HWADDR}`
if [ -n "$curdev" ]; then
rename_device "${REALDEVICE}" "${HWADDR}" "${curdev}" || {
echo $"Device ${DEVICE} has different MAC address than expected, ignoring."
[Code].....

But in fc 12 release there is no function rename_device!!!!!!!!! So in this case if HWADDR value is not the same as FOUNDMACADDR value (which equal to REALDEVICE mac address) i just get an error message So I can't change interfaces names, as result i can't organize right order of network interfaces as it was earlier on fc7.

View 1 Replies View Related

Ubuntu :: Change The Order In Which Users' Names Appear In GDM Login?

Aug 18, 2010

Can someone tell me if it is possible to change the order in which users' names appear in the GDM login screen? And if so, how to change it?

View 1 Replies View Related

Hardware :: Block Device Names Change After Reboot

Jan 19, 2011

I built a Raid5 volume with 3 SATA II hard disk drives. Further I have a system disk conected through IDE. During the first setup the IDE disk becomes sda, the SATA II disk sd[bcd] respectively. Now, sometimes the device names change after reboot - why ever... E.g. one of the raid5 disk become sda and so I got an error message during the boot procedure regarding the raid set. Curious, when the system is up and I stop and restart the Raid5 volume it comes up and runs fine. Because I'm currently at work I can't post any more detailed config files at the moment.

View 2 Replies View Related

Programming :: Change To Lower Case And Concatenate The First And Last Names?

Nov 28, 2010

I have a file like below. For all the lines (except for the ones listed as 'Unknown Owner' and N/A') I would like to change to lower case and concatenate the first and last names.Before:

Code:
aaa.bbb.ccc.ddd,Unknown Owner
ddd.eee.fff.ggg,N/A
hhh.iii.jjj.kkk,John Doe
aaa.bbb.ccc.ddd,Mary Jane

[Code]...

View 4 Replies View Related

Ubuntu :: Change Previously Generated Names For Mounted Drives?

Sep 24, 2010

Basically I have changed the default mount names for my windows partitions in Ubuntu. They were /media/data, /media/data_,/media/system reserved, etc

They are now /media/C,D,E,F

I have rebooted etc after the changes and when I look in Gnome places or in Nautilis the OLD names still show up.

HOWEVER when I run Nautilis as the root user all the CORRECT NEW names appear.

ALSO - if I create a BRAND NEW user account and login as that all the OLD names show up?

So this is something to do with ROOT access or whatever that is not allowing the names to be updated somehow?!?!?

As I use these disks in windows (obviously) I DONT want to change their labels. and basically this SHOULDN'T be the solution everyone is suggesting!

Root can generate the new names automatically based on the mount point in FSTAB why can't other users - and HOW to do do it MANUALLY?

View 5 Replies View Related

Red Hat / Fedora :: Change File Names To Remove Invalid Character

Apr 1, 2009

I am trying to copy a large number of files from a Linux server to a Windows file share. Unfortunately, all of the files and folders I have to copy have 10 numbers followed by 2 colons "::" in the name (example: 1234567890::WordDoc.doc) which of course is invalid in windows naming conventions. So now I'm trying to come up with a way to change the file and folder names on the fly to replace the colons with a dash "-" or space " ". I'm even willing delete the frist 12 characters in necessary. I have tried cp, mv, tr, and several -bash scripts but get no positive results.

View 4 Replies View Related

Red Hat / Fedora :: FSType NTFS Not Supported - Change Media Names?

Jul 2, 2009

I just installed a fresh copy of Fedora 11 on my old win server 2003 machine. I have 2 x 250gig drives on this machine that are not the system drives. Fedora automounts them when I double click on them which is fine, but I would like them to automount as the system starts up and eventually make them available automatically to all other computers on the network. I was wondering how I could change the name of the 2 drives without wiping them.

One never had a name on my 2003 server so when it mounts it's name is something like this: A6CC5216CC51E0DB. Is there a way for me to change these? I tried using the Palimpsest Disk Utility, but it always gives me an error : "fstype ntfs not supported" , So is there a way to change the label name even if it's ntfs? If not, can I easily convert to another filesystem without losing the data on the drives? Also when this is done, I assume I have to make an entry in the fstab to automount, is this correct?

View 9 Replies View Related

OpenSUSE :: Get A Script Or App That Go Through The Samba Share Recursively And Change All File Names?

Apr 5, 2011

I have a samba share that was previously hosted by and accessed by Windows operating systems. As a result the filenames of all the files are not very command-line/linux friendly. I need to get a script or app that can go through the samba share recursively and change all file names to lowercase and replace spaces in the names with a ".", "_" or something.

View 9 Replies View Related

Programming :: Script That Change The Names Of Files And Folders Into Small Letter?

Oct 2, 2009

i want to make a script that change the names of files and folders into small letter because they are all in capital and more than 1000 fileit is impossible to do that with my hand

View 14 Replies View Related

Ubuntu :: Bulk Change Filenames To "cat Names-list.txt"

Mar 29, 2010

I'm looking for something like:

Code: for x in *.mkv; do rename "$x" "${line_from_filenames.txt}.mkv"; done; ls -1 ~/kids/movies/*.mkv
00.20080903fckdlowp.mkv
01.20080911fckdl2fd.mkv
02.20080925fckdlgrs.mkv
03.20081026fckdlbh7.mkv
04.20081206fckdli90.mkv
05.20090214fckdmkni.mkv
[Code]....

View 7 Replies View Related

Ubuntu Networking :: Change Folder Names Over A Network On A Machine Using A Mac Machine

Jul 24, 2010

It seems whenever i create a folder it creates the folder as untitled folder, but i can't change the folder name it just says "you don't have permission to rename item" but yet i created the folder and it is there. One thing i have noticed is that once i enter a folder it won't even let me move the folder.

View 6 Replies View Related

CentOS 5 Server :: Samba-3.0.33 - Cannot Change Computer Names In A Samba Domain?

Oct 8, 2009

I have to rename a group of machines in my little samba domain (tbd backend) but there is an ugly bug that makes this impossible. have set 'rename user script' variable corectly, also checked all configurations.When i change computer name in my windows box, it shows an error saying something like "Error calling remote procedure"Looking on server side, username for the machine gets correctly changed in /usr/passwd, and also in samba database.But samba log says:

===============================================================
[2009/10/08 11:10:32, 0] lib/fault.c:fault_report(42)
INTERNAL ERROR: Signal 11 in pid 11052 (3.0.33-3.7.el5_3.1)

[code]....

View 3 Replies View Related

General :: Using Underscore In File Names?

Apr 4, 2011

I use the command line frequently to navigate my files so I try not to have spaces in file names. Typically I have used an underscore to connect words but it was recently suggested that I should use a dash. Are there any disadvantages to using an underscore in file names?Should I switch to a dash? My system is running Xubuntu and I almost exclusively use the bash shell.

View 4 Replies View Related

General :: How To Set Catalogs Names Shortcuts

May 16, 2009

How can I set catalogs names shorcuts for not typing.
Code: cd ~/Documents/work/Evg/biblatex but
Code: cd working_dir_shortcut_name

View 3 Replies View Related

General :: Machine Names Do Not Work Across LAN

Mar 23, 2010

When the machine name is used to ping itself it will resolve and the ping completes. When the machine name of other computers on the LAN are used they don't resolve. You have to put in the raw IP numbers (192.168.1.x). I have a router at 192.168.1.1 that seems to be configured fine. It uses the MAC address of one of the machines (cloned in) to keep the cable modem happy. Everything else works fine on the network, it's just that I can't use the names. The router sees those names, btw, and lists them as "attached devices".

Here is the output of dig:
Code:
dig
; <<>> DiG 9.6.1-P2 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32277
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13
;; QUESTION SECTION:
;. IN NS
;; ANSWER SECTION:
. 279640 IN NS e.root-servers.net.
. 279640 IN NS f.root-servers.net.
. 279640 IN NS g.root-servers.net.
. 279640 IN NS h.root-servers.net.
. 279640 IN NS i.root-servers.net.
. 279640 IN NS j.root-servers.net.
. 279640 IN NS k.root-servers.net.
. 279640 IN NS l.root-servers.net.
. 279640 IN NS m.root-servers.net.
. 279640 IN NS a.root-servers.net.
. 279640 IN NS b.root-servers.net.
. 279640 IN NS c.root-servers.net.
. 279640 IN NS d.root-servers.net.

;; ADDITIONAL SECTION:
f.root-servers.net. 432044 IN A 192.5.5.241
f.root-servers.net. 112569 IN AAAA 2001:500:2f::f
g.root-servers.net. 529910 IN A 192.112.36.4
h.root-servers.net. 528936 IN A 128.63.2.53
h.root-servers.net. 295210 IN AAAA 2001:500:1::803f:235
i.root-servers.net. 529756 IN A 192.36.148.17
j.root-servers.net. 529190 IN A 192.58.128.30
j.root-servers.net. 383477 IN AAAA 2001:503:c27::2:30
k.root-servers.net. 123313 IN A 193.0.14.129
k.root-servers.net. 530056 IN AAAA 2001:7fd::1
l.root-servers.net. 285249 IN A 199.7.83.42
l.root-servers.net. 529872 IN AAAA 2001:500:3::42
m.root-servers.net. 123264 IN A 202.12.27.33

;; Query time: 43 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Tue Mar 23 23:32:53 2010
;; MSG SIZE rcvd: 496

View 5 Replies View Related

General :: Use Grep To Match Domain Names?

Jan 10, 2011

I have a list of urls like code...

How can I use grep to match the domain names only?

All the urls have a / after the domain. And there are a lot of tlds, not sure how many, the list is quite big.

View 3 Replies View Related

General :: Filesystems - Changing Device Names In /dev

Apr 25, 2011

I have many disks and volumes in my system. Some of disks IDE, some SATA.

Volumes on SATA disks cause me problems - I have them listed in etc/fstab, but on every boot, they have different name:

/dev/sdd* becomes /dev/sdb*
/dev/sde* becomes /dev/sdc*

etc. on every boot.

1) Why is this happening?

2) How can I prevent it?

3) If I can't, is there a workaround?

View 2 Replies View Related

General :: Ubuntu Not Resolving Local Names ?

Sep 22, 2010

I have been casually using Unix for about 20 years, but I've never really done anything beyond basic user things unless I had instructions/help.

I've set up an Ubuntu 10.04 system and it works great except for one thing. It doesn't resolve local names.

I can ping or access other systems by IP Address and I can resolve internet names with no problems, but it won't recognize any of the other systems on my home network.

The system is set up for dhcp and everything is defaulted from the installation. There is no DNS suffix or domain set up on my router.

View 8 Replies View Related

General :: KDE - File Names With Special Characters ?

Feb 20, 2010

I am running gentoo openbox(rox file manager and desktop) I installed Digikam and Amarok. But I have problems with files which include special character in their names(such as �,�, �,ğ... ) The files are shown with strange and weird characters in the file dialogs of Digikam and Amarok.

I don't have this problem in other applications. I can create files with special character included. I think some settings do not agree with KDE4. How can I solve this problem? Does anyone have an idea? I also installed KDE systemsettings program but could not find a relevant config option for character encoding.

View 2 Replies View Related

General :: Can't Get Proper Wireless Connection Names?

Sep 15, 2010

I am a newbie trying to get my wusb54g adapter that that i took off my old computer and put it on an old sony laptop. The wireless network connections are not the same as I have on my other computer. Have tried refresh but still the same names come up. have can i get the proper names that are on my other computers.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved