PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > How to prevent LVM disk spinup at shutdown
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

How to prevent LVM disk spinup at shutdown

Réponse
 
LinkBack Outils de la discussion
Vieux 08/08/2007, 09h50   #1
Malte Forkel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to prevent LVM disk spinup at shutdown

Hi,

I use a couple of LVM volumes on a MD RAID1 array for backup. These volumes are rarely accessed, so I use hdparm to switch the RAID disks into standby mode.

I noticed that the disks are forced to spin up whenever the the system shuts down. What is causing the spin up? Is there a way to avoid this?

Thanks, Malte


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 08/08/2007, 11h00   #2
Gilles Mocellin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to prevent LVM disk spinup at shutdown

Le Wednesday 08 August 2007 09:44:16 Malte Forkel, vous avez écrit:
> Hi,
>
> I use a couple of LVM volumes on a MD RAID1 array for backup. These volumes
> are rarely accessed, so I use hdparm to switch the RAID disks into standby
> mode.
>
> I noticed that the disks are forced to spin up whenever the the system
> shuts down. What is causing the spin up? Is there a way to avoid this?
>
> Thanks, Malte


I have the same "problem" with my external USB drive, used for backups.

It wakes up when the filesystem is umounted, because the cache must be
flushed.

Perhaps, should we mount and unmount the filesystem each time my backups
runs...

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGuYTVDltnDmLJYdARAu9uAKCP7MYCpw0uSlL84aMjMm 9/JMvMoQCfWJwU
Omo1rYrPgaktYKVMVn+hPZw=
=2P6k
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 08/08/2007, 11h00   #3
Gilles Mocellin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to prevent LVM disk spinup at shutdown

Le Wednesday 08 August 2007 09:44:16 Malte Forkel, vous avez écrit:
> Hi,
>
> I use a couple of LVM volumes on a MD RAID1 array for backup. These volumes
> are rarely accessed, so I use hdparm to switch the RAID disks into standby
> mode.
>
> I noticed that the disks are forced to spin up whenever the the system
> shuts down. What is causing the spin up? Is there a way to avoid this?
>
> Thanks, Malte


I have the same "problem" with my external USB drive, used for backups.

It wakes up when the filesystem is umounted, because the cache must be
flushed.

Perhaps, should we mount and unmount the filesystem each time my backups
runs...

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGuYTVDltnDmLJYdARAu9uAKCP7MYCpw0uSlL84aMjMm 9/JMvMoQCfWJwU
Omo1rYrPgaktYKVMVn+hPZw=
=2P6k
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 08/08/2007, 18h00   #4
Nate Duehr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to prevent LVM disk spinup at shutdown


On Aug 8, 2007, at 2:54 AM, Gilles Mocellin wrote:

> Le Wednesday 08 August 2007 09:44:16 Malte Forkel, vous avez écrit :
>> Hi,
>>
>> I use a couple of LVM volumes on a MD RAID1 array for backup.
>> These volumes
>> are rarely accessed, so I use hdparm to switch the RAID disks into
>> standby
>> mode.
>>
>> I noticed that the disks are forced to spin up whenever the the
>> system
>> shuts down. What is causing the spin up? Is there a way to avoid
>> this?
>>
>> Thanks, Malte

>
> I have the same "problem" with my external USB drive, used for
> backups.
>
> It wakes up when the filesystem is umounted, because the cache must be
> flushed.
>
> Perhaps, should we mount and unmount the filesystem each time my
> backups
> runs...


It's also marking the filesystem as having a clean shutdown, so fsck
doesn't try to fix it on next boot. There's no way around it unless
you want to bypass that and wait through an fsck during the next boot.

In other words, it's not a bug, it's actually doing something --
something that has to be done. It's a feature. :-)

--
Nate Duehr
nate@natetech.com
  Réponse avec citation
Vieux 08/08/2007, 18h00   #5
Nate Duehr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to prevent LVM disk spinup at shutdown


On Aug 8, 2007, at 2:54 AM, Gilles Mocellin wrote:

> Le Wednesday 08 August 2007 09:44:16 Malte Forkel, vous avez écrit :
>> Hi,
>>
>> I use a couple of LVM volumes on a MD RAID1 array for backup.
>> These volumes
>> are rarely accessed, so I use hdparm to switch the RAID disks into
>> standby
>> mode.
>>
>> I noticed that the disks are forced to spin up whenever the the
>> system
>> shuts down. What is causing the spin up? Is there a way to avoid
>> this?
>>
>> Thanks, Malte

>
> I have the same "problem" with my external USB drive, used for
> backups.
>
> It wakes up when the filesystem is umounted, because the cache must be
> flushed.
>
> Perhaps, should we mount and unmount the filesystem each time my
> backups
> runs...


It's also marking the filesystem as having a clean shutdown, so fsck
doesn't try to fix it on next boot. There's no way around it unless
you want to bypass that and wait through an fsck during the next boot.

In other words, it's not a bug, it's actually doing something --
something that has to be done. It's a feature. :-)

--
Nate Duehr
nate@natetech.com
  Réponse avec citation
Vieux 08/08/2007, 19h50   #6
Malte Forkel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to prevent LVM disk spinup at shutdown

