cancel
Showing results for 
Search instead for 
Did you mean: 

how to build FC LUN connection

Ulysses_Leo_Lee
Level 3

I am writing to ask for help for the FC LUN connection. Now we have the Oracle M3000 Server, Qlogic HBA Card, Netapp Storage and Cisco MDS FC Switches.

Curretly we have the new LUN be created on the Netapp Storage and exported to this M3000 Server. So what is the next step for the System to connect the LUN and then use the Storage Foundation to take/own it?

Thank you very much in advance and I am a green hand for this.

1 ACCEPTED SOLUTION

Accepted Solutions

Gaurav_S
Moderator
Moderator
   VIP    Certified

Hello,

Assuming that LUNS from storage are masked & presented correctly to the OS .. you need following steps then:

-- Ensure disk is visible to OS , if OS is solaris, run devfsadm -Cv ... will scan devices.

-- Once disk is visible in OS, put a VTOC on the disk using format command (label the disk)

-- Once a disk is labelled, you need to run "vxdctl enable" in veritas so that veritas can rescan all the disks

-- Once vxdctl command has finished, you should see the new disk under "vxdisk list" command, the status of disk should be "online invalid" . This status indicates that disk is seen by veritas however it is not under use of veritas currently.

-- Initialize the disk under veritas using "vxdisksetup -i <disk>" , the disk here represents the name you see in first coulmn of "vxdisk list" output.

-- If you have an existing diskgroup then u can add this disk to existing diskgroup or else can create a new diskgroup using "vxdg init <dgname> <name>=<disk>" ... with this command, new dg with the specified dgname would be created, <name> would be some meaningful name you want to give for e.g oracledg01 & disk is your new veritas disk.  for e.g

vxdg init oracledg oracledg01=c1t0059999auud23s2

-- once disk is added, you can create a volume over it using "vxassist -g <dgname> make <volume> <size>

for e.g

vxassist -g oracledg make oravol 10g

-- now its time to create filesystem, if you want to make vxfs filesystem

# mkfs -F vxfs /dev/vx/rdsk/oracledg/oravol

--you can mount the filesystem over some mount point & ready to use

 

hope this helps

 

G

View solution in original post

1 REPLY 1

Gaurav_S
Moderator
Moderator
   VIP    Certified

Hello,

Assuming that LUNS from storage are masked & presented correctly to the OS .. you need following steps then:

-- Ensure disk is visible to OS , if OS is solaris, run devfsadm -Cv ... will scan devices.

-- Once disk is visible in OS, put a VTOC on the disk using format command (label the disk)

-- Once a disk is labelled, you need to run "vxdctl enable" in veritas so that veritas can rescan all the disks

-- Once vxdctl command has finished, you should see the new disk under "vxdisk list" command, the status of disk should be "online invalid" . This status indicates that disk is seen by veritas however it is not under use of veritas currently.

-- Initialize the disk under veritas using "vxdisksetup -i <disk>" , the disk here represents the name you see in first coulmn of "vxdisk list" output.

-- If you have an existing diskgroup then u can add this disk to existing diskgroup or else can create a new diskgroup using "vxdg init <dgname> <name>=<disk>" ... with this command, new dg with the specified dgname would be created, <name> would be some meaningful name you want to give for e.g oracledg01 & disk is your new veritas disk.  for e.g

vxdg init oracledg oracledg01=c1t0059999auud23s2

-- once disk is added, you can create a volume over it using "vxassist -g <dgname> make <volume> <size>

for e.g

vxassist -g oracledg make oravol 10g

-- now its time to create filesystem, if you want to make vxfs filesystem

# mkfs -F vxfs /dev/vx/rdsk/oracledg/oravol

--you can mount the filesystem over some mount point & ready to use

 

hope this helps

 

G