10-03-2012
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!
10 More Discussions You Might Find Interesting
1. Solaris
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
2. Solaris
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
3. Solaris
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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
8. HP-UX
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
9. Shell Programming and Scripting
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
10. UNIX for Advanced & Expert Users
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
format(1M) format(1M)
NAME
format - format an HP SCSI disk array LUN
SYNOPSIS
device_file
DESCRIPTION
formats one LUN of the HP SCSI disk array associated with device file, device_file. The format will usually be a soft or zeroing format,
in which the controller writes zeroes to the data area and parity area, if any, of the LUN.
NOTE: The above should always be true of a sub-LUN, but the controller might decide, based on certain conditions, to do a full format of a
regular LUN, which consists of sending a mode select and a media initialization command to the physical drive(s) in question, fol-
lowed by zeroing the data and parity area, if any. The conditions which will cause a full format to be done are as follows:
1. The controller received a Mode Select command which requires a drive sector size change.
2. The controller received a Mode Select command which changed a parameter in the Format Device Page(0x03).
3. The LUN contains one or more failed drives. In this case only a certain subset of the drives containing the failed drives
will be formatted.
4. Either the FmtData or the CmpLst bit in the Format Unit CDB is set.
RETURN VALUE
returns the following values:
0 Successful completion.
-1 Command failed.
DIAGNOSTICS AND ERRORS
Errors can originate from problems with:
o
o SCSI (device level) communications
o system calls
Error messages generated by format:
An error in command syntax has occurred.
Enter command again with all required arguments, in the order shown.
To ensure that
does not modify a disk array that is being used by another process, attempts to obtain exclusive access to the disk array. If the
disk array is already opened by another process (for example, LVM -- the Logical Volume Manager), a "" error message is returned by
the driver. To eliminate the "" condition, determine what process has the device open. In the case of LVM, it is necessary to
deactivate the volume group containing the array before formatting array LUNs (see vgchange(1M)).
The LUN number, which is derived from the device file name, is out of range.
The addressed LUN
is not configured, and thus is not known to the array controller.
Utilities must be able to open the device file for raw access.
The device being addressed is not an HP SCSI disk array.
SCSI (device level) communication errors:
Sense data associated with the failed operation is printed.
Error messages generated by system calls:
uses the following system calls:
and
Documentation for these HP-UX system calls contains information about the specific error conditions associated with each call. does not
alter the value of The interpretation of for printing purposes is performed by the system utility
EXAMPLES
To format the HP SCSI disk array LUN on a Series 800:
WARNING
The command will destroy all user data on the addressed LUN.
DEPENDENCIES
The HP C2425 and HP C2427 disk arrays are only supported on Series 700 systems running HP-UX version 9.0X.
The HP C2430 disk array is supported on Series 700 and 800 systems running HP-UX versions 9.0X and 10.0X.
AUTHOR
was developed by HP.
format(1M)