Solved

Urgent How to format new LUN in Solaris and how to mount filesystem from global to local zone in Solaris10

Posted on 2010-08-17
4
1,096 Views
Last Modified: 2013-12-28
Hi All,

Could somebody provide me the steps how to format new LUN in Solaris host, our SAN admin has created LUN and it is visible under format output on top, I would like to know how to format it make newfs and mount it to /export/zones/ldm-ld-z01 from global zone.

Your help is highly appreciated.

Thanks

Khan
0
Comment
Question by:ikhan_1971
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Expert Comment

by:jeremycrussell
ID: 33466247
Use format to create your partitions, and then "newfs" to put a UFS filesystem on them.

i.e.  newfs /dev/rdsk/c1t0d0s0

Then mount as normal on your system.

in zonecfg, use add fs to create a special-dir in zone.

However, I would recomend using zfs for all of this.

Simply create a spool with your lun

"zpool create newpool <lundevice>"
zfs create newpool/newfs

Then you can use a dataset in the non-global zone to add it and make it exclusive to the zone.

zonecfg -z zonename
add dataset
set name=newpool/newfs
end

If you don't want to make the new fs exclusive to the zone, but want to use ZFS, then you can just use the "add fs" in the same manner.

This is all assuming your OS is up to date enough to support these options.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 33471391
Just add a bit more infor for jeremycrussell's comment, to use ZFS you OS version should be at least Solaris 10 6/06 or newer.
0
 

Author Closing Comment

by:ikhan_1971
ID: 33917383
tg
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question