We help IT Professionals succeed at work.

Solaris 10   Mount EMC LUN

KirkMatt
KirkMatt asked
on
4,052 Views
Last Modified: 2013-12-21
I have modified the sd.conf file and added the mount info into the vfstab file,  i have created the directory /export/home/lun8 as a test, it mounts the LUN but the filesystem is not picking up the correct disk space i have allocated for the mount on the SANS, it is only showing 121mb out of 60 gigs. Can someone point me in the right direction on setting up a Solaris system to configure the device so that it can see the full 60 gigs of space from the SAN.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2007
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
sun blade 2500

Author

Commented:
I have a Dell branded EMC CX300 with brocade silkworm
CERTIFIED EXPERT

Commented:
Are you looking at the right slice on the LUN?
CERTIFIED EXPERT

Commented:
Also: have you installed PowerPath - you can use unlicensed PowerPath (path failover only, no path balancing) at no cost. It makes your life eaier as you mount the PowerPath pseudo device (eg /dev/emcpower1a) rather than the SCSI device which will change across reboots.

Author

Commented:
yes i am using powerpath, i have configured the vfstab file with the pseudo name and mounted it with the following command mount -F UFS -a /export/home/test  /dev/dsk/emcpower2a
CERTIFIED EXPERT

Commented:
What version of PowerPath are you running? There is a bug in PowerPath 4.5.0 and 5.0 which causes device mapping inconsistencies in PowerPath. The fix is included in PowerPath 5.0.1.

Author

Commented:
i am using 5.01
CERTIFIED EXPERT

Commented:
D'oh!

mount -F UFS -a /export/home/test  /dev/dsk/emcpower2a refers to slice 0 - or the root slice which is 128MB or thereabouts. Change the command to mount -F UFS -a /export/home/test  /dev/dsk/emcpower2c, remount the LUN and you'll see all your disk, . The powermt commands will always display emcpower2a as PowerPath is only interested in the device, not the slice.
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
still showing the same disk size is there anything special i need to do in the VFSTAB file

Commented:
There are a couple possible scenarios here...  If you increased the original volume to be bigger, your disk label is not going to be correct.  You will need to relabel the disk.  There is no utility on the OS to do this.  The disk slice may also not encompass the whole disk.  Could you provide a dump of the disk partition table from the format command?

run format, select the correct disk, then type part, then print.

send that output.

Author

Commented:

The space was changed to 60 gigs here is the print out below


partition> print
Current partition table (default):
Total disk cylinders available: 32766 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -   409      128.12MB    (410/0/0)     262400
  1       swap    wu     410 -   819      128.12MB    (410/0/0)     262400
  2     backup    wu       0 - 32765       10.00GB    (32766/0/0) 20970240
  3 unassigned    wm       0                0         (0/0/0)            0
  4 unassigned    wm       0                0         (0/0/0)            0
  5 unassigned    wm       0                0         (0/0/0)            0
  6        usr    wm     820 - 32765        9.75GB    (31946/0/0) 20445440
  7 unassigned    wm       0                0         (0/0/0)            0

Commented:
There's your 128mb.  You can either mount it under slice2, or use c , ie emcpower2c as the disk.  You can also repartition the disk so slice 0 is the entire disk  (If that's the slice you are trying to mount)

go back in format, select disk, part, then
0
then tell it it's starting at cylinder 0
and for size, type in $c
for partitions, 1, and 6, go in there and set 0 for start slice and 0 for size.

This will in effect clear out that partition.
to view your changes, type print.
if it looks fine, type in label
that will write the label to the disk.
then you should see the new size.  You probably should run newfs on the partition again.

Commented:
BTW, it looks like  you may only have 10GB on that disk from the information for slice 2... Slice 2 should always encompass the entire disk, so you shouldn't mess with that.

Author

Commented:
ok i used the emc migrate tool to push it to 60 gigs do i need to detach the lun and attach it back
CERTIFIED EXPERT

Commented:
You now need to reformat the disk as you can't (easily) resize a UFS partition. Since you're using Solaris 10 and you have to reformat anyway, why not use ZFS which allows dymanic resizing - among many other useful enhancements?

Author

Commented:
never used it could you please direct me in the right direction on.

Commented:
you can use the growfs command to increase the disk space..  I forget all the options, but you can look at the man pages for it..

man growfs

I think it's something like growfs -m <raw disk> <mount point>  It will then resize the disk...

You will need to increase the partition size of the disk...  So, you should be using slice 2.  Once you've increased the disk, look at the partition table for slice 2.  It should show the full 60gb.  If that is true, change /etc/vfstab to point to slice 2, then run the growfs command.

Commented:
Oh, you can grow UFS volumes with growfs.  It was available since Soalris 9...  I don't know if it worked with 8 though, but works with 9 and higher.
CERTIFIED EXPERT

Commented:
I stand corrected. Thanks, vrmuds1!

Author

Commented:
ok i can now see the original size of the lun which was 10 gigs, i originally migrated the luns to a larger lun of 60 gigs is there a way to get solaris to see the new size of 60 gigs.I do not have a different dev grow to but i do because it is already set to 60.  thank to everyone for their help on this.

Commented:
Use the growfs command on the lun..

I stated this earlier.  I can check on the format of the command in a couple hours, but it's something like this:

growfs -m <raw disk slice> <mount point of Lun>

that will grow your volume to the full 60GB.  Can you show another output from the partition table from format again?  I just want to ensure it sees the 60GB.  Also, what's the raw disk path for the LUN that you are using?

Commented:
Ok, here's the format for the growfs command


growfs -M <mount point> <raw device>

Author

Commented:
It does not see the full 60 gigs it only sees the orginal 10gigs

Commented:
the output from the format is still only showing 10GB?  can you send the output again from
format
select disk
part
print
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.