推荐用fedora,Ubuntu15.10版可以,后来的版本不可以,没全试,centos不可以。
mount -t configfs configfs /sys/kernel/config
设置HBA卡为target mode
vi /etc/modprobe.d/qla2xxx.conf
options qla2xxx qlini_mode="disabled"
To update initramfs for Debian, run the command:
update-initramfs -u
更新initramfs
update-initramfs -u -k all
In Fedora, run the command
dracut -f /boot/initramfs-currentimage
create name=file_vhd file_or_dev=/home/data/file_vhd size=50G
create 21:00:00:e0:8b:85:b5:f2/qla2xxx/21:00:00:1b:32:81:6e:f1/luns/ create /backstores/fileio/test_file
/qla2xxx/21:00:00:1b:32:81:6e:f1/acls create 21:00:00:1b:32:98:7d:1b //将Lun映射给对应的wwwn
saveconfig