[Lxc-users] A lxc guest's file cannot be removed.

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Thu Sep 26 01:20:42 UTC 2013


Thank you so much. This might be an error from original file system. There
is an 'i' for the file.


On Thu, Sep 26, 2013 at 12:38 AM, Dwight Hubbard <dwight.hubbard at efausol.com
> wrote:

> I'd guess you have an attribute on the file preventing deletion.  Run
> lsattr on the file and use chattr to remove the attribute.
>
> Most commonly something like chattr -a guest/rootfs/etc/resolv.conf.tmp
> will make the file able to be deleted.
>
>
> On Tue, Sep 24, 2013 at 10:16 PM, Magicloud Magiclouds <
> magicloud.magiclouds at gmail.com> wrote:
>
>> Once I wanted to backup a running guest, so I copied its folder. Then I
>> wanted to remove the folder, so I issued `rm -rf`.
>>
>> Now there is a file I cannot delete. "guest/rootfs/etc/resolv.conf.tmp".
>> `rm` or `chown` gave me operation not permitted. `ls -l` gave:
>> ---------- 1 root root 0 Apr 28 04:15 resolv.conf.tmp
>>
>> What should I do?
>> --
>> 竹密岂妨流水过
>> 山高哪阻野云飞
>>
>> And for G+, please use magiclouds#gmail.com.
>>
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>> from
>> the latest Intel processors and coprocessors. See abstracts and register >
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Lxc-users mailing list
>> Lxc-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/lxc-users
>>
>>
>


-- 
竹密岂妨流水过
山高哪阻野云飞

And for G+, please use magiclouds#gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130926/8cfae06d/attachment.html>


More information about the lxc-users mailing list