Solved

ESX 4.1 delete swap file

Posted on 2011-03-15
7
1,191 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
[X]
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
  • 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
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…
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

691 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