PE1900/RHEL5

Jonathan Dill jonathan at nerds.net
Tue Dec 11 15:20:40 CST 2007


McDougall, Marshall (FSH) wrote:
> Try 
>  mkdir /stuff
>  mke2fs -j /dev/sda5
>  mount /dev/sda5 /stuff
> And you should have a mount point of about 150 GB.  It's an LVM, and I'm
> not an LVM guy, but I think this should work. 
>   
Yikes.  I'd check first to make sure LVM doesn't think there are any 
volumes are on it before you willy nilly wipe it with an ext2fs, not 
sure if the kernel will like it if you just pull the rug out from under LVM.

Try:

pvscan
vgscan
lvscan

Those should give you some idea what LVM thinks about it.  LVM is a lot 
more flexible in case you want to grow / shrink filesystems later, add 
additional disks to better suit usage patterns.

Read this:

http://tldp.org/HOWTO/LVM-HOWTO/index.html

If you really must use the partition as a whole raw filesystem, you 
should follow the procedure to remove any logical volumes, volume 
groups, and physical volumes first, then change the partition type to 
Linux (83) so that LVM won't try to scan it, then reboot before you try 
to use that partition.

Jonathan



More information about the Linux-PowerEdge mailing list