Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Linux Answers > Hardware
User Name


By kkoene at 2010-08-23 14:24
This is really only valid if you are using some kind of multipathing technology or an SVC or SAN of some kind.

for H in `ls /sys/class/fc_host/`
    echo updating $H
    echo 1 > /sys/class/fc_host/${H}/issue_lip
    sleep 1
    echo "- - -" > /sys/class/scsi_host/${H}/scan
    sleep 1
Then run cfgvpath and after that completes run lsvpcfg.

After those commands complete you should be able to do the following:

fdisk <device name or vpath>
create partition using full disk size (usually primary part.)

change id and partition to LVM then run:

pvcreate <pvname>
pvscan to make sure physical volume is there
vgcreate -s 64 <vg_name> /dev/<vpathname>
lvcreate -l <# of extents> -n <full path of vg and lv>
mkfs -j /dev/<vgname>/<lvname>
Then create an entry in /etc/fstab for the filesystem. Once complete with that, you need to run the mkdir command.

mkdir <fs path>
mount <fs>

NOTE: Sometimes the syntax for lvcreate is: lvcreate -L(size) lvname vgname.

Comments and critics are always welcome!


All times are GMT -5. The time now is 02:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration