Delete from target a LUN that is mounted on initiator


 
Thread Tools Search this Thread
# 1  
Delete from target a LUN that is mounted on initiator

hi all,
i'm new here and i have a question,
i wanted to know, what should happen if i delete a LUN that is already mounted on one of my initiators.
thanks!
# 2  
That depends....

A LUN is looking like a disk from the viewpoint of the client using it. This means, for the client the disk just failed and evaporated into nothingness.

What this means depends on what the client did with the disk: if it used it as a system disk the system probably crashed. If it is an empty disk waiting to be formatted probably nothing happens (the systems configuration may complain somewhat, but this can be repaired online in most cases, a reboot will definitely clear any problem). If the importance of the disk is somewhere in between these two extremes the consequences will probably somewhere in between too.

Again: it depends. tell us more details and you will get more details back.

Just in case you want to be absolved for doing something idiotic ("please tell me that 'rm -rf /' will go unnoticed and will be no problem at all, because i just issued this on our main production database server" - as funny as this may sound, we already had such cases): you can't and we can't.

I hope this helps.

bakunin
# 3  
It is a LUN that has a FS, there is no constant I/O to it, but should't i except that the System will shout at me?
I see only warning msgs in the dmesg that LUN assignments on the target were changed and SCSI doesn't preform remap...

by the way, rescan-scsi-bus.sh doesn't help - it doesn't remaps the LUN, only reset of the stack does..
# 4  
Quote:
Originally Posted by slavash
It is a LUN that has a FS, there is no constant I/O to it, but should't i except that the System will shout at me?
Not more so than when a real disk would break. Suppose the LUN would be a physical disk and this disk had just had a headcrash. Your system would (and should!) complain but not stop working at all because of this, no?

Quote:
I see only warning msgs in the dmesg that LUN assignments on the target were changed and SCSI doesn't preform remap...
Now we are talking. I deduce from this you are using a Linux of some sorts. All the different OSes behave differently and even within Linux there are different HBAs with different behaviors, different drivers with different capabilities, .... You will have to tell a lot more about your environment or you will get answers which are "more or less precise", so to say.

Quote:
by the way, rescan-scsi-bus.sh doesn't help - it doesn't remaps the LUN, only reset of the stack does..
I have only worked with the QLogic HBAs using the Linux-builtin "qla2xxx" module. There is a command ("multipath -<someswitch>" IIRC) to rescan the LUNs attached, but use with care because it will disconnect all the other LUNs for a short time too. If these other LUNs host databases you'd be in for some major recovery in this case.

I hope this helps.

bakunin
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Science: Computers
Difficulty: Easy
The NVidia GTX 1080 gets its name because it can only render at a 1920x1080 screen resolution.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Rsync with --delete but do not delete peer dirs on target

rsync with --delete won't honor the delete if the source is something/*. I want the delete to work, but not to delete directories on the target that are peer to the intended directory. For example, using these source and target file structures: Source on desktop: ~/ Money/ ... (4 Replies)
Discussion started by: JavaMeister
4 Replies

2. Shell Programming and Scripting

Need shell script to compare directories and delete files on target server

Hello, I need help in writing the shell script for below mentioned case. There are 2 servers(server A, server B). A cronjob syncs files between these 2 servers. Existing script is copying files from A to B. This is done using the command rsync. However, the files are not deleted... (2 Replies)
Discussion started by: SravaniVedam11
2 Replies

3. HP-UX

Unable to delete iscsi target

Hi Please can someone give me a hint on this, when I list the targets, I see two o them: #iscsiutil -p Operational Target Information ------------------------------ Target # 1 ----------- Target Name : iqn.1992-08.com.netapp:sn.142241859 Target Alias ... (2 Replies)
Discussion started by: fretagi
2 Replies

4. Shell Programming and Scripting

How to delete more than 7 days file from Target folder?

Hi Team, I have to remove files which are more than 7 days in my target directory. I have this script but using this i faced some problems like, removed library files of unix. for abc in `find /xxx/abc/OutputFiles/xxxx_*.txt -type f -mtime +5|xargs ls 1` do echo "xxx files are:"$abc ... (1 Reply)
Discussion started by: harris
1 Replies

5. Shell Programming and Scripting

rsync delete specific files - from different target folder

Hi, I need to use rsync to delete multiple files(only specified files not all) using --delete option, these files are located in different target folders. Instead of running rsync command multiple times for each file, can we achieve this with one time execution? your help is much... (0 Replies)
Discussion started by: MVEERA
0 Replies

6. Shell Programming and Scripting

rsync delete single file from the target folder

Hi We want to delete a single file from the destiantion directory using rsync. Is it possible to do this ? or Do we have any alternate approaches in rsync( for ex applying some filters ..etc) For ex: ----------------------------------------------- Source (Folder) ... (3 Replies)
Discussion started by: MVEERA
3 Replies

7. Shell Programming and Scripting

target string to delete

Hi all, I have a text file with a lot of records. In each records I have tags like this: =952 \\$aBNCS-CH\\$bBNCS-CH\\$h1989\\$oBNCS-CH0000001\\$pBNCS-CH0000001\\$yJNL =952 \\$aBNCS-C.UNIV\\$bBNCS-C.UNIV\\$h1974-77.\\$oBNCS-C.UNIV0000001\\$pBNCS-C.UNIV0000001\\$yJNL =952... (4 Replies)
Discussion started by: ldiaz2106
4 Replies

8. Solaris

One LUN, mounted on two servers - howto

Hi all Im in a situation where I need to mount a single 650Gb lun on two servers / zones. ServerA is the main database and performs a backup to u99, I need to have this u99 also mounted onto another server to allow various zones to `feed` from it. Ok, I know I can umount, then remount it,... (1 Reply)
Discussion started by: sbk1972
1 Replies

9. Solaris

Iscsi - target + initiator on the same host.

Hi all iscsiadm / iscsitadm. Ive created two devices on a host. # iscsitadm list target Target: 1-disk0 iSCSI Name: iqn.1986-03.com.sun:02:f105ddf3-52a4-ed7a-9590-c3d354b8fc32.1-disk0 Connections: 1 Target: 1-disk1 iSCSI Name:... (0 Replies)
Discussion started by: sbk1972
0 Replies

10. Solaris

I have LUN ID, how to find disk relate to that LUN ID?

I have a list of LUN ID, my task is to find if disk has been added or not. How do I do that? I have been searching the forum and not able to find answer. thanks (4 Replies)
Discussion started by: uuontario
4 Replies

Featured Tech Videos