Solved

ESX 4.1 delete swap file

Posted on 2011-03-15
7
1,167 Views
Last Modified: 2012-05-11
How can I delete the swap file /etc/sysconfig/.network.swp ?
If I try to do it like that:
$rm /etc/sysconfig/.network.swp I get the answer:
-bash:  /etc/sysconfig/.network.swp: Permission denied

I'm working with the root account on the console
0
Comment
Question by:Opusretis
  • 4
  • 3
7 Comments
 
LVL 16

Expert Comment

by:danm66
Comment Utility
I've never had to mess with that file before.  Are you trying to change network settings or hostname from the command line?
0
 

Author Comment

by:Opusretis
Comment Utility
I made changes in network settings in the command line.
But during the edit the server had a power interrupt. That's the reason why the swap file is existing and not normaly was deleted. If I now edit the network parameters again I get every time the message that I should delete the swap file for no more warnings.
0
 
LVL 16

Expert Comment

by:danm66
Comment Utility
are you trying to make the changes through the vSphere client now or still in the Service Console(SC)?  You should really only make changes to networking config using the client or the esxcfg- commands.  When you make changes directly to the linux networking setup files, they don't always get noticed "upstream" in the ESX config.

So, if you haven't already tried, use the client or esxcfg- commands to modify your network config and see if those changes stick.

also, what kinds of changes are you trying to make?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:Opusretis
Comment Utility
I made my changes in the esxcfg and they working fine.
But about the power interrupt during the work on it the swap file was not deleted.
ESX is now suggest that I should delete it manually. But I've got problems with that see my first post in this treath.
0
 
LVL 16

Expert Comment

by:danm66
Comment Utility
ok, I just needed to know where you at in the process.

if you do an 'll' or 'ls -al' in the /etc/sysconfig directory, who is the owner of the .swp file?  If it's not root, try 'chown' to make root the owner, then try to delete it again.
0
 

Author Comment

by:Opusretis
Comment Utility
How can I change the owner (command)?
0
 
LVL 16

Accepted Solution

by:
danm66 earned 500 total points
Comment Utility
'chown root filename' will assign root as the owner of a file.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now