New issues with setup storage - disc too small

David Dreezer dave at socialstrata.com
Thu Mar 17 06:24:22 CET 2011


I did add exit 1; to the top of setup storage, as requested. That made setup storage exit and then I ran the commands manually as requested. Creating the logical drive caused the kernel notification error.

Actually, is that the wrong behavior? It isn't what we want, but is it doing what it isn't supposed to?
> 
> Hmm, is there anything wrong with parted as shown below!?
>>> 
>>> 
>>> - add some exit 1; to usr/sbin/setup-storage in the first lines to make it abort
>> 
>> 
>> root at fw1dv:~# parted -s /dev/sdb mklabel msdos
>> root at fw1dv:~# parted -s /dev/sdb mkpart primary "" 32256B 13424947
>> Error: The location 13424947 is outside of the device /dev/sdb.
>> root at fw1dv:~# parted -s /dev/sdb mkpart primary "" 32256B 134249471B
>> Warning: The resulting partition is not properly aligned for best performance.
>> root at fw1dv:~# parted -s /dev/sdb mkpart extended "" 134249472B 60022480895B
>> Warning: The resulting partition is not properly aligned for best performance.
>> root at fw1dv:~# parted -s /dev/sdb mkpart logical "" 134249984B 2281724927B
>> Warning: The resulting partition is not properly aligned for best performance.
>> Error: Error informing the kernel about modifications to partition /dev/sdb5 -- Device or resource busy.  This means Linux won't know about any changes you made to /dev/sdb5 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
>> Error: Failed to add partition 5 (Device or resource busy)
>> root at fw1dv:~# parted -v
>> parted (GNU parted) 2.3
>> Copyright (C) 2010 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.
>> 
>> Written by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.
>> 
>> root at fw1dv:~# dpkg -l | grep parted
>> ii  libparted0debian1                   2.3-5                               The GNU Parted disk partitioning shared library
>> ii  parted                              2.3-5                               The GNU Parted disk partition resizing progra
> 
> Ok, so I read this as "it even fails without setup-storage doing anything" - is
> that right? But then, what is it that is giving us trouble!?
> 
> Best,
> Michael
> 



More information about the linux-fai mailing list