You need to delete the LU and then import it again. sbdadm delete-lu -k <GUID> do zfs stuff here sbdadm import-lu /dev/zvol/....
delete-lu will remove the reference from the zvol. The -k option will keep the views (if any) so that when you import the LU again you dont have to add the views again. Sumit -----Original Message----- From: [email protected] on behalf of F. Wessels Sent: Sun 1/11/2009 2:11 PM To: [email protected] Subject: [storage-discuss] Receive a snapshot to a comstar lun snv 104 and using comstar for iscsi Hi, First I would like thank the comstar team for their great work. My previous problem, regarding duplicating target iqn's on another server, is neatly solved. I'm really missing a command to list all views in stmfadm. I'm looking forward to test fcoe. When upgrading from snv94 to snv104 my existing luns became inaccessible. I had to restore them on a snv97 server share them as iscsi via zfs. Prepared blank luns on a snv104 server. Using a third machine I mount lun for lun, one with data and another blank lun. Finally I did a dd to transfer the contents. I tried a lot of scenarios before but didn't got it working until I dd'ed the contents. Now my current problem. I've got two servers one for testing and a second for more testing. I want to transfer a zfs volume based lun from the test server to the production server. Both have comstar fully configured target, zfs backend and views. I've got a lun which I prepared on a test server. Took a snapshot. # zfs snapshot mpool/ict/vmserver1/l...@20090111 Did a zfs send to a gzipped file. # zfs send mpool/ict/vmserver1/l...@20090111 | gzip > snapshot_lun0.gz Transfered the file to another server. Here comes trouble: # gunzip -c snaphot_lun0.gz | zfs receive -vF mpool/ict/vmserver1/lun0 cannot remove device links for 'mpool/ict/vmserver1/lun0': dataset is busy There are no views in stmfadm using this lun. Sbdadm lists the /dev/zvol/rdsk/mpool/ict/vmserver1/lun0 as a lu. What is the correct procedure to achieve this? Without disabling the comstar services via svcadm. I want to keep other targets running. Offlining this single target,lu and/or removing it's view isn't a problem, if necessary. Thank, Frederik. -- This message posted from opensolaris.org _______________________________________________ storage-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/storage-discuss
_______________________________________________ storage-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/storage-discuss
