LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Linux Answers > Hardware
User Name
Password

Notices


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.

Code:
for H in `ls /sys/class/fc_host/`
do 
    echo updating $H
    echo 1 > /sys/class/fc_host/${H}/issue_lip
    sleep 1
    echo "- - -" > /sys/class/scsi_host/${H}/scan
    sleep 1
done
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:

Code:
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 09:49 AM.

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