Disk Recovery Part III

Derek Atkins warlord at MIT.EDU
Tue Dec 27 10:49:15 EST 2005


"Rich Braun" <richb at pioneer.ci.net> writes:

> Someone did ask for the commands to use for extending a volume.  When I
> recommend LVM for maintaining spare storage, for myself what I am talking
> about is setting aside say 10% of a 160GB mirrored physical volume to allocate
> in the future--a year or three down the road--when I need space in a
> filesystem and don't have time or inclination to shuffle filesystems across
> drives.  It's not very likely I would use LVM extension in the case of a hard
> drive upgrade, as the person who had asked, because in that case I'd be
> creating new filesystems, not extending old ones.  But you *could* use these
> commands after dd'ing the old drive's partition to the new drive.
>
>   cfdisk (if you need to change the partition table)
>   lvextend
>   resize2fs (for ext3 or ...)
>   resize_reiserfs (...for reiser)
>
> These commands are noted with examples in section 11.9 of the
> previously-mentioned Howto; the section can be accessed directly here: 
> http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html

Unfortunately lvextend wont change LVM's idea of the PHYSICAL Volume
Size.  It lets you extend a Logical Volume within an existing Physical
Volume...  But changing the PHYSICAL volume size is a royal PITA.
There is a "pvresize" that supposedly would do it, but on all
systems I tried pvresize just gives me "Command not implemented yet".

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the Discuss mailing list