what to do with a new harddisk

Charles Li cli168 at yahoo.com
Thu May 5 16:12:05 UTC 2005


--- Paul Howarth <paul at city-fan.org> wrote:
> Charles Li wrote:
> > --- Paul Howarth <paul at city-fan.org> wrote:
> >>If you have done a default install of FC3 then you
> will be using LVM. 
> >>This gives you the opportunity to use the
> additional disk space as if it 
> >>was extra space on your existing filesystems
> rather than creating a new 
> >>partition and mounting it at a fixed mountpoint,
> where the only 
> >>additional space you'll get is under that
> mountpoint.
> >>
> >>To do this, proceed as above up to the "p" command
> >>in "fdisk". At this point, do the following:
> >>
> >>Use the "t" command in fdisk to change the type of
> the new partition to 
> >>"8e" (Linux LVM). Then use the "w" command as
> above to write out the new 
> >>partition table.
> >>
> >>You would then set up your new partition as an LVM
> physical volume:
> >># pvcreate /dev/hdb1
> >>
> >>You can then add this new space to your existing
> volume group, which by 
> >>default is called Volume00 (the "vgdisplay"
> command will show you which 
> >>volume groups you have):
> >># vgextend Volume00 /dev/hdb1
> >>
> >>You can then allocate additional space to any
> existing logical volumes 
> >>you have. I think by default that you get LogVol00
> for the root 
> >>partition and LogVol01 for swap ("df" or a look in
> your /etc/fstab file 
> >>should show you what you have). Use the "lvextend"
> command to do this 
> >>(see "man lvextend").
> >>
> >>e.g. to add 50G to LogVol00:
> >># lvextend --size 50G /dev/Volume00/LogVol00
> >>
> >>Finally, you thne increase the size of the
> filesystem to fill the bigger 
> >>logical volume. In FC3, this can be done whilst
> the filesystem is mounted:
> >>
> >># ext2online -v /dev/Volume00/LogVol00
> >
> > I am getting the following error when writing:
> > 
> > =================================================
> > Disk /dev/hdb1: 8447 MB, 8447330304 bytes
> > 16 heads, 63 sectors/track, 16367 cylinders
> > Units = cylinders of 1008 * 512 = 516096 bytes
> > 
> >      Device Boot      Start         End     
> Blocks  
> > Id  System
> > /dev/hdb1p1               1       16367    
> 8248936+ 
> > 8e  Linux LVM
> > 
> > Command (m for help): w
> > The partition table has been altered!
> > 
> > Calling ioctl() to re-read partition table.
> > 
> > WARNING: Re-reading the partition table failed
> with
> > error 22: Invalid argument.
> > The kernel still uses the old table.
> > The new table will be used at the next reboot.
> > Syncing disks.
> > =================================================
> > After I reboot, I still see the old format.  What
> am I
> > missing?
> 
> What's the problem? The partition type is 8e (Linux
> LVM), which is what 
> you wanted. You should now be able to proceed to the
> "pvcreate" stage.
> 
> Paul.
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe:
> http://www.redhat.com/mailman/listinfo/fedora-list
> 

I can ignore this error?
> WARNING: Re-reading the partition table failed with
> error 22: Invalid argument.
> The kernel still uses the old table.
> The new table will be used at the next reboot.
> Syncing disks.


		
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html




More information about the fedora-list mailing list