From: Mark B. <mar...@gm...> - 2010-10-12 11:56:37
|
On Tue, Oct 12, 2010 at 6:43 AM, Umesh Gaikwad <uga...@gm...> wrote: > Steps to Configure SCST and disk done using below commands > ========================================================== > 1) Create disk > dd if=/dev/zero of=/mnt/disk1 count=512 > > ls -l /mnt/disk1 > -rwxr-xr-x 1 root root 536870912 Oct 11 09:23 /mnt/disk1 > > file /mnt/disk1 > /mnt/disk1: data > > 2) Enable target mode fibre card specifying wwn > scstadmin -enable 21:00:00:24:ff:29:85:6e > > 3) Add device > > scstadmin -adddev DISK01 -handler vdisk_fileio -path /mnt/disk1 > > 4) Assign device to target > scstadmin -assigndev DISK01 -group 21:00:00:24:ff:29:85:6e -lun 0 > > 5) Add host to the target group > > echo "add 21:00:00:c0:dd:14:dd:41" >/proc/scsi_tgt/groups/HOST01/names > > My /etc/scst.conf file looks as below: > ======================================= > > # Automatically generated by SCST Configurator v1.0.11. > > # NOTE: Options are pipe (|) seperated. > > [OPTIONS] > #OPTION <1|0|YES|NO|TRUE|FALSE|VALUE> > # Copy configuration options during a -writeconfig > KEEP_CONFIG TRUE > # For FC targets, issue a LIP after every assignment change > ISSUE_LIP FALSE > > [HANDLER vdisk] > #DEVICE <vdisk name>,<device path>,<options>,<block size>,<t10 device id> > DEVICE DISK01,/mnt/disk1,,512,DISK01 af3c9f3d > > [HANDLER vcdrom] > #DEVICE <vdisk name>,<device path> > > [GROUP Default] > #USER <user wwn> > > [GROUP HOST01] > #USER <user wwn> > USER 21:00:00:c0:dd:14:dd:41 > > [ASSIGNMENT Default] > #DEVICE <device name>,<lun>,<options> > > [ASSIGNMENT HOST01] > #DEVICE <device name>,<lun>,<options> > DEVICE DISK01,0 > > [TARGETS enable] > #HOST <wwn identifier> > HOST 21:00:00:24:ff:**:85:6e > > [TARGETS disable] > #HOST <wwn identifier> > > > The main Problem I am facing > ====================== > > Done the configuration of SCST as per the above commands and when I try to > load the config, > I am seeing the below problem > > scstadmin -forceconfig -config /etc/scst.conf > Collecting current configuration: done. > > > Collecting current configuration: done. > > -> WARNING: Target '21:00:00:24:ff:**:85:6e' not found on system. > > > Encountered 1 error(s) while processing. > > Configuration checked, 0 difference(s) found with working configuration. > Configuration errors found, aborting. > > Due to the above error I am not able to see the disk on server. > > Can anyone please let me know whyc the target is not available. > > -- > Thanks & Regards, > Umesh Gaikwad > > You're using the old procfs version of scst and scstadmin. The sysfs version is the new standard and procfs versions of scstadmin will soon no longer be supported. However, if I had to guess, your target WWN doesn't look valid. Also make sure the correct target module is loaded. - Mark. |