Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ESX 4.1 delete swap file

Posted on 2011-03-15
7
1,174 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

840 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