public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Lars Michael Jogbäck" <lm@swip.net>
To: linux-kernel@vger.kernel.org
Subject: Problem with size after growing a device
Date: Tue, 03 Jul 2007 12:40:56 +0200	[thread overview]
Message-ID: <468A27B8.9000107@swip.net> (raw)

Hi,

I don't know really which subsystem this, so I'm sending this to the 
linux-kernel list.
Please direct me to a more appropriate place if this is not correct.

I'm using a 3ware 9500 with Linux 2.6.18.1. I've grown the HW 
raid5-array and here is where the problem begins. After the card had 
expanded the array, I used "blockdev --rereadpt /dev/sdk" to get the 
kernel to recognize the now larger device. The last step was to do a 
"pvresize /dev/sdk". The problem is that pvresize still thought that the 
device was at the original size.

 From the lvm mailinglist I found out that pvresize used the same 
mechanism as "blockdev --getsz" to get the size of the disks, so I 
tested this and found that blockdev also reported the device to have the 
wrong size.

So, if I do:
# cat /sys/block/sdk/size
4882708480

and
# blockdev --getsz /dev/sdk
3906166784

Apparently /sys/block/sdk/size is updated with the new size, but 
whatever "blockdev --getsz" and "pvresize" is querying is not. If I 
reboot, everything works correctly.

Best Regards,
/LM

Ps. please keep me as Cc: on this; since I'm not subscibed to the 
linux-kernel list..


             reply	other threads:[~2007-07-03 11:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-03 10:40 Lars Michael Jogbäck [this message]
2007-07-09 19:22 ` Problem with size after growing a device Andy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=468A27B8.9000107@swip.net \
    --to=lm@swip.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox