[opensuse-factory] systemd question on mounting drives
Hi, since yesterday morning I used the systemd as default on a real life system... and I have to admit I am very content with it performance up to now. I have observed that the biggest amount of time at boot time is taken by fsck the mounted drives... is there a way to tell it to do that only once in a blue moon boot rather than every boot? regards, Alin -- Without Questions there are no Answers! _____________________________________________________________________ Alin Marin ELENA Advanced Molecular Simulation Research Laboratory School of Physics, University College Dublin ---- Ardionsamblú Móilíneach Saotharlann Taighde Scoil na Fisice, An Coláiste Ollscoile, Baile Átha Cliath ----------------------------------------------------------------------------------- http://alin.elenaworld.net ______________________________________________________________________
On Thursday, August 11, 2011 10:30:51 Alin Marin Elena wrote:
Hi,
since yesterday morning I used the systemd as default on a real life system... and I have to admit I am very content with it performance up to now.
I have observed that the biggest amount of time at boot time is taken by fsck the mounted drives... is there a way to tell it to do that only once in a blue moon boot rather than every boot?
It should do this already for ext[2-4], Andreas -- Andreas Jaeger, Program Manager openSUSE aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Thursday, August 11, 2011 11:45:00 Alin Marin Elena wrote:
It should do this already for ext[2-4],
I have ext4 and it does not do it yet...
It should call mkfs.ext4 and that one should return directly. Check with tunectl your partition. Andreas -- Andreas Jaeger, Program Manager openSUSE aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
It should call mkfs.ext4 and that one should return directly.
Check with tunectl your partition.
I am a little bit lost... tunectl does not seem to be provided by any package from the standard factory repos. can that be done live? Alin -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 11 August 2011 12:10, Alin Marin Elena
It should call mkfs.ext4 and that one should return directly.
Check with tunectl your partition.
I am a little bit lost... tunectl does not seem to be provided by any package from the standard factory repos.
can that be done live?
tune2fs is part of the e2fsprogs package and yes you can run it on a mounted file system Regards Arnold -- Arnold Greyling greylina@menusis.com Tel. +27 82 377 1836 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hi Arnold,
thank you for you answer...
I am a little bit lost... I checked the logs (boot.omsg) and I see
nothing about the fs...
the log finishes after the network service is shutdown,
..........
Shutting down (localfs) network interfaces:
eth0 device: Broadcom Corporation NetXtreme BCM5764M Gigabit
Ethernet PCIe (rev 10)
eth0
done wwan0
No configuration found for wwan0
Nevertheless the interface will be shut down.
wwan0
doneShutting down service (localfs) network . . . . . . . . .
any hints where I can look for a not clean shutdown of the fs appreciated.
Alin
On 11 August 2011 11:19, Arnold Greyling
On 11 August 2011 12:10, Alin Marin Elena
wrote: It should call mkfs.ext4 and that one should return directly.
Check with tunectl your partition.
I am a little bit lost... tunectl does not seem to be provided by any package from the standard factory repos.
can that be done live?
tune2fs is part of the e2fsprogs package and yes you can run it on a mounted file system
Regards Arnold
-- Arnold Greyling greylina@menusis.com Tel. +27 82 377 1836 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 11 August 2011 12:24, Alin Marin Elena
any hints where I can look for a not clean shutdown of the fs appreciated.
It won't be in the log because you cannot write the successful/unsuccesful result to the log on the already unmounted file system. You will have the watch the screen messages. Right at the end of the shutdown you normally see a message like: Sending processes the KILL signal Unmounting all file systems... If something goes wrong there should be an error message as well. Regards Arnold -- Arnold Greyling greylina@menusis.com Tel. +27 82 377 1836 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Le jeudi 11 août 2011 à 12:42 +0200, Arnold Greyling a écrit :
On 11 August 2011 12:24, Alin Marin Elena
wrote: any hints where I can look for a not clean shutdown of the fs appreciated.
It won't be in the log because you cannot write the successful/unsuccesful result to the log on the already unmounted file system.
You will have the watch the screen messages. Right at the end of the shutdown you normally see a message like:
Sending processes the KILL signal Unmounting all file systems...
If something goes wrong there should be an error message as well.
Well, this are some ways to help debugging at shutdown :
-enable systemd debugging (see
http://en.opensuse.org/Systemd#Getting_debug_from_systemd ), disable
quiet and bootsplash and shutdown the system with "/sbin/halt" : it
should shutdown but not power off the system so you can see what is
going on.
-create a script in /lib/systemd/system-shutdown which remount / as rw,
output dmesg in /tmp and remount at ro
--
Frederic Crozat
On Thursday, August 11, 2011 12:10:12 Alin Marin Elena wrote:
It should call mkfs.ext4 and that one should return directly.
Check with tunectl your partition.
I am a little bit lost... tunectl does not seem to be provided by any package from the standard factory repos.
can that be done live?
Sorry, typo on my part, I meant tune2fs. Have a look at my system: tune2fs -l /dev/sda5 tune2fs 1.41.14 (22-Dec-2010) [...] Mount count: 81 Maximum mount count: -1 Last checked: Mon Aug 9 09:58:20 2010 Check interval: 0 (<none>) So, this partition is never checked! Andreas -- Andreas Jaeger, Program Manager openSUSE aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
here it is for my home [root@abbaton:/home/alin]: tune2fs -l /dev/sda4 tune2fs 1.41.14 (22-Dec-2010) Filesystem volume name: HOME Last mounted on: /home Filesystem UUID: c4947dc0-5b10-4e6e-9877-6259182d1bcd Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Filesystem flags: signed_directory_hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 11567104 Block count: 46257664 Reserved block count: 2312883 Free blocks: 7795781 Free inodes: 11241980 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 1012 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 8192 Inode blocks per group: 512 Flex block group size: 16 Filesystem created: Thu Oct 7 12:40:13 2010 Last mount time: Thu Aug 11 09:23:31 2011 Last write time: Thu Aug 11 09:23:31 2011 Mount count: 703 Maximum mount count: -1 Last checked: Mon Jan 31 00:54:58 2011 Check interval: 0 (<none>) Lifetime writes: 1750 GB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 256 Required extra isize: 28 Desired extra isize: 28 Journal inode: 8 First orphan inode: 11439477 Default directory hash: half_md4 Directory Hash Seed: b9ebf3e8-d1f5-4088-83c2-f32e528b179a Journal backup: inode blocks and this for my root [root@abbaton:/home/alin]: tune2fs -l /dev/sda3 tune2fs 1.41.14 (22-Dec-2010) Filesystem volume name: ROOT Last mounted on: /root Filesystem UUID: 86dc9c52-c233-4f02-9f31-c63058d94631 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Filesystem flags: signed_directory_hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 1222992 Block count: 4882432 Reserved block count: 244134 Free blocks: 1822973 Free inodes: 928803 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 1022 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 8208 Inode blocks per group: 513 Flex block group size: 16 Filesystem created: Mon May 16 18:10:42 2011 Last mount time: Thu Aug 11 09:22:53 2011 Last write time: Thu Aug 11 09:22:53 2011 Mount count: 23 Maximum mount count: 36 Last checked: Thu Aug 4 08:12:25 2011 Check interval: 15552000 (6 months) Next check after: Tue Jan 31 07:12:25 2012 Lifetime writes: 201 GB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 256 Required extra isize: 28 Desired extra isize: 28 Journal inode: 8 First orphan inode: 945999 Default directory hash: half_md4 Directory Hash Seed: b3bfe178-227f-47a6-a290-8113b55e367d Journal backup: inode blocks On Thu 11 Aug 2011 13:03:48 Andreas Jaeger wrote:
On Thursday, August 11, 2011 12:10:12 Alin Marin Elena wrote:
It should call mkfs.ext4 and that one should return directly.
Check with tunectl your partition.
I am a little bit lost... tunectl does not seem to be provided by any package from the standard factory repos.
can that be done live?
Sorry, typo on my part, I meant tune2fs.
Have a look at my system: tune2fs -l /dev/sda5 tune2fs 1.41.14 (22-Dec-2010) [...] Mount count: 81 Maximum mount count: -1 Last checked: Mon Aug 9 09:58:20 2010 Check interval: 0 (<none>)
So, this partition is never checked!
Andreas -- Without Questions there are no Answers!
Alin Marin ELENA Advanced Molecular Simulation Research Laboratory School of Physics, University College Dublin ---- Ardionsamblú Móilíneach Saotharlann Taighde Scoil na Fisice, An Coláiste Ollscoile, Baile Átha Cliath ----------------------------------------------------------------------------------- http://alin.elenaworld.net ______________________________________________________________________
On 11 August 2011 10:30, Alin Marin Elena
since yesterday morning I used the systemd as default on a real life system... and I have to admit I am very content with it performance up to now.
I have observed that the biggest amount of time at boot time is taken by fsck the mounted drives... is there a way to tell it to do that only once in a blue moon boot rather than every boot?
The -c and -i options of tune2fs control how often a file system check is forced. The defaults are normally set quite far apart so the checks shouldn't happen at every reboot. Check if your file systems get synced and unmounted properly when you shutdown or reboot because fsck will run regardless if the shutdown wasn't clean. Regards Arnold -- Arnold Greyling greylina@menusis.com Tel. +27 82 377 1836 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (4)
-
Alin Marin Elena
-
Andreas Jaeger
-
Arnold Greyling
-
Frederic Crozat