Solved

ESX 4.1 delete swap file

Posted on 2011-03-15
7
1,178 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
ID: 35139092
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
ID: 35139583
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
ID: 35140585
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
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 

Author Comment

by:Opusretis
ID: 35140810
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
ID: 35141339
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
ID: 35340564
How can I change the owner (command)?
0
 
LVL 16

Accepted Solution

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

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

762 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