summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-April/014727.html
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
committerNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
commit1be510f9529cb082f802408b472a77d074b394c0 (patch)
treeb175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/2012-April/014727.html
parentfa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff)
downloadarchives-master.tar
archives-master.tar.gz
archives-master.tar.bz2
archives-master.tar.xz
archives-master.zip
Add zarb MLs html archivesHEADmaster
Diffstat (limited to 'zarb-ml/mageia-dev/2012-April/014727.html')
-rw-r--r--zarb-ml/mageia-dev/2012-April/014727.html129
1 files changed, 129 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-April/014727.html b/zarb-ml/mageia-dev/2012-April/014727.html
new file mode 100644
index 000000000..a9fe2d899
--- /dev/null
+++ b/zarb-ml/mageia-dev/2012-April/014727.html
@@ -0,0 +1,129 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] [Mageia-discuss] many systemd temporary directories
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BMageia-discuss%5D%20many%20systemd%20temporary%20directories&In-Reply-To=%3C4F97123D.7080401%40colin.guthr.ie%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="014724.html">
+ <LINK REL="Next" HREF="014735.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] [Mageia-discuss] many systemd temporary directories</H1>
+ <B>Colin Guthrie</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BMageia-discuss%5D%20many%20systemd%20temporary%20directories&In-Reply-To=%3C4F97123D.7080401%40colin.guthr.ie%3E"
+ TITLE="[Mageia-dev] [Mageia-discuss] many systemd temporary directories">mageia at colin.guthr.ie
+ </A><BR>
+ <I>Tue Apr 24 22:51:09 CEST 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="014724.html">[Mageia-dev] [Mageia-discuss] many systemd temporary directories
+</A></li>
+ <LI>Next message: <A HREF="014735.html">[Mageia-dev] [Mageia-discuss] many systemd temporary directories
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#14727">[ date ]</a>
+ <a href="thread.html#14727">[ thread ]</a>
+ <a href="subject.html#14727">[ subject ]</a>
+ <a href="author.html#14727">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>'Twas brillig, and Florian Hubold at 24/04/12 21:27 did gyre and gimble:
+&gt;<i> Am 24.04.2012 20:51, schrieb Juergen Harms:
+</I>&gt;&gt;<i> I just saw that systemd creates (and does not purge) lots of directories like
+</I>&gt;&gt;<i> /tmp/systemd-namespace-&lt;uniqueid&gt;/ - I now have nearly 50 of them (one
+</I>&gt;&gt;<i> partial explanation might be that I did quite some re-booting these last days).
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Nothing serious, they are small - but nevertheless ... Is this normal,
+</I>&gt;&gt;<i> shouldnt there be some automatic purging mechanism?
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Juergen
+</I>&gt;&gt;<i>
+</I>&gt;<i> Maybe we should default to /tmp being on tmpfs so that
+</I>&gt;<i> this gets purged on every reboot? This would also be more
+</I>&gt;<i> in accordance with FHS imho.
+</I>
+This is one of my goals for mga3 (I have it in my notes for the
+technical specs discussion that will come), but certainly not for mga2
+as this is quite a big change and some apps may have to be patched to
+use /var/tmp instead etc. if they store large things in there.
+
+Col
+
+
+--
+
+Colin Guthrie
+colin(at)mageia.org
+<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>
+
+Day Job:
+ Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>
+Open Source:
+ Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A>
+ PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>
+ Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="014724.html">[Mageia-dev] [Mageia-discuss] many systemd temporary directories
+</A></li>
+ <LI>Next message: <A HREF="014735.html">[Mageia-dev] [Mageia-discuss] many systemd temporary directories
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#14727">[ date ]</a>
+ <a href="thread.html#14727">[ thread ]</a>
+ <a href="subject.html#14727">[ subject ]</a>
+ <a href="author.html#14727">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>
kwb">$class; } sub hasExtended { 0 } sub adjustStart {} sub adjustEnd {} sub write {} sub cylinder_size { my ($hd) = @_; $hd->{extent_size}; } init() or log::l("lvm::init failed"); sub init() { devices::init_device_mapper(); if ($::isInstall) { run_program::run('lvm2', 'vgscan'); run_program::run('lvm2', 'vgchange', '-a', 'y'); } 1; } sub lvm_cmd { if (my $r = run_program::run('lvm2', @_)) { $r; } else { $? >> 8 == 98 or return; #- sometimes, it needs running vgscan again, doing so: run_program::run('lvm2', 'vgscan'); run_program::run('lvm2', @_); } } sub lvm_cmd_or_die { my ($prog, @para) = @_; lvm_cmd($prog, @para) or die "$prog failed\n"; } sub check { my ($in) = @_; $in->do_pkgs->ensure_binary_is_installed('lvm2', 'lvm2') or return; init(); 1; } sub get_pv_field { my ($pv, $field) = @_; my $dev = expand_symlinks(devices::make($pv->{device})); run_program::get_stdout('lvm2', 'pvs', '--noheadings', '--nosuffix', '-o', $field, $dev); } sub pv_physical_extents { my ($pv) = @_; split(' ', lvm::get_pv_field($pv, 'pv_pe_alloc_count,pv_pe_count')); } sub pv_to_vg { my ($pv) = @_; get_pv_field($pv, 'vg_name') =~ /(\S+)/ && $1; } sub pv_move { my ($pv) = @_; my $dev = expand_symlinks(devices::make($pv->{device})); lvm_cmd('pvmove', '-v', $dev) or die N("Moving used physical extents to other physical volumes failed"); } sub update_size { my ($lvm) = @_; $lvm->{extent_size} = to_int(run_program::get_stdout('lvm2', 'vgs', '--noheadings', '--nosuffix', '--units', 's', '-o', 'vg_extent_size', $lvm->{VG_name})); $lvm->{totalsectors} = to_int(run_program::get_stdout('lvm2', 'vgs', '--noheadings', '--nosuffix', '--units', 's', '-o', 'vg_size', $lvm->{VG_name})); } sub get_lv_size { my ($lvm_device) = @_; to_int(run_program::get_stdout('lvm2', 'lvs', '--noheadings', '--nosuffix', '--units', 's', '-o', 'lv_size', "/dev/$lvm_device")); } sub lv_to_pvs { my ($lv) = @_; map { m!(\S+)\(! } run_program::get_stdout('lvm2', 'lvs', '--noheadings', '-o', 'devices', "/dev/$lv->{device}"); } sub lv_nb_pvs { my ($lv) = @_; listlength(lv_to_pvs($lv)); } sub get_lvs { my ($lvm) = @_; my @l = run_program::get_stdout('lvm2', 'lvs', '--noheadings', '--nosuffix', '--units', 's', '-o', 'lv_name', $lvm->{VG_name}) =~ /(\S+)/g; $lvm->{primary}{normal} = [ map { my $device = "$lvm->{VG_name}/$_"; my $fs_type = -e "/dev/$device" && fs::type::fs_type_from_magic({ device => $device }); { device => $device, lv_name => $_, rootDevice => $lvm->{VG_name}, fs_type => $fs_type || 'ext2', size => get_lv_size($device) }; } @l ]; } sub vg_add { my ($part) = @_; my $dev = expand_symlinks(devices::make($part->{device})); lvm_cmd_or_die('pvcreate', '-y', '-ff', $dev); my $prog = lvm_cmd('vgs', $part->{lvm}) ? 'vgextend' : 'vgcreate'; lvm_cmd_or_die($prog, $part->{lvm}, $dev); } sub vg_reduce { my ($lvm_vg, $part_pv) = @_; lvm_cmd('vgreduce', $lvm_vg->{VG_name}, devices::make($part_pv->{device})) or die N("Physical volume %s is still in use", $part_pv->{device}); @{$lvm_vg->{disks}} = difference2($lvm_vg->{disks}, [ $part_pv ]); update_size($lvm_vg); delete $part_pv->{lvm}; set_isFormatted($part_pv, 0); } sub vg_destroy { my ($lvm) = @_; is_empty_array_ref($lvm->{primary}{normal}) or die N("Remove the logical volumes first\n"); lvm_cmd('vgchange', '-a', 'n', $lvm->{VG_name}); lvm_cmd_or_die('vgremove', $lvm->{VG_name}); foreach (@{$lvm->{disks}}) { lvm_cmd_or_die('pvremove', devices::make($_->{device})); delete $_->{lvm}; set_isFormatted($_, 0); } } sub lv_delete { my ($lvm, $lv) = @_; lvm_cmd_or_die('lvremove', '-f', "/dev/$lv->{device}"); my $list = $lvm->{primary}{normal}; @$list = grep { $_ != $lv } @$list; } sub suggest_lv_name { my ($lvm, $lv) = @_; my $list = $lvm->{primary}{normal} ||= []; $lv->{lv_name} ||= 1 + max(map { if_($_->{device} =~ /(\d+)$/, $1) } @$list); } sub lv_create { my ($lvm, $lv) = @_; suggest_lv_name($lvm, $lv); $lv->{device} = "$lvm->{VG_name}/$lv->{lv_name}"; lvm_cmd_or_die('lvcreate', '--size', int($lv->{size} / 2) . 'k', '-n', $lv->{lv_name}, $lvm->{VG_name}); if ($lv->{mntpoint} eq '/boot' && lv_nb_pvs($lv) > 1) { lvm_cmd_or_die('lvremove', '-f', "/dev/$lv->{device}"); die N("The bootloader can't handle /boot on multiple physical volumes"); } $lv->{size} = get_lv_size($lv->{device}); #- the created size is smaller than asked size set_isFormatted($lv, 0); my $list = $lvm->{primary}{normal} ||= []; push @$list, $lv; } sub lv_resize { my ($lv, $oldsize) = @_; lvm_cmd_or_die($oldsize > $lv->{size} ? ('lvreduce', '-f') : 'lvextend', '--size', int($lv->{size} / 2) . 'k', "/dev/$lv->{device}"); $lv->{size} = get_lv_size($lv->{device}); #- the resized partition may not be the exact asked size } 1;