daiwj 写道: > > Hi,Larry > > Thank you very much ! > > My question 1 :Why format can get the right information ,but iostat > cann't? > > The backgroud is below what I have done below: > > 1) iscsiadm add discovery-address 10.152.11.136:3260 > > 2)iostat -rEn (I could see the disk list coming from 10.152.11.136) > > 3)iscsiadm remove discovery-address 10.152.11.136:3260 > > 4)iostat -rEn (I also could see the disk list coming from > 10.152.11.136. This is not right. Iostat gets information from > kstat.The information in solaris kernel statistics not be updated.) > > 5)format (After format I just see the disk before step 1,This is right! ) > > Now I didn't know how format get the right information from dir > /dev/rdsk.There were links in the dir for the disk after stop 2. >
OK, removing the iscsi discovery-address will trigger devfs to get rid of the device node in the device tree. However, iostat gathers information from kstat which is not from the devfs. That's why it still shows the removed lun. > My question 2 :Why is format so slower sometimes ? > > I get information from web. > > NOINUSE_CHECK=1 > > *export* *NOINU*SE_CHECK > > P*S: If *you are using ZFS, do not set NOINUSE_CHECK > > Why we can't set NOINUSE_CHECK when using ZFS. > I actually don't know why it is said you can't set it when using ZFS. But, NOINUSE_CHECK should not be set in normal operations. Otherwise, you put yourself in a risk of modifying label on a disk which is in use and thus corrupt your data or system. This is a trade off between security and efficiency. Larry _______________________________________________ storage-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/storage-discuss
