Solved

ESX 4.1 delete swap file

Posted on 2011-03-15
7
1,183 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cannot unmount datastore 5 107
Cannot enter maintenance mode 2 66
Veeam backups fail after power loss 22 68
PSOD when using EFI firmware for VMware 6 57
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 article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
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:
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

731 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