0% found this document useful (0 votes)
104 views6 pages

My Notes

A symbolic link, also called a soft link, is a special file that points to another file or directory without containing the target's data. It differs from a hard link in that it can link to files across file systems and directories. When the target is deleted, the symbolic link becomes unusable. To create a symbolic link in Unix, use the ln command with the -s option followed by the source and link file names.

Uploaded by

Naresh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views6 pages

My Notes

A symbolic link, also called a soft link, is a special file that points to another file or directory without containing the target's data. It differs from a hard link in that it can link to files across file systems and directories. When the target is deleted, the symbolic link becomes unusable. To create a symbolic link in Unix, use the ln command with the -s option followed by the source and link file names.

Uploaded by

Naresh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

What is symbolic link:

In Unix, what is a symbolic link,


and how do I create one?
A symbolic link, also termed a soft link, is a special kind of file that points to another file,
much like a shortcut in Windows or a Macintosh alias. Unlike a hard link, a symbolic link
does not contain the data in the target file. It simply points to another entry somewhere
in the file system. This difference gives symbolic links certain qualities that hard links do
not have, such as the ability to link to directories, or to files on remote computers
networked through NFS. Also, when you delete a target file, symbolic links to that file
become unusable, whereas hard links preserve the contents of the file.
To create a symbolic link in Unix, at the Unix prompt, enter:
ln -s source_file myfile

Replace source_file with the name of the existing file for which you want to create the
symbolic link (this file can be any existing file or directory across the file systems).
Replace myfile with the name of the symbolic link. Theln command then creates the
symbolic link. After you've made the symbolic link, you can perform an operation on or
execute myfile, just as you could with the source_file. You can use normal file
management commands (e.g., cp, rm) on the symbolic link.
Note: If you delete the source file or move it to a different location, your symbolic file will
not function properly. You should either delete or move it. If you try to use it for other
purposes (e.g., if you try to edit or execute it), the system will send a "file nonexistent"
message.
For more about symbolic links, see the man pages for the ln command. At the Unix
prompt, enter man ln.

symaccess -sid 1234 list


Description: List all Initiator, Port and Storage Groups Created for Array
1234
symaccess -sid 1234 list -v
Description: List all Initiator,Port and Storage Groups Created for Array
1234 along with related Masking Views
symaccess -sid 1234 list -type storage
Description: List all Storage Groups Created for Array 1234
symaccess -sid 1234 list -type initiator
Description: List all Initiator Groups Created for Array 1234
symaccess -sid 1234 list -type port
Description: List all Port Groups Created for Array 1234
symaccess -sid 1234 list view
Description: List masking views Created for Array 1234 with related groups
details
symaccess -sid 1234 list assignment -dev 9A0:9AF
Description: Shows the masking details of devices from 9A0 to 9AF
symaccess -sid 1234 -wwn xxxx replace -new_wwn yyyy
Description: Replace all occurance of wwn xxxx with yyyy in array 1234
symaccess -sid 1234 list logins -wwn xxxx
Description: Check whether wwn xxx logged in to any of the FAs on array
1234.

symaccess -sid 1234 list -type initiator -wwn xxxx


Description: Check whether the HBA WWN xxxx is a member of any
Initiator Group.
symaccess -sid 1234 list -type storage -dev AAA
Description: Check whether the device AAA is part of of any Storage
Groups.
symaccess -sid 1234 show MyStorageGroup -type storage
Description: Shows the contents of storage group MyStorageGroup Created
on Array 1234
symaccess -sid 1234 show MyInitiatorGroup -type initiator
Description: Shows the contents of initiator group MyInitiatorGroup
Created on Array 1234
symaccess -sid 1234 show MyPortGroup -type port
Description: Shows the contents of port group MyPortGroup Createdon
Array 1234
symaccess -sid 1234 show view MyView
Description: Shows the contents of view MyView Created on Array 1234
symaccess -sid 1234 -type initiator -name Host1 create -wwn
1000000000000001
Description: Creates and initiator group called Host1 by adding the
specified wwn
symaccess -sid 1234 -type port -name 3E0_4E0_13E0_14E0 -dirport
3e:0,4e:0,13e:0,14e:0 create
Description: Create the portgroup E0_4E0_13E0_14E0 with specified ports
symaccess -sid 1234 -type storage -name Host1 create devs AAA:AAB
Description: Create the storage group Host1 with specified range of devices
symaccess -sid 1234 -type storage -name Host1 add devs AAA:AAB

Description: Add the devices AAA:AAB to storage group Host1.


symaccess -sid 1234 -type storage -name Host1 remove devs AAA:AAB
-unmap
Description: Remove the device AAA to AAB from storage group Host1 and
also unmap from the FAs

symaccess -sid 1234 create view -name Host1_Allocation -sg Host1


-pg 3E0_4E0_13E0_14E0 -ig Host1
Description: Create a masking view combined with specified groups
symdev -sid 1234 list -tdev
Description: list all thin devices in array 1234
symdev -sid 1234 list -tdev -noport
Description: list all thin devices in array 1234 which are not mapped
symconfigure -sid 1234 list -v
Description: Shows the configuration informations like the micro-code
version , whether the Dynamic RDF is enabled or not etc..
symgate list
Description: Lists all Gatekeeper devices in the local host.
symaccess -sid 1234 -type initiator -name Host1_Host2_IG add -ig
Host2_IG
Description: Add a child Initiator Group(Host2_IG) to the parent Initiator
Group(Host1_Host2_IG).
symclone -g TestDg create DEV001 sym ld DEV002
Description: Create a clone copy session between the devices
DEV001(source) and DEV002(target) in regular diskgroup TestDg. By default
this will create a differentail session.That means, we can do a incremental
recreate or restore later.This command will make the target device in Not
Ready(NR).

symclone -g TestDg create DEV001 sym ld DEV002 -precopy


Description: Create a clone copy session between the devices
DEV001(source) and DEV002(target) in regular diskgroup TestDg. This will
start background copy from DEV001 to DEV002 after making the target
device as NotReady(NR).
symclone -g TestDg create DEV001 sym ld DEV002 -nocopy
Description: Create a "CopyOnAccess" clone session between the devices
DEV001(source) and DEV002(target) in regular diskgroup TestDg.This wont
start any background copying from source to target device even after
activating the session.
symclone -g TestDg activate DEV001 sym ld DEV002
Description: Activate the clone session.This will make the traget devices in
ReadWrite(RW) mode.If the session created with a "-copy" option(default
create option is copy), this will start the background copy from source to
target device.There won't be any background copy if the session created
with "-nocopy" option.
symclone -g TestDg terminate DEV001 sym ld DEV002
Description: This will terminate the clone session between DEV001 and
DEV002, deletes the pairing information from the storage array and removes
any hold on target device.You have to 'Terminate' while the pair in 'Copied'
state to get a fully valid data.
symclone -g TestDg recreate DEV001 sym ld DEV002
Description: Recreate a previously activated clone session.The session
SHOULD NOT be created with a "-nocopy" or "-nondifferential" option.

You might also like