Nate Duehr schrieb:
>
> On Aug 8, 2007, at 2:54 AM, Gilles Mocellin wrote:
>
>> Le Wednesday 08 August 2007 09:44:16 Malte Forkel, vous avez écrit :
>>> Hi,
>>>
>>> I use a couple of LVM volumes on a MD RAID1 array for backup. These
>>> volumes
>>> are rarely accessed, so I use hdparm to switch the RAID disks into
>>> standby
>>> mode.
>>>
>>> I noticed that the disks are forced to spin up whenever the the system
>>> shuts down. What is causing the spin up? Is there a way to avoid this?
>>>
>>> Thanks, Malte

>>
>> I have the same "problem" with my external USB drive, used for backups.
>>
>> It wakes up when the filesystem is umounted, because the cache must be
>> flushed.
>>
>> Perhaps, should we mount and unmount the filesystem each time my backups
>> runs...

>
> It's also marking the filesystem as having a clean shutdown, so fsck
> doesn't try to fix it on next boot. There's no way around it unless you
> want to bypass that and wait through an fsck during the next boot.
>
> In other words, it's not a bug, it's actually doing something --
> something that has to be done. It's a feature. :-)
>
> --
> Nate Duehr
> nate@natetech.com
>


Couldn't it make sense to do all these things - flush the cache, mark the filesystem as ok, may be more - just before the disk is spun down? If its not used again before shutdown, there would be no need to spin it up again.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 09/08/2007, 00h00   #7
Alex Samad
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to prevent LVM disk spinup at shutdown

On Wed, Aug 08, 2007 at 07:45:04PM +0200, Malte Forkel wrote:
> Nate Duehr schrieb:
>> On Aug 8, 2007, at 2:54 AM, Gilles Mocellin wrote:
>>> Le Wednesday 08 August 2007 09:44:16 Malte Forkel, vous avez écrit :
>>>> Hi,
>>>>
>>>> I use a couple of LVM volumes on a MD RAID1 array for backup. These
>>>> volumes
>>>> are rarely accessed, so I use hdparm to switch the RAID disks into
>>>> standby
>>>> mode.
>>>>
>>>> I noticed that the disks are forced to spin up whenever the the system
>>>> shuts down. What is causing the spin up? Is there a way to avoid this?
>>>>
>>>> Thanks, Malte
>>>
>>> I have the same "problem" with my external USB drive, used for backups.
>>>
>>> It wakes up when the filesystem is umounted, because the cache must be
>>> flushed.
>>>
>>> Perhaps, should we mount and unmount the filesystem each time my backups
>>> runs...

>> It's also marking the filesystem as having a clean shutdown, so fsck
>> doesn't try to fix it on next boot. There's no way around it unless you
>> want to bypass that and wait through an fsck during the next boot.
>> In other words, it's not a bug, it's actually doing something -- something
>> that has to be done. It's a feature. :-)
>> --
>> Nate Duehr
>> nate@natetech.com

>
> Couldn't it make sense to do all these things - flush the cache, mark the
> filesystem as ok, may be more - just before the disk is spun down? If its
> not used again before shutdown, there would be no need to spin it up again.

why not autofs the filesystem, then let the system unmount/mount for you as
needed


>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a
> subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGujyTkZz88chpJ2MRAvXnAKCWNacO6ov/rE4d4stNXw0oH+kNfwCfTngK
wEedFLSpDxrJbQ3/FOoFvj0=
=5Oqu
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 09/08/2007, 00h00   #8
Alex Samad
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to prevent LVM disk spinup at shutdown

On Wed, Aug 08, 2007 at 07:45:04PM +0200, Malte Forkel wrote:
> Nate Duehr schrieb:
>> On Aug 8, 2007, at 2:54 AM, Gilles Mocellin wrote:
>>> Le Wednesday 08 August 2007 09:44:16 Malte Forkel, vous avez écrit :
>>>> Hi,
>>>>
>>>> I use a couple of LVM volumes on a MD RAID1 array for backup. These
>>>> volumes
>>>> are rarely accessed, so I use hdparm to switch the RAID disks into
>>>> standby
>>>> mode.
>>>>
>>>> I noticed that the disks are forced to spin up whenever the the system
>>>> shuts down. What is causing the spin up? Is there a way to avoid this?
>>>>
>>>> Thanks, Malte
>>>
>>> I have the same "problem" with my external USB drive, used for backups.
>>>
>>> It wakes up when the filesystem is umounted, because the cache must be
>>> flushed.
>>>
>>> Perhaps, should we mount and unmount the filesystem each time my backups
>>> runs...

>> It's also marking the filesystem as having a clean shutdown, so fsck
>> doesn't try to fix it on next boot. There's no way around it unless you
>> want to bypass that and wait through an fsck during the next boot.
>> In other words, it's not a bug, it's actually doing something -- something
>> that has to be done. It's a feature. :-)
>> --
>> Nate Duehr
>> nate@natetech.com

>
> Couldn't it make sense to do all these things - flush the cache, mark the
> filesystem as ok, may be more - just before the disk is spun down? If its
> not used again before shutdown, there would be no need to spin it up again.

why not autofs the filesystem, then let the system unmount/mount for you as
needed


>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a
> subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGujyTkZz88chpJ2MRAvXnAKCWNacO6ov/rE4d4stNXw0oH+kNfwCfTngK
wEedFLSpDxrJbQ3/FOoFvj0=
=5Oqu
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h27.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15280 seconds with 16 queries