Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1135
  • Last Modified:

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

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
ikhan_1971
Asked:
ikhan_1971
  • 2
1 Solution
 
jeremycrussellCommented:
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
 
yuzhCommented:
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
 
ikhan_1971Author Commented:
tg
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now