From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx16.extmail.prod.ext.phx2.redhat.com [10.5.110.21]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t18J0Exx017677 for ; Sun, 8 Feb 2015 14:00:14 -0500 Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t18J0BYD032248 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Sun, 8 Feb 2015 14:00:13 -0500 Received: by mail-wg0-f41.google.com with SMTP id b13so2892693wgh.0 for ; Sun, 08 Feb 2015 11:00:11 -0800 (PST) Received: from [10.0.1.5] (cpc27-hudd10-2-0-cust190.4-1.cable.virginm.net. [86.18.68.191]) by mx.google.com with ESMTPSA id dz10sm11130436wib.17.2015.02.08.11.00.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 08 Feb 2015 11:00:10 -0800 (PST) From: "Drew..." <1drew345@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_F4B31A39-FAEA-48C1-89C7-2F99158AA573" Message-Id: <646AF90A-464B-44EC-BE14-FCD4F888A3CB@gmail.com> Date: Sun, 8 Feb 2015 18:59:37 +0000 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: [linux-lvm] LVM disk power management Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com --Apple-Mail=_F4B31A39-FAEA-48C1-89C7-2F99158AA573 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I have 3 physical disks forming one volume group, with one logical = volume. If i try to issue a standby command to the logical volume i get the = following error.. sudo hdparm -y /dev/mapper/VG0-LVstorage /dev/mapper/VG0-LVstorage: issuing standby command HDIO_DRIVE_CMD(standby) failed: Inappropriate ioctl for device But if i issue a standby command to the individual disks in the volume = group.. sudo hdparm -y /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sda1: issuing standby command /dev/sdb1: issuing standby command /dev/sdc1: issuing standby command This works fine!=20 Is addressing individual disks the normal way to to spin down disks in a = lvm volume group or will this cause file corruption. And if not, is there a safe way to achieve this or is it just not = possible to spin down disks in a lvm. I would be grateful of any advice you could offer. I have spent some = time searching around for some information on this & i can not find any = documented on this anywhere. Thanks, Kind regards, Drew= --Apple-Mail=_F4B31A39-FAEA-48C1-89C7-2F99158AA573 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Hi,
I have 3 physical disks forming one volume = group, with one logical volume.
If i try to issue a = standby command to the logical volume i get the following = error..
sudo hdparm -y /dev/mapper/VG0-LVstorage

/dev/mapper/VG0-LVstorage:

 issuing standby command

 HDIO_DRIVE_CMD(standby) failed: Inappropriate ioctl for =
device

But if i issue a standby command to = the individual disks in the volume group..
sudo hdparm -y /dev/sda1 /dev/sdb1 /dev/sdc1

/dev/sda1:

 issuing standby command

/dev/sdb1:

 issuing standby command

/dev/sdc1:

 issuing standby command
This works fine! 
Is addressing individual = disks the normal way to to spin down disks in a lvm volume group or will = this cause file corruption.
And = if not, is there a safe way to achieve this or is it just not possible = to spin down disks in a lvm.
I would be grateful of any advice you could offer. I have = spent some time searching around for some information on this & i = can not find any documented on this anywhere.
Thanks,
Kind regards,
Drew
= --Apple-Mail=_F4B31A39-FAEA-48C1-89C7-2F99158AA573-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [10.34.131.16] (dhcp131-16.brq.redhat.com [10.34.131.16]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t198s7qT014294 for ; Mon, 9 Feb 2015 03:54:08 -0500 Message-ID: <54D875AF.8010705@redhat.com> Date: Mon, 09 Feb 2015 09:54:07 +0100 From: Zdenek Kabelac MIME-Version: 1.0 References: <646AF90A-464B-44EC-BE14-FCD4F888A3CB@gmail.com> In-Reply-To: <646AF90A-464B-44EC-BE14-FCD4F888A3CB@gmail.com> Content-Transfer-Encoding: 7bit Subject: Re: [linux-lvm] LVM disk power management Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: LVM general discussion and development Dne 8.2.2015 v 19:59 Drew... napsal(a): > Hi, > I have 3 physical disks forming one volume group, with one logical volume. > If i try to issue a standby command to the logical volume i get the following > error.. > > |sudo hdparm -y /dev/mapper/VG0-LVstorage > > /dev/mapper/VG0-LVstorage: > > issuing standby command > > HDIO_DRIVE_CMD(standby) failed: Inappropriate ioctl for device| > > > But if i issue a standby command to the individual disks in the volume group.. > > |sudo hdparm -y /dev/sda1 /dev/sdb1 /dev/sdc1 > > /dev/sda1: > > issuing standby command > > /dev/sdb1: > > issuing standby command > > /dev/sdc1: > > issuing standby command| > > This works fine! > Is addressing individual disks the normal way to to spin down disks in a lvm > volume group or will this cause file corruption. > And if not, is there a safe way to achieve this or is it just not possible to > spin down disks in a lvm. > I would be grateful of any advice you could offer. I have spent some time > searching around for some information on this & i can not find any documented > on this anywhere. > Thanks, Yes - you need to 'hdparm' control 'real' devices/PVs. There is no point to try to control logical volumes. Imagine you could have 1000LVs on a single PV. Regards Zdenek