<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7728437380279979157</id><updated>2024-09-28T19:51:56.126-07:00</updated><category term="Basics"/><category term="ZFS"/><category term="Zones"/><category term="Storage (SAN)"/><category term="Veritas Volume Manager"/><title type='text'>Solaris Guru ~ Helps you Get Quick Start on Solaris</title><subtitle type='html'>Solaris related quick tips and tricks.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default?alt=atom'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default?alt=atom&amp;start-index=26&amp;max-results=25'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-6430448703614180353</id><published>2009-04-08T01:20:00.000-07:00</published><updated>2009-04-08T01:21:25.394-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ZFS"/><title type='text'>How to create a RAIDZ2 pool with a hot spare</title><content type='html'>Continuing with the same scenarios, we would be using &lt;br /&gt;&lt;br /&gt;Disk 2, Disk 3, Disk 4, Disk 5 and Disk 6 to create a RAIDZ2 pool. Each disk is 2.00GB each. We would be later using Disk 1 as a spare in the pool. First lets go ahead and create the pool. Here&#39;s how it is done:&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool create plrdz2 c4d1 c5t0d0 c5t1d0 c5t2d0 c5t3d0&lt;br /&gt;root@opensolaris:~#&lt;br /&gt;&lt;br /&gt;Lets check this.&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool status plrdz2&lt;br /&gt;  pool: plrdz2&lt;br /&gt; state: ONLINE&lt;br /&gt; scrub: none requested&lt;br /&gt;config:&lt;br /&gt;&lt;br /&gt; NAME          STATE     READ WRITE CKSUM&lt;br /&gt; plrdz2        ONLINE       0     0     0&lt;br /&gt;   raidz2      ONLINE       0     0     0&lt;br /&gt;     c4d1      ONLINE       0     0     0&lt;br /&gt;     c5t0d0    ONLINE       0     0     0&lt;br /&gt;     c5t1d0    ONLINE       0     0     0&lt;br /&gt;     c5t2d0    ONLINE       0     0     0&lt;br /&gt;     c5t3d0    ONLINE       0     0     0&lt;br /&gt;&lt;br /&gt;errors: No known data errors&lt;br /&gt;root@opensolaris:~# &lt;br /&gt;&lt;br /&gt;The commmand executed successfully and thus now we have a pool named plrdz2 which is RAIDZ2. So this pool can easily tolerate 2 disk failures without giving any data loss. So if 2 disks fail for any reason, you still have your data one piece. Nothing to lose. However the pool would be in DEGRADED state. Now to add further reliability, i would go ahead and one disk as a spare disk. Which would mean that if one of the disk in the pool happens to fail, that disk would be set aside and this hot spare disk would be used to write data. Eventually your pool is safe even for 3 disk failures. Here&#39;s how we add a hot spare to our pool:&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool add plrdz2 spare c3d1&lt;br /&gt;root@opensolaris:~#&lt;br /&gt;&lt;br /&gt;The command completed successfully. &lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool status plrdz2&lt;br /&gt;  pool: plrdz2&lt;br /&gt; state: ONLINE&lt;br /&gt; scrub: none requested&lt;br /&gt;config:&lt;br /&gt;&lt;br /&gt; NAME          STATE     READ WRITE CKSUM&lt;br /&gt; plrdz2        ONLINE       0     0     0&lt;br /&gt;   raidz2      ONLINE       0     0     0&lt;br /&gt;     c4d1      ONLINE       0     0     0&lt;br /&gt;     c5t0d0    ONLINE       0     0     0&lt;br /&gt;            c5t1d0    ONLINE       0     0     0&lt;br /&gt;     c5t2d0    ONLINE       0     0     0&lt;br /&gt;     c5t3d0    ONLINE       0     0     0&lt;br /&gt; spares&lt;br /&gt;   c3d1        AVAIL&lt;br /&gt;&lt;br /&gt;errors: No known data errors&lt;br /&gt;&lt;br /&gt;Now lets do some play. I would go ahead and physically remove Disk 4 (i.e. c5t1d0). Now lets see what happens&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# &lt;br /&gt;root@opensolaris:~# zpool status plrdz2&lt;br /&gt;  pool: plrdz2&lt;br /&gt; state: DEGRADED&lt;br /&gt;status: One or more devices could not be opened.  Sufficient replicas exist for&lt;br /&gt; the pool to continue functioning in a degraded state.&lt;br /&gt;action: Attach the missing device and online it using &#39;zpool online&#39;.&lt;br /&gt;   see: http://www.sun.com/msg/ZFS-8000-2Q&lt;br /&gt; scrub: resilver completed after 0h0m with 0 errors on Wed Apr  8 15:49:52 2009&lt;br /&gt;config:&lt;br /&gt;&lt;br /&gt; NAME          STATE     READ WRITE CKSUM&lt;br /&gt; plrdz2        DEGRADED     0     0     0&lt;br /&gt;   raidz2      DEGRADED     0     0     0&lt;br /&gt;     c4d1      ONLINE       0     0     0  67.5K resilvered&lt;br /&gt;     c5t0d0    ONLINE       0     0     0  70K resilvered&lt;br /&gt;     spare     DEGRADED     0     0     0&lt;br /&gt;       c5t1d0  UNAVAIL      0   868     0  cannot open&lt;br /&gt;       c3d1    ONLINE       0     0     0  134M resilvered&lt;br /&gt;     c5t2d0    ONLINE       0     0     0  67.5K resilvered&lt;br /&gt;     c5t3d0    ONLINE       0     0     0  67K resilvered&lt;br /&gt; spares&lt;br /&gt;   c3d1        INUSE     currently in use&lt;br /&gt;&lt;br /&gt;errors: No known data errors&lt;br /&gt;root@opensolaris:~# &lt;br /&gt;&lt;br /&gt;If you see carefully, the system has now intelligently take the hot spare disk and is still functioning well. &lt;br /&gt;&lt;br /&gt;Point to Note and Remember: From what i know RAIDZ pool cannot be upgraded to RAIDZ2 pool. You would need a minimum of 3 disk to create a RAIDZ2 pool.</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/6430448703614180353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/6430448703614180353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/6430448703614180353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/6430448703614180353'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2009/04/how-to-create-raidz2-pool-with-hot.html' title='How to create a RAIDZ2 pool with a hot spare'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-5690323795599273277</id><published>2009-04-07T22:24:00.000-07:00</published><updated>2009-04-07T22:25:30.141-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ZFS"/><title type='text'>Monitoring performance of ZFS file system using zfs iostat</title><content type='html'>ZFS is built-in with a lot of monitoring features. We would be covering iostat here specifically.&lt;br /&gt;&lt;br /&gt;The command syntax is pretty simple and straight forward and much close to the older iostat command. Here&#39;s how it looks like:&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool iostat &lt;poolname&gt; &lt;interval&gt;&lt;br /&gt; &lt;count&gt;&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool iostat zpooldata 1 5&lt;br /&gt;&lt;br /&gt;               capacity     operations    bandwidth&lt;br /&gt;&lt;br /&gt;pool         used  avail   read  write   read  write&lt;br /&gt;&lt;br /&gt;----------  -----  -----  -----  -----  -----  -----&lt;br /&gt;&lt;br /&gt;zpooldata    222K  7.06G      0      0  2.47K  1.45K&lt;br /&gt;&lt;br /&gt;zpooldata    222K  7.06G      0      0      0      0&lt;br /&gt;&lt;br /&gt;zpooldata    222K  7.06G      0      0      0      0&lt;br /&gt;&lt;br /&gt;zpooldata    222K  7.06G      0      0      0      0&lt;br /&gt;&lt;br /&gt;zpooldata    222K  7.06G      0      0      0      0&lt;br /&gt;&lt;br /&gt;root@opensolaris:~#</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/5690323795599273277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/5690323795599273277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/5690323795599273277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/5690323795599273277'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2009/04/monitoring-performance-of-zfs-file.html' title='Monitoring performance of ZFS file system using zfs iostat'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-1316333307589236137</id><published>2009-04-06T05:02:00.000-07:00</published><updated>2009-04-06T05:08:22.434-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ZFS"/><title type='text'>Best Practises: Migrate your non-system data from UFS to ZFS</title><content type='html'>Consider the following best-practices when migrating non-system-related data from UFS file systems to ZFS file systems:&lt;br /&gt;&lt;br /&gt;1. Unshare the existing UFS file systems&lt;br /&gt;&lt;br /&gt;If your UFS file system is being shared as an NFS resource or any other kind of resource. First unshare it. To do this, you would find a lot of useful tips and tricks, which i wont be covering here.&lt;br /&gt;&lt;br /&gt;2. Unmount the existing UFS file systems from the previous mount points&lt;br /&gt;Unmount your UFS file system from their existing mount points. This would help close some other potential hidden problems that you might run into, if you fail to do so.&lt;br /&gt;&lt;br /&gt;3. Mount the UFS file systems to temporary unshared mount points&lt;br /&gt;Make a new folder somewhere in your file system and mount all these to your newly created UFS mount points.&lt;br /&gt;&lt;br /&gt;4. Migrate the UFS data with parallel instances of rsync running to the new ZFS file systems&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Set the mount points and the sharenfs properties on the new ZFS file systems</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/1316333307589236137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/1316333307589236137' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/1316333307589236137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/1316333307589236137'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2009/04/best-practises-migrate-your-non-system.html' title='Best Practises: Migrate your non-system data from UFS to ZFS'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-719399206277978259</id><published>2009-04-06T04:47:00.000-07:00</published><updated>2009-04-06T05:24:03.076-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ZFS"/><title type='text'>Step by Step: Migrate root UFS file system to ZFS</title><content type='html'>Solaris 10 10/08 is released and one of the great features to come with it is ZFS boot.&lt;br /&gt;&lt;br /&gt;People have been waiting for this for a long time, and will naturally be eager to migrate their root filesystem from UFS to ZFS. This article will detail how you can do this using Live Upgrade. This will allow you to perform the migration with the least amount of downtime, and still have a safety net in case something goes wrong.&lt;br /&gt;&lt;br /&gt;These instructions are aimed at users with systems ALREADY running Solaris 10 10/08 (update 6)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 1: Create the Root zpool&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The first thing you need to do is create your disk zpool. It MUST exist before you can continue, so create and verify it:&lt;br /&gt;&lt;br /&gt;# zpool create rootpool c1t0d0s0&lt;br /&gt;# zpool list&lt;br /&gt;NAME       SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT&lt;br /&gt;rootpool    10G  73.5K  10.0G     0%  ONLINE  -&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;If the slice you’ve selected currently has another filesystem on it, eg UFS or VxFS, you’ll need to use the -f flag to force the creation of the ZFS filesystem.&lt;br /&gt;&lt;br /&gt;You can use any name you like. I’ve chosen rootpool to make it clear what the pool’s function is.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 2:&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Create The Boot Environments (BE)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we’ve got our zpool in place, we can create the BEs that will be used to migrate the current root filesystem across to the new ZFS filesystem.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Create the ABE as follows:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# lucreate -c ufsBE -n zfsBE -p rootpool&lt;br /&gt;&lt;br /&gt;This command will create two boot environments where:&lt;br /&gt;&lt;br /&gt;- ufsBE is the name your current boot environment will be assigned. This can be anything you like and is your safety net. If something goes wrong, you can always boot back to this BE (unless you delete it).&lt;br /&gt;- zfsBE is the name of your new boot environment that will be on ZFS and…&lt;br /&gt;- rootpool is the name of the zpool you create for the boot environment.&lt;br /&gt;&lt;br /&gt;This command will take a while to run as it copies your ufsBE to your new zfsBE and will produce output similar to the following if all goes well:&lt;br /&gt;&lt;br /&gt;# lucreate -c ufsBE -n zfsBE -p rootpool&lt;br /&gt;Analyzing system configuration.&lt;br /&gt;No name for current boot environment.&lt;br /&gt;Current boot environment is named &lt;ufsbe&gt;.&lt;br /&gt;Creating initial configuration for primary boot environment &lt;zfsbe&gt;.&lt;br /&gt;The device &lt;/zfsbe&gt; is not a root device for any boot environment; cannot get BE ID.&lt;br /&gt;PBE configuration successful: PBE name &lt;ufsbe&gt; PBE Boot Device &lt;/ufsbe&gt;.&lt;br /&gt;Comparing source boot environment &lt;ufsbe&gt; file systems with the file&lt;br /&gt;system(s) you specified for the new boot environment. Determining which&lt;br /&gt;file systems should be in the new boot environment.&lt;br /&gt;Updating boot environment description database on all BEs.&lt;br /&gt;Updating system configuration files.&lt;br /&gt;The device &lt;/ufsbe&gt; is not a root device for any boot environment; cannot get BE ID.&lt;br /&gt;Creating configuration for boot environment &lt;zfsbe&gt;.&lt;br /&gt;Source boot environment is &lt;ufsbe&gt;.&lt;br /&gt;Creating boot environment &lt;zfsbe&gt;.&lt;br /&gt;Creating file systems on boot environment &lt;zfsbe&gt;.&lt;br /&gt;Creating &lt;zfs&gt; file system for &lt;/zfs&gt; in zone &lt;global&gt; on &lt;mpool root=&quot;&quot; zfsbe=&quot;&quot;&gt;.&lt;br /&gt;Populating file systems on boot environment &lt;zfsbe&gt;.&lt;br /&gt;Checking selection integrity.&lt;br /&gt;Integrity check OK.&lt;br /&gt;Populating contents of mount point &lt;/zfsbe&gt;.&lt;br /&gt;Copying.&lt;br /&gt;Creating shared file system mount points.&lt;br /&gt;Creating compare databases for boot environment &lt;zfsbe&gt;.&lt;br /&gt;Creating compare database for file system &lt;/zfsbe&gt;.&lt;br /&gt;Updating compare databases on boot environment &lt;zfsbe&gt;.&lt;br /&gt;Making boot environment &lt;zfsbe&gt; bootable.&lt;br /&gt;Creating boot_archive for /.alt.tmp.b-7Tc.mnt&lt;br /&gt;updating /.alt.tmp.b-7Tc.mnt/platform/sun4u/boot_archive&lt;br /&gt;Population of boot environment &lt;zfsbe&gt; successful.&lt;br /&gt;Creation of boot environment &lt;zfsbe&gt; successful.&lt;br /&gt;#&lt;br /&gt;&lt;/zfsbe&gt;&lt;/zfsbe&gt;&lt;/zfsbe&gt;&lt;/zfsbe&gt;&lt;/mpool&gt;&lt;/global&gt;&lt;/zfsbe&gt;&lt;/zfsbe&gt;&lt;/ufsbe&gt;&lt;/zfsbe&gt;&lt;/ufsbe&gt;&lt;br /&gt;The x86 output it not much different. It’ll just include information about updating GRUB.&lt;br /&gt;&lt;br /&gt;Update: You may get the following error from lucreate:&lt;br /&gt;&lt;br /&gt;ERROR: ZFS pool does not support boot environments.&lt;br /&gt;&lt;br /&gt;This will be due to the label on the disk.&lt;br /&gt;&lt;br /&gt;You need to relabel your root disks and give them an SMI label. You can do this using “format -e”, select the disk, then go to “label” and select “[0] SMI label”. This should be all that’s needed, but whilst you’re at it, you may as well check your partition table is still as you want. If not, make your changes and label the disk again.&lt;br /&gt;&lt;br /&gt;For x86 system, you need to ensure your disk has an fdisk table.&lt;br /&gt;&lt;br /&gt;You should now be able to perform the lucreate.&lt;br /&gt;&lt;br /&gt;The most likely reason for your disk having an EFI label is it’s probably been used by ZFS as a whole disk before. ZFS uses EFI labels for whole disk usage, however you need an SMI label for your root disks at the moment (I believe this may change in the future).&lt;br /&gt;&lt;br /&gt;Once the the lucreate has completed, you can verify your Live Upgrade environments with lustatus:&lt;br /&gt;&lt;br /&gt;# lustatus&lt;br /&gt;Boot Environment           Is       Active Active    Can    Copy&lt;br /&gt;Name                       Complete Now    On Reboot Delete Status&lt;br /&gt;-------------------------- -------- ------ --------- ------ ----------&lt;br /&gt;ufsBE                      yes      yes    yes       no     -&lt;br /&gt;zfsBE                      yes      no     no        yes    -&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 3: Activate and Boot from ZFS zpool&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We’re almost done. All we need to do now is activate our new ZFS boot environment and reboot:&lt;br /&gt;# luactivate zfsBE&lt;br /&gt;# init 6&lt;br /&gt;&lt;br /&gt;NOTE: Ensure you reboot using “init 6” or “shutdown -i6“. Do NOT use “reboot”&lt;br /&gt;&lt;br /&gt;Remember, if you’re on SPARC, you’ll need to set the appropriate boot device at the OBP. luactivate will remind you.&lt;br /&gt;&lt;br /&gt;You can verify you’re booted from the ZFS BE using lustatus:&lt;br /&gt;&lt;br /&gt;# lustatus&lt;br /&gt;Boot Environment           Is       Active Active    Can    Copy&lt;br /&gt;Name                       Complete Now    On Reboot Delete Status&lt;br /&gt;-------------------------- -------- ------ --------- ------ ----------&lt;br /&gt;ufsBE                      yes      no     no        yes    -&lt;br /&gt;zfsBE                      yes      yes    yes       no     -&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;At this point you can delete the old ufsBE if all went well. You can also re-use that old disk/slice for anything you want like adding it to the rootpool to create a mirror. The choice is yours, but now you have your system booted from ZFS and all it’s wonderfulness is available on the root filesystem too.</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/719399206277978259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/719399206277978259' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/719399206277978259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/719399206277978259'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2009/04/step-by-step-migrate-root-ufs-file.html' title='Step by Step: Migrate root UFS file system to ZFS'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-3367859465430985213</id><published>2009-04-06T02:57:00.000-07:00</published><updated>2009-04-06T03:11:45.139-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ZFS"/><title type='text'>Playing around with ZFS File system using Virtual Disk created from Sun xVM VirtualBox - Working with ZFS hotspares</title><content type='html'>In our earlier scenario we created a zpool and added extra storage to it. Here we would detail how to create a zpool with a hotspare. But before we could do this, we need to delete / destroy our previous pool. (Note - doing this would erase all your data in your zpool). Here&#39;s how we do it:&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool destroy zpooldata&lt;br /&gt;&lt;br /&gt;So with this, zpooldata is gone.&lt;br /&gt;&lt;br /&gt;Now lets go ahead and a create one with a hotspare.&lt;br /&gt;&lt;br /&gt;In our case, we would be using Disk 1 as a hotspare and Disk 7 and Disk 8 would form part of zpooldata. Here&#39;s how we do this:&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool create zpooldata c5t4d0 c5t5d0 spare c3d1&lt;br /&gt;&lt;br /&gt;(Note: For all practical purposes, make sure that the the disk which you allocate as a hot spare is larger than any of the disk on your pool.)&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool status&lt;br /&gt;&lt;br /&gt;  pool: zpooldata&lt;br /&gt; state: ONLINE&lt;br /&gt; scrub: none requested&lt;br /&gt;config:&lt;br /&gt;&lt;br /&gt;    NAME        STATE     READ WRITE CKSUM&lt;br /&gt;    zpooldata   ONLINE       0     0     0&lt;br /&gt;      c5t4d0    ONLINE       0     0     0&lt;br /&gt;      c5t5d0    ONLINE       0     0     0&lt;br /&gt;    spares&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;      c3d1      AVAIL   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;errors: No known data errors&lt;br /&gt;root@opensolaris:~#&lt;br /&gt;&lt;br /&gt;the above shows that Disk 2 is a spare.&lt;br /&gt;&lt;br /&gt;Now lets go ahead and add another disk to the hotspare. Here&#39;s how we do it.&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool add zpooldata spare c4d1&lt;br /&gt;root@opensolaris:~# zpool status&lt;br /&gt;&lt;br /&gt;  pool: zpooldata&lt;br /&gt; state: ONLINE&lt;br /&gt; scrub: none requested&lt;br /&gt;config:&lt;br /&gt;&lt;br /&gt;    NAME        STATE     READ WRITE CKSUM&lt;br /&gt;    zpooldata   ONLINE       0     0     0&lt;br /&gt;      c5t4d0    ONLINE       0     0     0&lt;br /&gt;      c5t5d0    ONLINE       0     0     0&lt;br /&gt;    spares&lt;br /&gt;      c4d1      AVAIL  &lt;br /&gt;      c3d1      AVAIL  &lt;br /&gt;&lt;br /&gt;errors: No known data errors&lt;br /&gt;root@opensolaris:~#&lt;br /&gt;&lt;br /&gt;Now, lets remove both of the hotspare disks.&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool remove zpooldata c3d1 c4d1&lt;br /&gt;root@opensolaris:~# zpool status&lt;br /&gt;&lt;br /&gt;  pool: zpooldata&lt;br /&gt; state: ONLINE&lt;br /&gt; scrub: none requested&lt;br /&gt;config:&lt;br /&gt;&lt;br /&gt;    NAME        STATE     READ WRITE CKSUM&lt;br /&gt;    zpooldata   ONLINE       0     0     0&lt;br /&gt;      c5t4d0    ONLINE       0     0     0&lt;br /&gt;      c5t5d0    ONLINE       0     0     0&lt;br /&gt;&lt;br /&gt;errors: No known data errors&lt;br /&gt;root@opensolaris:~#&lt;br /&gt;&lt;br /&gt;Remember, adding or removing hotspares from your zpool wont really affect the total available storage in your pool. These are just hotspare disks and would be used in an event when a disk in the main pool fails.</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/3367859465430985213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/3367859465430985213' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/3367859465430985213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/3367859465430985213'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2009/04/playing-around-with-zfs-file-system_06.html' title='Playing around with ZFS File system using Virtual Disk created from Sun xVM VirtualBox - Working with ZFS hotspares'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-7979754938608984429</id><published>2009-04-06T01:54:00.000-07:00</published><updated>2009-04-08T01:26:59.585-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ZFS"/><title type='text'>Playing around with ZFS File system using Virtual Disk created from Sun xVM VirtualBox - Creating a zpool and adding storage to it</title><content type='html'>ZFS organizes physical devices into logical pools called storage pools. Both individual disks and array logical unit numbers (LUNs) visible to the operating system may be included in a ZFS pools. ZFS can be based on other less traditional storage structures as well.&lt;br /&gt;&lt;br /&gt;Ideal way to practice and play around with ZFS is to install OpenSolaris as a Guest OS on VMware or using Sun xVM VirtualBox. My examples would be all based on Sun xVM VirtualBox. Its pretty easy and straight forward to add as many virtual disk as you like. I wont cover that stuff here. So this can be an ideal practice ground. You don&#39;t really have to run down a hardware store and get some inexpensive disks to play around with ZFS.&lt;br /&gt;&lt;br /&gt;In my scenario, i have created in all 9 different virtual disks. Below are the details:&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# format&lt;br /&gt;Searching for disks...done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AVAILABLE DISK SELECTIONS:&lt;br /&gt;       0. c3d0 DEFAULT cyl 3668 alt 2 hd 128 sec 32&lt;br /&gt;          /pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0&lt;br /&gt;       1. c3d1 VBOX HAR-ca698f65-ae2b945-0001-5.82GB&lt;br /&gt;          /pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0&lt;br /&gt;       2. c4d1 VBOX HAR-fdacd661-6e2e166-0001-2.00GB&lt;br /&gt;          /pci@0,0/pci-ide@1,1/ide@1/cmdk@1,0&lt;br /&gt;       3. c5t0d0 ATA-VBOX HARDDISK-1.0-2.00GB&lt;br /&gt;          /pci@0,0/pci8086,2829@d/disk@0,0&lt;br /&gt;       4. c5t1d0 ATA-VBOX HARDDISK-1.0-2.00GB&lt;br /&gt;          /pci@0,0/pci8086,2829@d/disk@1,0&lt;br /&gt;       5. c5t2d0 ATA-VBOX HARDDISK-1.0-2.00GB&lt;br /&gt;          /pci@0,0/pci8086,2829@d/disk@2,0&lt;br /&gt;       6. c5t3d0 ATA-VBOX HARDDISK-1.0-2.00GB&lt;br /&gt;          /pci@0,0/pci8086,2829@d/disk@3,0&lt;br /&gt;       7. c5t4d0 ATA-VBOX HARDDISK-1.0-4.00GB&lt;br /&gt;          /pci@0,0/pci8086,2829@d/disk@4,0&lt;br /&gt;       8. c5t5d0 ATA-VBOX HARDDISK-1.0-3.11GB&lt;br /&gt;          /pci@0,0/pci8086,2829@d/disk@5,0&lt;br /&gt;Specify disk (enter its number): ^C&lt;br /&gt;root@opensolaris:~# &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Disk 0 - is my boot disk and i wont be touching this at all.&lt;br /&gt;Disk 1 - 5.82 GB disk.&lt;br /&gt;Disk 2 - 2.00 GB disk.&lt;br /&gt;Disk 3 - 2.00 GB disk&lt;br /&gt;Disk 4 - 2.00 GB disk&lt;br /&gt;Disk 5 - 2.00 GB disk&lt;br /&gt;Disk 6 - 2.00 GB disk&lt;br /&gt;Disk 7 - 4.00 GB disk&lt;br /&gt;Disk 8 - 3.11 GB disk&lt;br /&gt;&lt;br /&gt;All the 2.00 GB one&#39;s i would be using extensively for creating MIRROR and RAID-Z zfs volumes. Rest of them would be for other purposes.&lt;br /&gt;&lt;br /&gt;1. ZFS Pool&lt;br /&gt;&lt;br /&gt;Lets first begin by creating a ZFS pool named &quot;zpooldata&quot;. We would be using disk 2 and disk 7 for this, for now. So here&#39;s how we do it:&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool create zpooldata c4d1 c5t4d0&lt;br /&gt;&lt;br /&gt;the command executes successfully and i have a new zpool created zpooldata with 5.9 GB of available storage to use.&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# df -h&lt;br /&gt;Filesystem Size Used Avail Use% Mounted on&lt;br /&gt;rpool/ROOT/opensolaris&lt;br /&gt;6.2G 2.3G 3.9G 37% /&lt;br /&gt;swap 540M 324K 539M 1% /etc/svc/volatile&lt;br /&gt;/usr/lib/libc/libc_hwcap3.so.1&lt;br /&gt;6.2G 2.3G 3.9G 37% /lib/libc.so.1&lt;br /&gt;swap 539M 12K 539M 1% /tmp&lt;br /&gt;swap 539M 44K 539M 1% /var/run&lt;br /&gt;rpool/export 3.9G 19K 3.9G 1% /export&lt;br /&gt;rpool/export/home 3.9G 19K 3.9G 1% /export/home&lt;br /&gt;rpool/export/home/vishal&lt;br /&gt;3.9G 22M 3.9G 1% /export/home/vishal&lt;br /&gt;rpool 3.9G 72K 3.9G 1% /rpool&lt;br /&gt;zpooldata 5.9G 18K 5.9G 1% /zpooldata&lt;br /&gt;root@opensolaris:~#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;plain and simple, just one command and its done.&lt;br /&gt;&lt;br /&gt;Now lets just go ahead and add Disk 8 to our zpool to get some extra storage. Here&#39;s how we do it.&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool add zpooldata c5t5d0&lt;br /&gt;root@opensolaris:~# df -h&lt;br /&gt;Filesystem Size Used Avail Use% Mounted on&lt;br /&gt;rpool/ROOT/opensolaris&lt;br /&gt;6.1G 2.3G 3.9G 37% /&lt;br /&gt;swap 540M 324K 540M 1% /etc/svc/volatile&lt;br /&gt;/usr/lib/libc/libc_hwcap3.so.1&lt;br /&gt;6.1G 2.3G 3.9G 37% /lib/libc.so.1&lt;br /&gt;swap 540M 12K 540M 1% /tmp&lt;br /&gt;swap 540M 44K 540M 1% /var/run&lt;br /&gt;rpool/export 3.9G 19K 3.9G 1% /export&lt;br /&gt;rpool/export/home 3.9G 19K 3.9G 1% /export/home&lt;br /&gt;rpool/export/home/vishal&lt;br /&gt;3.9G 31M 3.9G 1% /export/home/vishal&lt;br /&gt;rpool 3.9G 72K 3.9G 1% /rpool&lt;br /&gt;zpooldata 9.0G 18K 9.0G 1% /zpooldata&lt;br /&gt;&lt;br /&gt;root@opensolaris:~# zpool status&lt;br /&gt;&lt;br /&gt;pool: zpooldata&lt;br /&gt;state: ONLINE&lt;br /&gt;scrub: none requested&lt;br /&gt;config:&lt;br /&gt;&lt;br /&gt;NAME STATE READ WRITE CKSUM&lt;br /&gt;zpooldata ONLINE 0 0 0&lt;br /&gt;c4d1 ONLINE 0 0 0&lt;br /&gt;c5t4d0 ONLINE 0 0 0&lt;br /&gt;c5t5d0 ONLINE 0 0 0&lt;br /&gt;&lt;br /&gt;errors: No known data errors&lt;br /&gt;root@opensolaris:~#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As of this writing, there is no provision to remove a disk from an existing zpool. I heard this feature is coming up in the future releases. However, what you could do is, to create a zpool with hotspares and then those hotspares could be removed as and when need arises. I will cover this in the next post.</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/7979754938608984429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/7979754938608984429' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/7979754938608984429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/7979754938608984429'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2009/04/playing-around-with-zfs-file-system.html' title='Playing around with ZFS File system using Virtual Disk created from Sun xVM VirtualBox - Creating a zpool and adding storage to it'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-5540197154640335349</id><published>2008-08-25T21:06:00.001-07:00</published><updated>2008-08-25T22:55:10.702-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zones"/><title type='text'>How to Rename a Solaris Zone?</title><content type='html'>A few days back i had a need to rename my Solaris zones from &quot;orazone&quot; to &quot;oraprodzone&quot;. I followed the below steps to successfully rename my zone&#39;s name.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 1: Shutdown the zone &quot;orazone&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Issue the following commands from the globalzone to shutdown orazone.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone# zoneadm list -iv&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;  ID NAME             STATUS         PATH                          &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;   0 global            running        /                             &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;   2 orazone    running        /zones/orazone&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone# zoneadm -z orazone halt&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone# zoneadm list -iv                          &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;  ID NAME             STATUS         PATH                          &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;   0 global    running        /                             &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;   - orazone    installed      /zones/orazone&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 2: Rename the Zone from &quot;orazone&quot; to &quot;oraprodzone&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enter zone configuration from the global zone using the below mentioned commands.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone# zonecfg -z orazone&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;zonecfg:orazone&gt; set zonename=oraprodzone&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;zonecfg:orazone&gt; commit&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;zonecfg:orazone&gt; exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone# zoneadm list -vc&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;  ID NAME             STATUS         PATH                           BRAND&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;   0 global    running        /                              native&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;   - oraprodzone    installed   /zones/orazone        native&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 3: Boot the zone &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After you have made the above changes, boot the zone from the global zone using the below commands.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone# zoneadm -z oraprodzone boot&lt;br /&gt;globalzone# zoneadm list -iv&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;  ID NAME             STATUS         PATH                          &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;   0 global            running        /                             &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;   2 orazone    running        /zones/orazone&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Done!&lt;br /&gt;&lt;br /&gt;There is another way to rename a zone (not supported, but it worked for me), but then that&#39;s not the right one though. However, i would mention that as well.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Renaming zone orazone to oraprodzone&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Perform all of the below as root of global zone.&lt;br /&gt;First shutdown your orazone zone&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone# zoneadm -z orazone halt&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;globalzone#&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt; vi /etc/zones/index&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;change orazone to oraprodzone&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone#&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; cd /etc/zones&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;globalzone#&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; mv orazone.xml oraprodzone.xml&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;globalzone#&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt; vi oraprodzone.xml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;change orazone to oraprodzone&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;globalzone#&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt; cd /zones&lt;/span&gt;&lt;br /&gt;-/zones is where I have stored all the zones&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone#&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt; mv orazone oraprodzone&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-cd to your new zone (/zones/oraprodzone)and modify /etc/hosts, /etc/nodename, /etc/hostname.xxx&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone#&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt; cd /zones/oraprodzone/root/etc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-boot new renaming zone&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;globalzone#&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 204, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt; zoneadm -z oraprodzone boot &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Feel free to leave a comment :)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/5540197154640335349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/5540197154640335349' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/5540197154640335349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/5540197154640335349'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/08/how-to-rename-solaris-zone.html' title='How to Rename a Solaris Zone?'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-7173234137016857789</id><published>2008-08-05T18:41:00.000-07:00</published><updated>2008-08-05T19:22:55.961-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Password Securing Guide - Solaris</title><content type='html'>Hello All, I am being often criticized for using very cryptic passwords on my systems which has multiple combination&#39;s of numeric and special characters. But in really speaking, its indeed a good practice to maintain complex passwords on your systems, so that they cant be easily guessed, cant be breaking into using some silly dictionary attack tool.&lt;br /&gt;&lt;br /&gt;If you guys are not aware of, let me tell you this - (sometimes you know something that takes you by surprise and you tell yourself &quot;How come i didn&#39;t already know this?&quot;) Solaris systems by default still maintain traditional salted crypt passwords (called default crypt_unix(5) algorithm). Take a a closer look at /etc/shadow file and you would see something like this -&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;vishal:bwtNbxhjKdK7k:13223::::::&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The field &quot;bwtNbxhjKdK7k&quot; is nothing but your salted crypt password and this is the default out of the box password format for Solaris and you would be surprized to know that the length of these passwords cannot exceed 8 characters. So if you typed your password as &quot;barackobama&quot;, then your effective password is &quot;barackob&quot; ONLY.Try it for yourself once to know what i am talking about.&lt;br /&gt;&lt;br /&gt;Ok now your next question would be, How should you go about fixing this? Well its pretty simple and straight forward. All you are suppose to do is change your password scheme. Solaris by default (out-of-the-box) provides 4 such schemes for you to choose from. Do a cat /etc/security/policy.conf&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;my-server # cat /etc/security/policy.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# Copyright 1999-2002 Sun Microsystems, Inc.  All rights reserved.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# Use is subject to license terms.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# /etc/security/policy.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# security policy configuration for user attributes. see policy.conf(4)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;#ident  &quot;@(#)policy.conf        1.6     02/06/19 SMI&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;AUTHS_GRANTED=solaris.device.cdrw&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;PROFS_GRANTED=Basic Solaris User&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# crypt(3c) Algorithms Configuration&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# CRYPT_ALGORITHMS_ALLOW specifies the algorithms that are allowed to&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# be used for new passwords.  This is enforced only in crypt_gensalt(3c).&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0); font-weight: bold;&quot;&gt;CRYPT_ALGORITHMS_ALLOW=1,2a,md5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# To deprecate use of the traditional unix algorithm, uncomment below&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# and change CRYPT_DEFAULT= to another algorithm.  For example,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# CRYPT_DEFAULT=1 for BSD/Linux MD5.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-weight: bold; font-style: italic;&quot;&gt;#CRYPT_ALGORITHMS_DEPRECATE=__unix__&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# The Solaris default is the traditional UNIX algorithm.  This is not&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# listed in crypt.conf(4) since it is internal to libc.  The reserved&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;# name __unix__ is used to refer to it.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0); font-weight: bold;&quot;&gt;CRYPT_DEFAULT=__unix__&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pay special attention to the lines in &lt;span style=&quot;font-weight: bold; font-style: italic; color: rgb(0, 153, 0);&quot;&gt;bold&lt;/span&gt; above. These are the algorithms which the system uses to store your passwords which apparently also includes the deadly CRYPT_DEFAULT=__unix__ , which is nothing but crypt_unix. The other crypt algorithms that are allowed are  CRYPT_ALGORITHMS_ALLOW=1,2a,md5. Further details of which you can find under /etc/security/crypt.conf&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;my-server # cat /etc/security/crypt.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;# Use is subject to license terms.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;#ident  &quot;@(#)crypt.conf 1.1     02/06/19 SMI&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;# The algorithm name __unix__ is reserved.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;1       crypt_bsdmd5.so.1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;2a      crypt_bsdbf.so.1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;md5     crypt_sunmd5.so.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let me explain you all of these a little more -&lt;br /&gt;&lt;br /&gt;a) 1 - (crypt_bsdmd5.so): One-way password hashing module for use with crypt(3C) that uses the MD5 message hash algorithm. The output is compatible with md5crypt on BSD and Linux systems. Password Limit: 255 chars&lt;br /&gt;&lt;br /&gt;b) 2a - (crypt_bsdbf.so): One-way password hashing module for use with crypt(3C) that uses the Blowfish cryptographic algorithm. Password Limit: 255 chars&lt;br /&gt;&lt;br /&gt;c) md5 - (crypt_sunmd5.so): One-way password hashing module for use with crypt(3C) that uses the MD5 message hash algorithm. This module is designed to make it difficult to crack passwords that use brute force attacks based on high speed MD5 implementations that use code inlining, unrolled loops, and table lookup. Password Limit: 255 chars&lt;br /&gt;&lt;br /&gt;So you have all of the above to choose from and to switch to better and more secure password scheme, do the following-&lt;br /&gt;&lt;br /&gt;Edit the two lines in /etc/security/policy.conf from&lt;br /&gt;&lt;br /&gt;#CRYPT_ALGORITHMS_DEPRECATE=__unix__&lt;br /&gt;CRYPT_DEFAULT=__unix__&lt;br /&gt;&lt;br /&gt;to-&lt;br /&gt;&lt;br /&gt;(uncomment this line)&lt;br /&gt;CRYPT_ALGORITHMS_DEPRECATE=__unix__&lt;br /&gt;&lt;br /&gt;(change this line to your password scheme of choice)&lt;br /&gt;CRYPT_DEFAULT=md5&lt;br /&gt;&lt;br /&gt;You can also force move from one algorithm to another by editing the&lt;br /&gt;&lt;br /&gt;CRYPT_ALGORITHMS_ALLOW=&lt;br /&gt;&lt;br /&gt;line in policy.conf instead of the deprecation line.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(255, 0, 0);&quot;&gt;NOTE - AFTER DOING THE CHANGE, MAKE SURE YOU CHANGE YOUR USER&#39;S PASSWORD USING passwd COMMAND SO THAT GOING FORWARD, YOUR SYSTEM CAN SAVE PASSWORDS IN THE PASSWORD SCHEME OF YOUR CHOICE. IT CAN BE A HASSLE FOR YOU TO DO THIS, BUT THEN YOU CAN ALWAYS WRITE A SCRIPT TO AUTOMATE THIS TASK.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0); font-weight: bold;&quot;&gt;ANOTHER IMPORTANT NOTE - AFTER CHANGING YOUR PASSWORD SCHEME, SOME OF YOUR ADMIN APPS LIKE SOLARIS MANAGEMENT CONSOLE, WEBMIN OR WBEM AND MANY OTHERS THAT I MIGHT NOT BE AWARE OF, WILL NOT WORK.  BUT SINCE I DONT USE THEM AT ALL. IT DOESNT REALLY BOTHER ME MUCH. &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/7173234137016857789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/7173234137016857789' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/7173234137016857789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/7173234137016857789'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/08/password-securing-guide-solaris.html' title='Password Securing Guide - Solaris'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-3697315967545665654</id><published>2008-07-10T20:15:00.000-07:00</published><updated>2008-07-10T20:21:23.935-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zones"/><title type='text'>Oracle 9i on a Solaris 9 Container using Soalris Zones</title><content type='html'>Hi Folks, I have successfully managed to installed and run Oracle 9i on this Solaris 9 Container that i just installed using Solaris Zones. I followed the standard install process and i didnt encounter anything unusual. The system maintains its own /etc/system file, all i did was added the below mentioned parameters in it, rebooted the zone and installed Oracle 9i on it. However i just created a sample database by the name of vishal on the system. I will work on this more and will post some feedback and how-to&#39;s here.&lt;br /&gt;&lt;br /&gt;Info -&lt;br /&gt;&lt;br /&gt;/etc/system -&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;set shmsys:shminfo_shmmax=4294967295&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;set shmsys:shminfo_shmmin=1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;set shmsys:shminfo_shmmni=100&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;set shmsys:shminfo_shmseg=10&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;set semsys:seminfo_semmni=100&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;set semsys:seminfo_semmsl=410&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;set semsys:seminfo_semmns=1410&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;set semsys:seminfo_semopm=100&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;set semsys:seminfo_semvmx=32767&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;solaris9-zone # ps -ef | grep pmon&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;  root 28570 28564  0 11:17:28 pts/2    0:00 grep pmon&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;  oracle 22418  5325  0   Jun 26 ?        3:07 ora_pmon_vishal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;solaris9-zone # uname -a&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;SunOS solaris9 5.9 Generic_Virtual sun4u sparc SUNW,Sun-Fire-280R&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;solaris9-zone # isainfo -kv&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;64-bit sparcv9 kernel modules&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Feel free to comment, if you have anything to add.</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/3697315967545665654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/3697315967545665654' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/3697315967545665654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/3697315967545665654'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/07/oracle-9i-on-solaris-9-container-using.html' title='Oracle 9i on a Solaris 9 Container using Soalris Zones'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-8137572123881947311</id><published>2008-06-22T21:41:00.001-07:00</published><updated>2008-06-22T22:20:27.898-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zones"/><title type='text'>Step By Step Guide ~ How to Install Solaris 9 as a container on a Solaris 10 System Using Zones</title><content type='html'>Hello folks, I finally managed to successfully install a Solaris 9 Container Zone on my Solaris 10 System. I would like to share the relevant information here.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;MY HARDWARE - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sun Fire 280R (2 x Ultra SPARC III+ at 1200MHz, 6GB RAM, 2 x 80GB HDD)&lt;br /&gt;5 network interfaces - eri0, ce0, ce1, ce2, ce3&lt;br /&gt;&lt;br /&gt;though i used only eri0 and ce0. Remaining, i will use later as and when the need arises.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;MY SOFTWARE - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Solaris 10 OS - Update 5 (downloaded from sun.com and burned this sol-10-u5-ga-sparc-dvd.iso on a DVDROM)&lt;br /&gt;&lt;br /&gt;Solaris 9.0 Container Application - (downloaded from sun.com this file named - s9containers-1_0-rr-solaris10-sparc.tar.gz)&lt;br /&gt;&lt;br /&gt;Solaris 9.0 OS Image file - (downloaded from sun.com this file named - solaris9-image.flar)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;MY OBJECTIVE - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To install Solaris 9 OS as a container on a Solaris 10 zone. We have some native apps on Solaris 9, so i need to check if that would work fine.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEPS I FOLLOWED -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 1 - Solaris 10 OS Installation on the System&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installed Solaris 10 update 5 on my Sun Fire 280R. Chose Entire Distribution and allocated my second 80GB HDD only for storing Zone data. So i formatted and mounted /zones on my second hard disk c1t1d0s2. I dedicated my first disk (c1t0d0) to run Solaris 10 exclusively. Installation was successful without a hitch. Below is my install configuration -&lt;br /&gt;&lt;br /&gt;hostname - sol10&lt;br /&gt;ip address - 10.10.8.46/24 (on eri0 interface)&lt;br /&gt;&lt;br /&gt;plumbed my ce0 interface so that i can dedicate this to my solaris 9 zone that i would be creating in the next step.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone # cat /etc/release&lt;br /&gt;                     Solaris 10 5/08 s10s_u5wos_10 SPARC&lt;br /&gt;         Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.&lt;br /&gt;                      Use is subject to license terms.&lt;br /&gt;                           Assembled 24 March 2008&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone #ifconfig ce0 plumb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 2 - Install Solaris 9 Container Application 1.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I uploaded the file s9containers-1_0-rr-solaris10-sparc.tar.gz to my home directory. Followed by which i gave the below commands to install the application.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # gunzip s9containers-1_0-rr-solaris10-sparc.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # tar -xvf s9containers-1_0-rr-solaris10-sparc.tar&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # cd ./s9containers-1_0-rr/Product&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # pkgadd -d ./&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;The following packages are available:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;  1  SUNWs9brandk     Solaris 9 Containers: solaris9 brand support RTU&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;                      (sparc) 11.10.0,REV=2008.04.24.03.37&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;  2  SUNWs9brandr     Solaris 9 Containers: solaris9 brand support (Root)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;                      (sparc) 11.10.0,REV=2008.04.24.03.37&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;  3  SUNWs9brandu     Solaris 9 Containers: solaris9 brand support (Usr)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;                      (sparc) 11.10.0,REV=2008.04.24.03.37&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Select package(s) you wish to process (or &#39;all&#39; to process&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;all packages). (default: all) [?,??,q]:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(select all and accept all the default parameters. the installation was successful.)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 3 - Create Solaris 9 branded zone&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After the system booted, i followed the below commands to create a branded solaris 9 zone.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # zonecfg -z solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;solaris9: No such zone configured&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Use &#39;create&#39; to begin configuring a new zone.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9&gt; create -b&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9&gt; set brand=solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9&gt; set autoboot=false&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9&gt; set zonepath=/zones/solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9&gt; add net&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9:net&gt; set physical=ce0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9:net&gt; set address=10.10.8.91/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9:net&gt; end&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9&gt; info&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonename: solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonepath: /zones/solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;brand: solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;autoboot: false&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;bootargs:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;pool:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;limitpriv:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;scheduling-class:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;ip-type: shared&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;net:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        address: 10.10.8.91/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        physical: ce0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9&gt; verify&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9&gt; commit&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:solaris9&gt; exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 4 - Installed Solaris 9 on the Branded Zone&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I uploaded the file solaris9-image.flar to my home directory and performed the below commands to Install solaris 9 zone.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # zoneadm -z solaris9 install -u -a /export/home/vishal/solaris9-image.flar&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;      Log File: /var/tmp/solaris9.install.846.log&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        Source: /export/home/vishal/solaris9-image.flar&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;    Installing: This may take several minutes...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Postprocessing: This may take several minutes...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        Result: Installation completed successfully.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;      Log File: /zones/solaris9/root/var/log/solaris9.install.846.log&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone #&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone #&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # zoneadm list -cv&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;  ID NAME             STATUS     PATH                           BRAND    IP&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;   0 global           running    /                              native   shared&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;   - solaris9         installed  /zones/solaris9                solaris9 shared&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # cat /var/tmp/solaris9.install.846.log&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008]       Log File: /var/tmp/solaris9.install.846.log&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008]        Product: Solaris 9 Containers 1.0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008]      Installer: solaris9 brand installer 1.21&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008]           Zone: solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008]           Path: /zones/solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008] Starting pre-installation tasks.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008] Installation started for zone &quot;solaris9&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008]         Source: /export/home/vishal/solaris9-image.flar&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008]     Media Type: flash archive&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008]     Installing: This may take several minutes...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008] cd /zones/solaris9/root &amp;amp;&amp;amp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:09:03 SGT 2008] do_flar &lt; &quot;/export/home/vishal/solaris9-image.flar&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:13:58 SGT 2008]   Sanity Check: Passed.  Looks like a Solaris 9 system.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:13:58 SGT 2008] Postprocessing: This may take several minutes...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:13:58 SGT 2008] running: p2v  -u solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:13:58 SGT 2008]    Postprocess: Gathering information about zone solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:13:58 SGT 2008]    Postprocess: Creating mount points&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:13:58 SGT 2008]    Postprocess: Processing /etc/system&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:13:58 SGT 2008]    Postprocess: Booting zone to single user mode&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:14:11 SGT 2008]    Postprocess: Applying p2v module S20_apply_patches&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Sun Jun 22 21:14:12 PDT 2008]         S20_apply_patches:  Unpacking patch:  115986-03&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Sun Jun 22 21:14:12 PDT 2008]         S20_apply_patches: Installing patch:  115986-03&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Checking installed patches...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Verifying sufficient filesystem capacity (dry run method)...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Installing patch packages...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Patch number 115986-03 has been successfully installed.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;See /var/sadm/patch/115986-03/log for details&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Patch packages installed:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;  SUNWesu&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;  SUNWesxu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Sun Jun 22 21:14:29 PDT 2008]         S20_apply_patches:  Unpacking patch:  112963-32&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Sun Jun 22 21:14:29 PDT 2008]         S20_apply_patches: Installing patch:  112963-32&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Checking installed patches...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Patch 112963-32 has already been applied.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;See patchadd(1M) for instructions.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Patchadd is terminating.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:14:33 SGT 2008]    Postprocess: Applying p2v module S31_fix_net&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:14:33 SGT 2008]    Postprocess: Applying p2v module S32_fix_nfs&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:14:34 SGT 2008]    Postprocess: Applying p2v module S33_fix_vfstab&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:14:34 SGT 2008]    Postprocess: Applying p2v module S34_fix_inittab&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:14:34 SGT 2008]    Postprocess: Applying p2v module S35_fix_crontab&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:14:34 SGT 2008]    Postprocess: Applying p2v module S36_fix_pam_conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:14:34 SGT 2008]    Postprocess: Applying p2v module S40_setup_preload&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:14:35 SGT 2008]    Postprocess: Performing zone sys-unconfig&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:15:00 SGT 2008]    Postprocess: Postprocessing successful.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:15:00 SGT 2008]         Result: Postprocessing complete.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:15:01 SGT 2008]    Service Tag: Gathering information about zone solaris9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:15:01 SGT 2008]    Service Tag: Adding service tag: urn:st:f703f244-18f1-cf25-a9db-fdd4ea20ffe6&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Solaris 9 Containers 1.0 added&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Product instance URN=urn:st:f703f244-18f1-cf25-a9db-fdd4ea20ffe6&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:15:01 SGT 2008]    Service Tag: Operation successful.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:15:01 SGT 2008]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:15:01 SGT 2008]         Result: Installation completed successfully.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[Mon Jun 23 12:15:01 SGT 2008]       Log File: /zones/solaris9/root/var/log/solaris9.install.846.log&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone #&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 5 - Configuring the Solaris 9 zone&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Configuration process involves booting your zone, setting up your hostname, IP Address Configuration, TimeZone Settings, Naming Configuration etc.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # zoneadm -z solaris9 boot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # zoneadm list -cv&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;  ID NAME             STATUS     PATH                           BRAND    IP&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;   0 global           running    /                              native   shared&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;   3 solaris9         running    /zones/solaris9                solaris9 shared&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone # zlogin -C solaris9&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;[zlogin solaris console]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After this you will be asked to set up your hostname, IP Address, TimeZone Settings, Naming Configuration etc. After successfully completing this, the zone would reboot. After the system has rebooted, you are all set to go.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone # zoneadm list -cv&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;  ID NAME             STATUS     PATH                           BRAND    IP&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;   0 global           running    /                              native   shared&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;   3 solaris9         running    /zones/solaris9                solaris9 shared&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0); font-style: italic;&quot;&gt;globalzone #&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;SOME QUICK TESTS I PERFORMED&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After all this, i was able to connect to my Solaris 9 container that i just created using SSH. Just to test out, i performed the following commands -&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;solaris9-zone # uname -a&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;SunOS solaris9 5.9 Generic_Virtual sun4u sparc SUNW,Sun-Fire-280R&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;solaris9-zone # cat /etc/release&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;                      Solaris 9 9/05 HW s9s_u9wos_06b SPARC&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;           Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;                        Use is subject to license terms.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;                           Assembled 25 September 2006&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;solaris9-zone # df -h&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Filesystem             size   used  avail capacity  Mounted on&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;/                       67G   1.9G    65G     3%    /&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;/.SUNWnative/lib       9.6G   162M   9.4G     2%    /.SUNWnative/lib&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;/.SUNWnative/platform&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;                       9.6G   162M   9.4G     2%    /.SUNWnative/platform&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;/.SUNWnative/usr        29G   3.1G    25G    11%    /.SUNWnative/usr&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;/dev                    67G   1.9G    65G     3%    /dev&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;proc                     0K     0K     0K     0%    /proc&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;mnttab                   0K     0K     0K     0%    /etc/mnttab&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;swap                    11G    16K    11G     1%    /etc/svc/volatile&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;/dev/ksyms              29G   3.1G    25G    11%    /dev/ksyms&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;fd                       0K     0K     0K     0%    /dev/fd&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;swap                    11G     0K    11G     0%    /tmp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;solaris9-zone # psrinfo&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;0       on-line   since 06/23/2008 11:52:30&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;1       on-line   since 06/23/2008 11:52:31&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;solaris9-zone #&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I hope the above would be useful to you guys. Do feel free to comment, if you happen to have any questions.</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/8137572123881947311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/8137572123881947311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/8137572123881947311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/8137572123881947311'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/06/step-by-step-guide-how-to-install.html' title='Step By Step Guide ~ How to Install Solaris 9 as a container on a Solaris 10 System Using Zones'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-1135965132376144995</id><published>2008-06-21T21:41:00.000-07:00</published><updated>2008-06-22T01:08:58.428-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zones"/><title type='text'>Installing Solaris 9 Zone on a Solaris 10 System</title><content type='html'>Hello Folks,&lt;br /&gt;&lt;br /&gt;I am now working on doing a Solaris 9 OS install on a Solaris 10 system using Solaris 10 Zones. If you dont know already know, Solaris 10 can run container versions of Solaris 8 and 9 within a Solaris 9. There are some specific applications that you need to install on your global zone to make it work. From what all i have read so far, all that is needed is a Solaris 9.0 Container Software 1.0 and Solaris 9 install image. You can download both from the Sun Download website. Also make sure that the version of Solaris ten is Update 4 or above. I will be illustrating the procedure with Update 5 release. Stay tuned....</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/1135965132376144995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/1135965132376144995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/1135965132376144995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/1135965132376144995'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/06/installing-solaris-9-zone-on-solaris-10.html' title='Installing Solaris 9 Zone on a Solaris 10 System'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-3120608687357067850</id><published>2008-06-18T01:26:00.000-07:00</published><updated>2008-06-18T20:27:20.020-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zones"/><title type='text'>Step By Step Guide ~ How to Change Zone Network Parameters</title><content type='html'>I would presume here that the zone is already created and i would detail out the process to change an &quot;existing&quot; zone&#39;s network parameters.&lt;br /&gt;&lt;br /&gt;Please Note - The network parameters can be changed without halting the zone. But the changes would only take affect after the zone is rebooted. So be careful with this part. Before you can use any network interface on a local zone, that interface must be plumbed first (e.g. ifconfig &lt;interface&gt; plumb, on the global zone) in the global zone. If no network address is assigned on the global zone to that interface, its default address will be set to inet 0.0.0.0 netmask 0.&lt;br /&gt;&lt;br /&gt;Objective - To change network properties of zone &quot;ora9&quot;&lt;br /&gt;&lt;br /&gt;FROM -&lt;br /&gt;Interface - ce0&lt;br /&gt;IP Address - 10.10.10.8/24&lt;br /&gt;&lt;br /&gt;TO -&lt;br /&gt;Interface - ce1&lt;br /&gt;IP Address - 10.10.10.11/24&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 1 - &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Use &lt;/span&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;zoneadm list&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; on the global zone to show status of zones on your system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On the global zone, use the zoneadm list -cv to show current status of all installed zones.&lt;br /&gt;&lt;br /&gt;In the illustration below, i have two zones installed, one being ora9 and another being ora8&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone# zoneadm list -cv&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;  ID NAME             STATUS         PATH                         &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;   0 global           running        /                            &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;   1 ora9           running        /zone/ora9                &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;   - ora8             configured     /zone/ora8                  &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note: You may also use zoneadm -z &lt;zone&gt; list -v to verify the specific zone status.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 2 - &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Use &lt;/span&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;zonecfg -z &lt;zone&gt;&lt;/zone&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; to enter the zone modifying environment&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On the global zone, use the zonecfg -z &lt;zone&gt; to enter the zone configuration environment. The enviromental prompt &quot;zonecfg:&lt;zone&gt;&quot; will display.&lt;br /&gt;&lt;br /&gt;Use info in the zone configuration environment to verify the network values.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone# zonecfg -z ora9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; info&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonepath: /zone/ora9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;autoboot: true&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;pool: &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /lib&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /platform&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /sbin&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /usr&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;net:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        address: 10.10.10.8/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        physical: ce0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 3 - &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Use set address=&lt;/span&gt;&lt;value&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; and set physical=&lt;/span&gt;&lt;value&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; to change the network address and physical interface.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use set address=&lt;value&gt; and set physical=&lt;value&gt; in the zone configuration environment .&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9:net&gt; set address=10.10.10.11/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9:net&gt; set physical=ce1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9:net&gt; info&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;net:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        address: 10.10.10.11/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        physical: ce1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9:net&gt; end&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; verify&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; info&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonepath: /zone/ora9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;autoboot: true&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;pool: &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /lib&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /platform&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /sbin&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /usr&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;net:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        address: 10.10.10.8/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        physical: ce0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;net:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        address: 10.10.10.11/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        physical: ce1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; remove net address=10.10.10.8/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; info&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonepath: /zone/ora9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;autoboot: true&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;pool: &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /lib&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /platform&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /sbin&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /usr&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;net:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        address: 10.10.10.11/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        physical: ce1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; commit&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The zone does not require a reboot for this parameter to take place as the zone will use the new value if it is halted.&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt; * If you set the autoboot resource property in a zone’s configuration to true, that zone is automatically booted when the global zone is booted. The default setting is false.&lt;br /&gt; * for the zones to autoboot, the zones service svc:/system/zones:default must also be enabled.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 4 - &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Use remove net address=&lt;/span&gt;&lt;value&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; to remove the old network values.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use exit in the environment to save the changes and leave the zone configuration environment.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; info&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonepath: /zone/ora9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;autoboot: true&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;pool:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /lib&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /platform&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /sbin&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /usr&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;net:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        address: 10.10.10.8/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        physical: ce0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;net:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        address: 10.10.10.11/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        physical: ce1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; remove net address=10.10.10.8/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; info&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonepath: /zone/ora9&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;autoboot: true&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;pool:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /lib&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /platform&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /sbin&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;inherit-pkg-dir:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        dir: /usr&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;net:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        address: 10.10.10.11/24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;        physical: ce1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; commit&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note:  &lt;br /&gt;&lt;br /&gt;Performing either remove net address=&lt;value&gt;&lt;br /&gt;or&lt;br /&gt;remove net physical=&lt;value&gt;&lt;br /&gt;will delete both network parameters. You do not nor can you perform both command after you have issue one of them.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;STEP 5 - Use commit and exit to save the changes to the parameter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use commit and exit in the environment to save the changes and leave the zone configuration environment.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; verify&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; commit&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;zonecfg:ora9&gt; exit&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;globalzone#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt;Use zoneadm -z &lt;/span&gt;&lt;zone style=&quot;font-style: italic; color: rgb(0, 153, 0);&quot;&gt; halt followed by zoneadm -z &lt;zone&gt; boot&lt;br /&gt;&lt;br /&gt;The new network parameters will not come into force until the zone is booted. Use zoneadm -z &lt;zone&gt; halt to halt the zone. Then use zoneadm -z &lt;zone&gt; boot to start the zone with the new network parameters.&lt;br /&gt;&lt;br /&gt;globalzone# ifconfig -a&lt;br /&gt;lo0: flags=2001000849&lt;up,loopback,running,multicast,ipv4,virtual&gt; mtu 8232 index 1&lt;br /&gt;     inet 127.0.0.1 netmask ff000000&lt;br /&gt;lo0:1: flags=2001000849&lt;up,loopback,running,multicast,ipv4,virtual&gt; mtu 8232 index 1&lt;br /&gt;     zone ora9&lt;br /&gt;     inet 127.0.0.1 netmask ff000000&lt;br /&gt;ce0: flags=1000843&lt;up,broadcast,running,multicast,ipv4&gt; mtu 1500 index 2&lt;br /&gt;     inet 10.10.10.14 netmask ffffff00 broadcast 10.10.10.255&lt;br /&gt;     ether [removed]&lt;br /&gt;ce0:1: flags=1000843&lt;up,broadcast,running,multicast,ipv4&gt; mtu 1500 index 2&lt;br /&gt;     zone ora9&lt;br /&gt;     inet 10.10.10.8 netmask ffffff00 broadcast 10.10.10.255&lt;br /&gt;ce1: flags=1000843&lt;up,broadcast,running,multicast,ipv4&gt; mtu 1500 index 3&lt;br /&gt;     inet 10.10.10.15 netmask ffffff00 broadcast 10.10.10.255&lt;br /&gt;     ether [removed]&lt;br /&gt;&lt;br /&gt;globalzone# zoneadm -z ora9 halt&lt;br /&gt;&lt;br /&gt;globalzone#  ifconfig -a       &lt;br /&gt;lo0: flags=2001000849&lt;up,loopback,running,multicast,ipv4,virtual&gt; mtu 8232 index 1&lt;br /&gt;     inet 127.0.0.1 netmask ff000000&lt;br /&gt;ce0: flags=1000843&lt;up,broadcast,running,multicast,ipv4&gt; mtu 1500 index 2&lt;br /&gt;     inet 10.10.10.14 netmask ffffff00 broadcast 10.10.10.255&lt;br /&gt;     ether [removed]&lt;br /&gt;ce1: flags=1000843&lt;up,broadcast,running,multicast,ipv4&gt; mtu 1500 index 3&lt;br /&gt;     inet 10.10.10.15 netmask ffffff00 broadcast 10.10.10.255&lt;br /&gt;     ether [removed]&lt;br /&gt;&lt;br /&gt;globalzone#  zoneadm -z ora9 boot&lt;br /&gt;&lt;br /&gt;globalzone# ifconfig -a&lt;br /&gt;lo0: flags=2001000849&lt;up,loopback,running,multicast,ipv4,virtual&gt; mtu 8232 index 1&lt;br /&gt;     inet 127.0.0.1 netmask ff000000&lt;br /&gt;lo0:1: flags=2001000849&lt;up,loopback,running,multicast,ipv4,virtual&gt; mtu 8232 index 1&lt;br /&gt;     zone ora9&lt;br /&gt;     inet 127.0.0.1 netmask ff000000&lt;br /&gt;ce0: flags=1000843&lt;up,broadcast,running,multicast,ipv4&gt; mtu 1500 index 2&lt;br /&gt;     inet 10.10.10.14 netmask ffffff00 broadcast 10.10.10.255&lt;br /&gt;     ether [removed]&lt;br /&gt;ce1: flags=1000843&lt;up,broadcast,running,multicast,ipv4&gt; mtu 1500 index 3&lt;br /&gt;     inet 10.10.10.15 netmask ffffff00 broadcast 10.10.10.255&lt;br /&gt;     ether [removed]&lt;br /&gt;ce1:1: flags=1000843&lt;up,broadcast,running,multicast,ipv4&gt; mtu 1500 index 3&lt;br /&gt;     zone ora9&lt;br /&gt;     inet 10.10.10.11 netmask ffffff00 broadcast 10.10.10.255&lt;br /&gt;&lt;br /&gt;globalzone#&lt;/up,broadcast,running,multicast,ipv4&gt;&lt;/up,broadcast,running,multicast,ipv4&gt;&lt;/up,broadcast,running,multicast,ipv4&gt;&lt;/up,loopback,running,multicast,ipv4,virtual&gt;&lt;/up,loopback,running,multicast,ipv4,virtual&gt;&lt;/up,broadcast,running,multicast,ipv4&gt;&lt;/up,broadcast,running,multicast,ipv4&gt;&lt;/up,loopback,running,multicast,ipv4,virtual&gt;&lt;/up,broadcast,running,multicast,ipv4&gt;&lt;/up,broadcast,running,multicast,ipv4&gt;&lt;/up,broadcast,running,multicast,ipv4&gt;&lt;/up,loopback,running,multicast,ipv4,virtual&gt;&lt;/up,loopback,running,multicast,ipv4,virtual&gt;&lt;/zone&gt;&lt;/zone&gt;&lt;/zone&gt;&lt;/zone&gt;&lt;/value&gt;&lt;/value&gt;&lt;/value&gt;&lt;/value&gt;&lt;/value&gt;&lt;/value&gt;&lt;/value&gt;&lt;/zone&gt;&lt;/zone&gt;&lt;/zone&gt;&lt;/interface&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/3120608687357067850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/3120608687357067850' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/3120608687357067850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/3120608687357067850'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/06/step-by-step-guide-how-to-change-zone.html' title='Step By Step Guide ~ How to Change Zone Network Parameters'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-5238213995162618917</id><published>2008-05-22T20:48:00.000-07:00</published><updated>2008-05-22T20:51:29.289-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Solaris - Crontab</title><content type='html'>Features:&lt;br /&gt; 1. Permits scheduling of scripts(shell/perl/python/ruby/PHP/etc.)/tasks on a per-user basis via individual cron tables.&lt;br /&gt; 2. Permits recurring execution of tasks&lt;br /&gt; 3. Permits one-time execution of tasks via &#39;at&#39;&lt;br /&gt; 4. Logs results(exit status but can be full output) of executed tasks&lt;br /&gt; 5. Facilitates restrictions/permissions via - cron.deny,cron.allow,at.*&lt;br /&gt;&lt;br /&gt;Directory Layout for Cron daemon:&lt;br /&gt;/var/spool/cron - and sub-directories of to store cron &amp;amp; at entries&lt;br /&gt;/var/spool/cron/atjobs - houses one-off, atjobs&lt;br /&gt; - 787546321.a - corresponds to a user&#39;s atjob&lt;br /&gt;&lt;br /&gt;/var/spool/cron/crontabs - houses recurring jobs for users&lt;br /&gt; - username - these files house recurring tasks for each user&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cron command:&lt;br /&gt;crontab - facilitates the management of cron table files&lt;br /&gt; -crontab -l - lists the cron table for current user -&lt;br /&gt;   - reads /var/spool/cron/crontabs/root&lt;br /&gt;&lt;br /&gt;Cron file format&lt;br /&gt;&lt;br /&gt;m(0-59) h(0-23) dom(1-31) m(1-12) dow(0-6) command&lt;br /&gt;10 3 * * * /usr/sbin/logadm - 3:10AM - every day&lt;br /&gt;15 3 * * 0 /usr/lib/fs/nfs/nfsfind - 3:15 - every Sunday&lt;br /&gt;30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] &amp;amp;&amp;amp; /usr/lib/gss/gsscred_clean&lt;br /&gt;1 2 * * * [ -x /usr/sbin/rtc ] &amp;amp;&amp;amp; /usr/sbin/rtc -c &gt; /dev/null 2&gt;&amp;amp;1&lt;br /&gt;&lt;br /&gt;m(0-59) h(0-23) dom(1-31) m(1-12) dow(0-6) command&lt;br /&gt;Note: (date/time/command) MUST be on 1 line&lt;br /&gt;m = minute(0-59)&lt;br /&gt;h = hour(0-23)&lt;br /&gt;dom = day of the month(1-31)&lt;br /&gt;m = month(1-12)&lt;br /&gt;dow = day of the week(0-6) - 0=Sunday&lt;br /&gt;&lt;br /&gt;Note: each line contains 6 fields/columns - 5 pertain to date &amp;amp; time of execution, and the 6th pertains to command to execute&lt;br /&gt;&lt;br /&gt;#m h dom m dow&lt;br /&gt;10 3 * * * /usr/sbin/logadm - 3:10AM - every day&lt;br /&gt;* * * * * /usr/sbin/logadm - every minute,hour,dom,m,dow&lt;br /&gt;*/5 * * * * /usr/sbin/logadm - every 5 minutes(0,5,10,15...)&lt;br /&gt;1 0-4 * * * /usr/sbin/logadm - 1 minute after the hours 0-4&lt;br /&gt;0 0,2,4,6,9 * * * /usr/sbin/logadm - top of the hours 0,2,4,6,9&lt;br /&gt;&lt;br /&gt;1-9 0,2,4,6,9 * * * /usr/sbin/logadm - 1-9 minutes of hours 0,2,4,6,9&lt;br /&gt;&lt;br /&gt;Note: Separate columns/fields using whitespace or tabs&lt;br /&gt;&lt;br /&gt;###Create crontabs for root ###&lt;br /&gt;Note: ALWAYS test commands prior to crontab/at submission&lt;br /&gt;&lt;br /&gt;11 * * * * script.sh -va &gt;&gt; /reports/`date +%F`.script.report&lt;br /&gt;&lt;br /&gt;Note: set EDITOR variable to desired editor&lt;br /&gt;export EDITOR=vim&lt;br /&gt;&lt;br /&gt;###script.sh ###&lt;br /&gt;#!/usr/bin/bash&lt;br /&gt;HOME=/export/home/vishal&lt;br /&gt;df -h &gt;&gt; $HOME/`date +%F`.script.report&lt;br /&gt;#END&lt;br /&gt;&lt;br /&gt;Note: aim to reference scripts(shell/perl/python/ruby/PHP,etc.) instead of the various characters&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;Default Solaris install creates &#39;at.deny&#39; &amp;amp; &#39;cron.deny&#39;&lt;br /&gt;You MUST not be included in either file to be able to submit at &amp;amp; cron entries&lt;br /&gt;&lt;br /&gt;Conversely, if cron.allow and at.allow files exist, you MUST belong to either file to submit at or cron entries</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/5238213995162618917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/5238213995162618917' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/5238213995162618917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/5238213995162618917'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/solaris-crontab.html' title='Solaris - Crontab'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-1425346335068675956</id><published>2008-05-22T20:46:00.000-07:00</published><updated>2008-05-22T20:47:56.908-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>NETSTAT Usage in Solaris</title><content type='html'>Lists connections for ALL protocols &amp;amp; address families to and from machine&lt;br /&gt;Address Families (AF) include:&lt;br /&gt; INET - ipv4&lt;br /&gt; INET6 - ipv6&lt;br /&gt; UNIX - Unix Domain Sockets(Solaris/FreeBSD/Linux/etc.)&lt;br /&gt;&lt;br /&gt;Protocols Supported in INET/INET6 include:&lt;br /&gt; TCP, IP, ICMP(PING(echo/echo-reply)), IGMP, RAWIP, UDP(DHCP,TFTP,etc.)&lt;br /&gt;&lt;br /&gt;Lists routing table&lt;br /&gt;Lists DHCP status for various interfaces&lt;br /&gt;Lists net-to-media table - network to MAC(network card) table&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;NETSTAT USAGE:&lt;br /&gt;&lt;br /&gt;netstat - returns sockets by protocol using /etc/services for lookup&lt;br /&gt;&lt;br /&gt;/etc/nssswitch.conf is consulted by netstat to resolve names for IPs&lt;br /&gt;&lt;br /&gt;netstat -a - returns ALL protocols for ALL address families (TCP/UDP/UNIX)&lt;br /&gt;&lt;br /&gt;netstat -an - -n option disables name resolution of hosts &amp;amp; ports&lt;br /&gt;&lt;br /&gt;netstat -i - returns the state of interfaces. pay attention to errors/collisions/queue columns when troubleshooting performance&lt;br /&gt;&lt;br /&gt;netstat -m - returns streams(TCP) statistics&lt;br /&gt;&lt;br /&gt;netstat -p - returns net-to-media info (MAC/layer-2 info.) i.e. arp&lt;br /&gt;&lt;br /&gt;netstat -P protocol (ip|ipv6|icmp|icmpv6|tcp|udp|rawip|raw|igmp) - returns active sockets for selected protocol&lt;br /&gt;&lt;br /&gt;netstat -r - returns routing table&lt;br /&gt;&lt;br /&gt;netstat -D - returns DHCP configuration (lease duration/renewal/etc.)&lt;br /&gt;&lt;br /&gt;netstat -an -f address_family&lt;br /&gt;&lt;br /&gt;netstat -an -f inet|inet6|unix&lt;br /&gt;&lt;br /&gt;netstat -an -f inet - returns ipv4 only information&lt;br /&gt;&lt;br /&gt;netstat -n -f inet&lt;br /&gt;&lt;br /&gt;netstat -anf inet -P tcp&lt;br /&gt;&lt;br /&gt;netstat -anf inet -P udp</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/1425346335068675956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/1425346335068675956' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/1425346335068675956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/1425346335068675956'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/netstat-usage-in-solaris.html' title='NETSTAT Usage in Solaris'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-7565236108511993433</id><published>2008-05-22T20:44:00.000-07:00</published><updated>2008-05-22T20:45:13.486-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>State Database Replicas - Introduction</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;Note: At least 3 replicas are required for a consistent, functional, multi-user Solaris system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3 - yields at least 2 replicas in the event of a failure&lt;br /&gt;Note: if replicas are on same slice or media and are lost, then Volume Management will fail, causing loss of data.&lt;br /&gt;Note: place replicas on as many distinct controllers/disks as possible&lt;br /&gt;&lt;br /&gt;Note: Max of 50 replicas per disk set&lt;br /&gt;&lt;br /&gt;Note: Volume Management relies upon Majority Consensu Algorithm (MCA) to determine the consistency of the volume information&lt;br /&gt;&lt;br /&gt;3 replicas = 1.5(half) = 1-rounded-down +1 = 2 = MCA(half +1)&lt;br /&gt;&lt;br /&gt;Note: try to create an even amount of replicas&lt;br /&gt;4 replicas = 2(half) + 1 = 3&lt;br /&gt;&lt;br /&gt;State database replica is approximately 4MB by default - for local storage&lt;br /&gt;&lt;br /&gt;Rules regarding storage location of state database replicas:&lt;br /&gt;1. dedicated partition/slice - c0t1d0s3&lt;br /&gt;2. local partition that is to be used in a volume(RAID 0/1/5)&lt;br /&gt;3. UFS logging devices&lt;br /&gt;4. &#39;/&#39;, &#39;/usr&#39;, &#39;swap&#39;, and other UFS partitions CANNOT be used to store state database replicas</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/7565236108511993433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/7565236108511993433' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/7565236108511993433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/7565236108511993433'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/state-database-replicas-introduction.html' title='State Database Replicas - Introduction'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-653738016898157355</id><published>2008-05-22T20:43:00.000-07:00</published><updated>2008-05-22T20:44:09.098-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Solaris Volume Management - Introduction</title><content type='html'>Solaris&#39; Volume Management permits the creation of 5 object types:&lt;br /&gt; 1. Volumes(RAID 0(concatenation or stripe)/1(mirroring)/5(striping with parity)&lt;br /&gt; 2. Soft partitions - permits the creation of very large storage devices&lt;br /&gt; 3. Hot spare pools - facilitates provisioning of spare storage for use when RAID-1/5 volume has failed&lt;br /&gt; i.e. MIRROR&lt;br /&gt;       -DISK1&lt;br /&gt;       -DISK2&lt;br /&gt;       -DISK3 - spare&lt;br /&gt;&lt;br /&gt; 4. State database replica - MUST be created prior to volumes&lt;br /&gt;    - Contains configuration &amp;amp; status of ALL managed objects (volumes/hot spare pools/Soft partitions/etc.)&lt;br /&gt;&lt;br /&gt; 5. Disk sets - used when clustering Solaris in failover mode&lt;br /&gt;&lt;br /&gt;Note: Volume Management facilitates the creation of virtual disks&lt;br /&gt;Note: Virtual disks are accessible via: /dev/md/dsk &amp;amp; /dev/md/rdsk&lt;br /&gt;Rules regarding Volumes:&lt;br /&gt;1. State database replicas are required&lt;br /&gt;2. Volumes can be created using dedicated slices&lt;br /&gt;3. Volumes can be created on slices with state database replicas&lt;br /&gt;4. Volumes created by volume manager CANNOT be managed using &#39;format&#39;, however, can be managed using CLI-tools (metadb, metainit) and GUI tool (SMC)&lt;br /&gt;5. You may use tools such as &#39;mkfs&#39;, &#39;newfs&#39;, &#39;growfs&#39;&lt;br /&gt;6. You may grow volumes using &#39;growfs&#39;</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/653738016898157355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/653738016898157355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/653738016898157355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/653738016898157355'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/solaris-volume-management-introduction.html' title='Solaris Volume Management - Introduction'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-5533258936322674782</id><published>2008-05-22T20:42:00.000-07:00</published><updated>2008-05-22T20:43:13.679-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Creating a Swap File/Partition in Solaris</title><content type='html'>swap -l | -s - to display swap information&lt;br /&gt;&lt;br /&gt;mkfile size location_of_file - to create swap file&lt;br /&gt;mkfile 512m /data2/swap2&lt;br /&gt;&lt;br /&gt;swap -a /data2/swap2 - activates swap file&lt;br /&gt;&lt;br /&gt;To remove swap file:&lt;br /&gt;swap -d /data2/swap2 - removes swap space from kernel. does NOT remove file&lt;br /&gt;rm -rf /data2/swap2&lt;br /&gt;&lt;br /&gt;###Swap Partition Creation###&lt;br /&gt;format - select disk - partition - select slice/modify&lt;br /&gt;swap -a /dev/dsk/c0t2d0s1&lt;br /&gt;&lt;br /&gt;Modify /etc/vfstab</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/5533258936322674782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/5533258936322674782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/5533258936322674782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/5533258936322674782'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/creating-swap-filepartition-in-solaris.html' title='Creating a Swap File/Partition in Solaris'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-7595058488681292478</id><published>2008-05-22T20:40:00.000-07:00</published><updated>2008-05-22T20:41:07.986-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Implementing a Temporary File System (TEMPFS) in Solaris</title><content type='html'>TempFS provides in-memory (RAM), very fast, storage and boosts application performance&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;1. Determine available memory and the amount you can spare for TEMPFS&lt;br /&gt; -prtconf&lt;br /&gt; - allocate 100MB&lt;br /&gt;2. Execute mount command:&lt;br /&gt;&lt;br /&gt;mkdir /tempdata &amp;amp;&amp;amp; chmod 777 /tempdata &amp;amp;&amp;amp; mount -F tmpfs -osize=100m swap /tempdata&lt;br /&gt;&lt;br /&gt;Note: TEMPFS data does NOT persist/survive across reboots&lt;br /&gt;Note: TEMPFS data is lost when the following occurs:&lt;br /&gt;1. TEMPFS mount point is unmounted: i.e. umount /tempdata&lt;br /&gt;2. System reboot&lt;br /&gt;&lt;br /&gt;Modify /etc/vfstab to include the TEMPFS mount point for reboots&lt;br /&gt;&lt;br /&gt;swap - /tempdata tmpfs - yes -</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/7595058488681292478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/7595058488681292478' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/7595058488681292478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/7595058488681292478'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/implementing-temporary-file-system.html' title='Implementing a Temporary File System (TEMPFS) in Solaris'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-2495680933281191408</id><published>2008-05-22T20:33:00.000-07:00</published><updated>2008-05-22T20:41:32.468-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>How to determine file system associated with device in Solaris</title><content type='html'>1. fstyp /dev/dsk/c0t0d0s0 - returns file system type&lt;br /&gt;2. grep mount point from /etc/vfstab - returns matching line&lt;br /&gt;  grep /var /etc/vfstab&lt;br /&gt;3. cat /etc/mnttab - displays currently mounted file system</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/2495680933281191408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/2495680933281191408' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/2495680933281191408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/2495680933281191408'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/how-to-determine-file-system-associated.html' title='How to determine file system associated with device in Solaris'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-2154249907804073196</id><published>2008-05-22T20:30:00.000-07:00</published><updated>2008-05-22T20:42:04.261-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Steps to partition and create file systems on a Solaris Disk</title><content type='html'>1. unmount existing file systems&lt;br /&gt;  -umount /data2 /data3&lt;br /&gt;&lt;br /&gt;2. confirm fdisk partitions via &#39;format&#39; utility&lt;br /&gt;  -format - select disk - select fdisk&lt;br /&gt;&lt;br /&gt;3. use partition - modify to create slices on desired drives&lt;br /&gt;  DISK1&lt;br /&gt;    -slice 0 - /dev/dsk/c0t1d0s0&lt;br /&gt;  DISK2&lt;br /&gt;    -slice 0 - /dev/dsk/c0t2d0s0&lt;br /&gt;&lt;br /&gt;4. Create file system using &#39;newfs /dev/rdsk/c0t0d0s0&#39;&lt;br /&gt;&lt;br /&gt;5. Use &#39;fsck /dev/rdsk/c0t1d0s0&#39; to verify the consistency of the file system&lt;br /&gt;&lt;br /&gt;6. Mount file systems at various mount points&lt;br /&gt;  mount /dev/dsk/c0t1d0s0 /data2 &amp;amp;&amp;amp; mount /dev/dsk/c0t2d0s0 /data3&lt;br /&gt;&lt;br /&gt;7. create entries in Virtual File System Table (/etc/vfstab) file</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/2154249907804073196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/2154249907804073196' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/2154249907804073196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/2154249907804073196'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/steps-to-partition-and-create-file.html' title='Steps to partition and create file systems on a Solaris Disk'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-967298011544932440</id><published>2008-05-21T00:58:00.000-07:00</published><updated>2008-11-12T18:07:14.286-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Storage (SAN)"/><title type='text'>NAS and SAN - A Comparison (for newbies)</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg4Qb5SirNCMARDSJTFuaR9WD-fW_ymDyLQ6p3Ag_BruEiLi8bywIOtXknwEncYiwGewnCAbYo4bcKe80P9F_4OZeMIp1aCO2aFxD004u4Arg5C97szEjezQwr28TXC2Rd5xML9vaL/s1600-h/nastop.gif&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg4Qb5SirNCMARDSJTFuaR9WD-fW_ymDyLQ6p3Ag_BruEiLi8bywIOtXknwEncYiwGewnCAbYo4bcKe80P9F_4OZeMIp1aCO2aFxD004u4Arg5C97szEjezQwr28TXC2Rd5xML9vaL/s320/nastop.gif&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5202737720776672146&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs4Dpj1cwEroue9u5rlVv7zqUtyhH8lvlwAyo4nA8y0SoCgrj4WcfDk8hl-hgHdcbrryhVu8bpbZlmCi3rZXGYGNyfWpcmHfM8IhBJQx-_kkZBBsfTIKkWG8jUdKKdSwxmcrpKEUwq/s1600-h/santop.gif&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs4Dpj1cwEroue9u5rlVv7zqUtyhH8lvlwAyo4nA8y0SoCgrj4WcfDk8hl-hgHdcbrryhVu8bpbZlmCi3rZXGYGNyfWpcmHfM8IhBJQx-_kkZBBsfTIKkWG8jUdKKdSwxmcrpKEUwq/s320/santop.gif&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5202737720776672162&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;At first glance NAS and SAN might seem almost identical, and in fact many times either will work in a given situation. After all, both NAS and SAN generally use RAID connected to a network, which then are backed up onto tape. However, there are differences -- important differences -- that can seriously affect the way your data is utilized. For a quick introduction to the technology, take a look at the diagrams below.&lt;br /&gt;&lt;br /&gt;Wires and Protocols&lt;br /&gt;Most people focus on the wires, but the difference in protocols is actually the most important factor. For instance, one common argument is that SCSI is faster than ethernet and is therefore better. Why? Mainly, people will say the TCP/IP overhead cuts the efficiency of data transfer. So a Gigabit Ethernet gives you throughputs of 60-80 Mbps rather than 100Mbps.&lt;br /&gt;&lt;br /&gt;But consider this: the next version of SCSI (due date ??) will double the speed; the next version of ethernet (available in beta now) will multiply the speed by a factor of 10. Which will be faster? Even with overhead? It&#39;s something to consider.&lt;br /&gt;&lt;br /&gt;The Wires&lt;br /&gt;--NAS uses TCP/IP Networks: Ethernet, FDDI, ATM (perhaps TCP/IP over Fibre Channel someday)&lt;br /&gt;--SAN uses Fibre Channel&lt;br /&gt;&lt;br /&gt;The Protocols&lt;br /&gt;--NAS uses TCP/IP and NFS/CIFS/HTTP&lt;br /&gt;--SAN uses Encapsulated SCSI&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;More Differences&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;NAS&lt;/span&gt; - Almost any machine that can connect to the LAN (or is interconnected to the LAN through a WAN) can use NFS, CIFS or HTTP protocol to connect to a NAS and share files.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;SAN&lt;/span&gt; - Only server class devices with SCSI Fibre Channel can connect to the SAN. The Fibre Channel of the SAN has a limit of around 10km at best&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;NAS&lt;/span&gt; - A NAS identifies data by file name and byte offsets, transfers file data or file meta-data (file&#39;s owner, permissions, creation data, etc.), and handles security, user authentication, file locking&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;SAN&lt;/span&gt; - A SAN addresses data by disk block number and transfers raw disk blocks.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;NAS&lt;/span&gt; - A NAS allows greater sharing of information especially between disparate operating systems such as Unix and NT.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;SAN&lt;/span&gt; - File Sharing is operating system dependent and does not exist in many operating systems.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;NAS&lt;/span&gt; - File System managed by NAS head unit&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;SAN&lt;/span&gt; - File System managed by servers&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;NAS&lt;/span&gt; - Backups and mirrors (utilizing features like NetApp&#39;s Snapshots) are done on files, not blocks, for a savings in bandwidth and time. A Snapshot can be tiny compared to its source volume.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;SAN&lt;/span&gt; - Backups and mirrors require a block by block copy, even if blocks are empty. A mirror machine must be equal to or greater in capacity compared to the source volume.&lt;br /&gt;&lt;br /&gt;What&#39;s Next?&lt;br /&gt;NAS and SAN will continue to butt heads for the next few months or years, but as time goes on, the boundaries between NAS and SAN are expected to blur, with developments like SCSI over IP and Open Storage Networking (OSN), the latter recently announced at Networld Interop. Under the OSN initiative, many vendors such as Amdahl, Network Appliance, Cisco, Foundry, Veritas, and Legato are working to combine the best of NAS and SAN into one coherent data management solution.&lt;br /&gt;&lt;br /&gt;SAN / NAS Convergence&lt;br /&gt;As Internet technologies like TCP/IP and Ethernet have proliferated worldwide, some SAN products are making the transition from Fibre Channel to the same IP-based approach NAS uses. Also, with the rapid improvements in disk storage technology, today&#39;s NAS devices now offer capacities and performance that once were only possible with SAN. These two industry factors have led to a partial convergence of NAS and SAN approaches to network storage.</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/967298011544932440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/967298011544932440' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/967298011544932440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/967298011544932440'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/nas-and-san-comparison-for-newbies.html' title='NAS and SAN - A Comparison (for newbies)'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg4Qb5SirNCMARDSJTFuaR9WD-fW_ymDyLQ6p3Ag_BruEiLi8bywIOtXknwEncYiwGewnCAbYo4bcKe80P9F_4OZeMIp1aCO2aFxD004u4Arg5C97szEjezQwr28TXC2Rd5xML9vaL/s72-c/nastop.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-4140830566343414190</id><published>2008-05-21T00:03:00.000-07:00</published><updated>2008-05-21T00:20:41.053-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Veritas Volume Manager"/><title type='text'>Tips on Veritas Volume Manager (VxVM)</title><content type='html'>Important Notes for Installing VERITAS Volume Manager (VxVM)&lt;br /&gt;&lt;br /&gt;* Check what VERITAS  packages are currently running:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# pkginfo | grep –i VRTS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Make sure the boot disk has at least two free partitions with 2048 contiguous sectors (512 bytes) aviable.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# prtvtoc /dev/rdsk/c0t0d0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Make sure to save the boot disk information by using the “prtvtoc” command.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# prtvtoc /dev/rdsk/c0t0d0  &gt; /etc/my_boot_disk_information&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*  Make sure to have a backup copy of the /etc/system and /etc/vfstab files.&lt;br /&gt;* Add packages to your system.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# cd 2location_of_your_packages&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# pkgadd –d . VRTSvxvm VRTSvmman VRTSvmdoc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Add the license key by using vxlicinst.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxlicinst&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Then run the Volume Manager Installation program.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxinstall&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Check the .profile file to ensure the following paths:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# PATH=$PATH:/usr/lib/vxvm/bin:/opt/VRTSobgui/bin:/usr/sbin:/opt/VRTSob/bin&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# MANPATH=$MANPATH:/opt/VRTS/man&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# export PATH MANPATH&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The VERITAS Enterprise Administrator (VEA) provides a Java-based graphical user interface for managing Veritas Volume Manager (VxVM).&lt;br /&gt;&lt;br /&gt;Important Notes for how to set up VEA:&lt;br /&gt;&lt;br /&gt;* Install the VEA software.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# cd 2location_of_your_packages&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# pkgadd –a ../scripts/VRTSobadmin –d . VRTSob VRTSobgui VRTSvmpro VRTSfspro&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Start the VEA server if not, running.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxsvc –m  (Check or monitor the VEA server is running)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxsvc  (Start the VEA server)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Start the Volume Manager User interface.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vea &amp;amp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Most handy Volume Manager commands:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxdiskadm&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxdctl enable (Force the VxVM configuration to rescan for the disks. See devfsadm)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxassist (Assist to create a VxVM volume.)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxdisk list rootdisk (Displays information about the header contents of the root disk.)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxdg list rootdg  (Displays information about the content of the rootdg disk group.)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxprint –g rootdg –thf | more (Displays information about volumes in rootdg.)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In order to create VERITAS Volume Manager, you may use the following three methods:&lt;br /&gt;&lt;br /&gt;(This article emphases on the CLI method.)&lt;br /&gt;&lt;br /&gt;* VEA&lt;br /&gt;* Command Line Interface (CLI)&lt;br /&gt;* vxdiskadm&lt;br /&gt;&lt;br /&gt;Steps to create a disk group:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;*  # vxdg init accountingdg disk01=c1t12d0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to add a disk to a disk group:&lt;br /&gt;&lt;br /&gt;* View the status of the disk.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxdisk list     --or-- # vxdisk –s list&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Add one un-initialized disk to the free disk pool.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxdisksetup –i c1t8d0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Add the disk to a disk group called accoutingdg.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxdg init accountingdg disk01=c1t8d0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxdg –g accountingdg adddisk disk02=c2t8d0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to split objects between disk groups:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxdg split sourcedg targetdg object … &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to join disk groups:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxdg join sourcedg targetdg &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to remove a disk from a disk group:&lt;br /&gt;&lt;br /&gt;* Remove the “disk01” disk from the “accountingdg” diskgroup.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxdg –g accountingdg rmdisk=disk01&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to remove a device from the free disk pool:&lt;br /&gt;&lt;br /&gt;* Remove the c1t8d0 device from the free disk pool.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxdiskunsetup c2t8d0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to manage disk group:&lt;br /&gt;&lt;br /&gt;* To deport and import the “accountingdg” disk group.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxdg deport accountingdg&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxdg –C import accountingdg&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxdg –h other_hostname deport accountingdg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* To destroy the “accountingdg” disk group.&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxdg destroy accountingdg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to create a VOLUME:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxassist –g accountingdg make payroll_vol 500m&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxassist –g accountingdg make gl_vol 1500m &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to mount a VOLUME:&lt;br /&gt;&lt;br /&gt;If using ufs:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # newfs /dev/vx/rdsk/accountingdg/payroll_vol&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # mkdir /payroll&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # mount –F ufs /dev/vx/dsk/accountingdg/payroll_vol /payroll &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If using VxFS:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # mkfs –f vxfs /dev/vx/rdsk/accountingdg/payroll_vol&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # mkdir /payroll&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # mount –F vxfs /dev/vx/dsk/accountingdg/payroll_vol /payroll&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to resize a VOLUME:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxresize –g accountingdg payroll_vol 700m &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to remove a VOLUME:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxedit –g accountingdg –rf rm payroll_vol &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to create a two striped and a mirror VOLUME:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxassist –g accounting make ac_vol 500m layout=stripe,mirror &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to create a raid5 VOLUME:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxassist –g accounting make ac_vol 500m layout=raid5 ncol=5 disk01 … &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Display the VOLUME layout:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxprint –rth &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add or remove a mirror to an existing VOLUME:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxassist –g accountingdg mirror payroll_vol&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxplex –g accounitngdg –o rm dis payroll_plex01 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add a dirty region log to an existing VOLUME and specify the disk to use for the drl:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxassist –g accountingdg addlog payroll_vol logtype=drl disk04 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Move an existing VOLUME from its disk group to another disk group:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* # vxdg move accountingdg new_accountingdg payroll_vol &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To start a VOLUME:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;* #vxvol start &lt;volume_name&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to encapsulate and Root Disk Mirroring&lt;br /&gt;* Use “vxdiskadm” to place another disk in rootdg with the same size or greater.&lt;br /&gt;* Set the eeprom variable to enable VxVM to create a device alias in the openboot program.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# eeprom use-nvramrc?=true&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Use “vxdiskadm” to mirror the root volumes. (Option 6)&lt;br /&gt;* Test you can reboot from mirror disk.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# vxmend off rootvol-01  (disable the boot disk)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# init 6&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;OK&gt; devalias    (check available boot disk aliases)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;OK&gt; boot vx-disk01&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Write a script to use the “for” statement to do some work.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# for i in 0 1 2 3 4&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&gt;cp –r /usr/sbin /mydir${i}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&gt;mkfile 5m /mydir${i}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&gt;dd if=/mydir/my_input_file of=/myother_dir/my_output_file &amp;amp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&gt;done &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/4140830566343414190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/4140830566343414190' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/4140830566343414190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/4140830566343414190'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/tips-on-veritas-volume-manager-vxvm.html' title='Tips on Veritas Volume Manager (VxVM)'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-2111152143990454927</id><published>2008-05-20T23:44:00.000-07:00</published><updated>2008-05-21T00:02:35.044-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Veritas Volume Manager"/><title type='text'>Veritas Volume Manager - Quick Start Command Reference</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;Setting Up Your File System&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Make a VxFS file system - &lt;span style=&quot;font-style: italic;&quot;&gt;mkfs –F vxfs [generic_options] [-o vxfs_options] char_device [size]&lt;/span&gt;&lt;br /&gt;Mount a file system - &lt;span style=&quot;font-style: italic;&quot;&gt;mount –F vxfs [generic_options] [-o vxfs_options] block_device mount_point&lt;/span&gt;&lt;br /&gt;Unmount a file system - &lt;span style=&quot;font-style: italic;&quot;&gt;umount mount_point&lt;/span&gt;&lt;br /&gt;Determine file system type - &lt;span style=&quot;font-style: italic;&quot;&gt;fstype [-v] block_device&lt;/span&gt;&lt;br /&gt;Report free blocks/inodes - &lt;span style=&quot;font-style: italic;&quot;&gt;df –F vxfs [generic_options] [-o s] mount_point&lt;/span&gt;&lt;br /&gt;Check/repair a file system - &lt;span style=&quot;font-style: italic;&quot;&gt;fsck –F vxfs [generic_options] [y|Y] [n|N] character_device&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Online Administration&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Resize a file system -&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; fasdm [-b newsize] [-r raw_device] mount_point&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Dump a file system -&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; vxdump [options] mount_point&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Restore a file system -&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; vxrestore [options] mount_point&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Create a snapshot file system &lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;- mount –F vxfs –o snapof=source_block_device,[snapsize=size] destination_block_device snap_mount_point&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Create a storage checkpoint &lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;- fsckptadm [-nruv] create ckpt_name mount_point&lt;br /&gt;&lt;/span&gt;&lt;span&gt;List storage checkpoints &lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;- fsckptadm [-clv] list mount_point&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Remove a checkpoint&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; - fsckptadm [-sv] remove ckpt_name mount_point&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Mount a checkpoint&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; - mount –F vxfs –o ckpt=ckpt_name pseudo_device mount_point&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Unmount a checkpoint &lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;- umount mount_point&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Change checkpoint attributes&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; - fsckptadm [-sv] set [nodata|nomount|remove] ckpt_name&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Upgrade the VxFS layout&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; - vxupgrade [-n new_version] [-r raw_device] mount_point&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Display layout version&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; - vxupgrade mount_point&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Defragmenting a file system&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Report on directory fragmentation - &lt;span style=&quot;font-style: italic;&quot;&gt;fsadm –D mount_point&lt;/span&gt;&lt;br /&gt;Report on extent fragmentation - &lt;span style=&quot;font-style: italic;&quot;&gt;fsadm –E [-l largesize] mount_point&lt;/span&gt;&lt;br /&gt;Defragment directories - &lt;span style=&quot;font-style: italic;&quot;&gt;fsadm –d mount_point&lt;/span&gt;&lt;br /&gt;Defragment extents - &lt;span style=&quot;font-style: italic;&quot;&gt;fsadm –e mount_point&lt;/span&gt;&lt;br /&gt;Reorganize a file system to support files &gt; 2GB - &lt;span style=&quot;font-style: italic;&quot;&gt;fsadm –o largefiles mount_point&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Intent Logging, I/O Types, and Cache Advisories&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Change default logging behavior - &lt;span style=&quot;font-style: italic;&quot;&gt;fsck –F vxfs [generic_options] –o delaylog|tmplog|nodatainlog|blkclear block_device mount_point&lt;/span&gt;&lt;br /&gt;Change how VxFS handles buffered I/O operations - &lt;span style=&quot;font-style: italic;&quot;&gt;mount –F vxfs [generic_options] –o mincache=closesync|direct|dsync|unbuffered| tmpcache block_device mount_point&lt;/span&gt;&lt;br /&gt;Change how VxFS handles I/O requests for files opened with O_SYNC and O_DSYNC - &lt;span style=&quot;font-style: italic;&quot;&gt;mount –F vxfs [generic_options] –o convosync=closesync|direct|dsync|unbuffered |delay block_device mount_point&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Quick I/O&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enable Quick I/O at mount - &lt;span style=&quot;font-style: italic;&quot;&gt;mount –F vxfs –o qio mount_point&lt;/span&gt;&lt;br /&gt;Disable Quick I/O - &lt;span style=&quot;font-style: italic;&quot;&gt;mount –F vxfs –o noqio mount_point&lt;/span&gt;&lt;br /&gt;Treat a file as a raw character device - &lt;span style=&quot;font-style: italic;&quot;&gt;filename::cdev:vxfs:&lt;/span&gt;&lt;br /&gt;Create a Quick I/O file through a symbolic link - &lt;span style=&quot;font-style: italic;&quot;&gt;qiomkfile [-h header_size] [-a] [-s size] [-e|-r size] file&lt;/span&gt;&lt;br /&gt;Get Quick I/O statistics - &lt;span style=&quot;font-style: italic;&quot;&gt;qiostat [-i interval][-c count] [-l] [-r] file&lt;/span&gt;&lt;br /&gt;Enable cached QIO for all files in a file system - &lt;span style=&quot;font-style: italic;&quot;&gt;vxtunefs –s –o qio_cache_enable=1 mnt_point&lt;/span&gt;&lt;br /&gt;Disable cached QIO for a file - &lt;span style=&quot;font-style: italic;&quot;&gt;qioadmin –S filename=OFF mount_point&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/2111152143990454927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/2111152143990454927' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/2111152143990454927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/2111152143990454927'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/veritas-volume-manager-quick-start.html' title='Veritas Volume Manager - Quick Start Command Reference'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-283433800183844972</id><published>2008-05-20T23:29:00.000-07:00</published><updated>2008-05-20T23:38:23.937-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Mirroring Disk With Solaris Disksuite (formerly Solstice)</title><content type='html'>The first step to setting up mirroring using DiskSuite is to install the DiskSuite packages and any necessary patches for systems prior to Solaris 9. SVM is part of the base system in Solaris 9. The latest recommended version of DiskSuite is 4.2 for systems running Solaris 2.6 and Solaris 7, and 4.2.1 for Solaris 8. There are currently three packages and one patch necessary to install DiskSuite 4.2. They are:&lt;br /&gt;&lt;br /&gt;SUNWmd (Required)&lt;br /&gt;SUNWmdg (Optional GUI)&lt;br /&gt;SUNWmdn (Optional SNMP log daemon)&lt;br /&gt;106627-19 (obtain latest revision)&lt;br /&gt;&lt;br /&gt;The packages should be installed in the same order as listed above. Note that a reboot is necessary after the install as new drivers will be added to the Solaris kernel. For DiskSuite 4.2.1, install the following packages:&lt;br /&gt;&lt;br /&gt;SUNWmdu (Commands)&lt;br /&gt;SUNWmdr (Drivers)&lt;br /&gt;SUNWmdx (64-Bit Drivers)&lt;br /&gt;SUNWmdg (Optional GUI)&lt;br /&gt;SUNWmdnr (Optional log daemon configs)&lt;br /&gt;SUNWmdnu (Optional log daemon)&lt;br /&gt;&lt;br /&gt;For Solaris 2.6 and 7, to make life easier, be sure to update your PATH and MANPATH variables to add DiskSuite&#39;s directories. Executables reside in /usr/opt/SUNWmd/sbin and man pages in /usr/opt/SUNWmd/man. In Solaris 8, DiskSuite files were moved to &quot;normal&quot; system locations (/usr/sbin) so path updates are not necessary.&lt;br /&gt;&lt;br /&gt;The Environment&lt;br /&gt;In this example we will be mirroring two disks, both on the same controller. The first disk will be the primary disk and the second will be the mirror. The disks are:&lt;br /&gt;&lt;br /&gt;Disk 1: c0t0d0&lt;br /&gt;Disk 2: c0t1d0&lt;br /&gt;&lt;br /&gt;The partitions on the disks are presented below. There are a few items of note here. Each disk is partitioned exactly the same. This is necessary to properly implement the mirrors. Slice 2, commonly referred to as the &#39;backup&#39; slice, which represents the entire disk must not be mirrored. There are situations where slice 2 is used as a normal slice, however, this author would not recommend doing so. The three unassigned partitions on each disk are configured to each be 10MB. These 10MB slices will hold the DiskSuite State Database Replicas, or metadbs. More information on the state database replicas will be presented below. In DiskSuite 4.2 and 4.2.1, a metadb only occupies 1034 blocks (517KB) of space. In SVM, they occupy 8192 blocks (4MB). This can lead to many problems during an upgrade if the slices used for the metadb replicas are not large enough to support the new larger databases.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Disk 1:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t0d0s0: /&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t0d0s1: swap&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t0d0s2: backup&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t0d0s3: unassigned&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t0d0s4: /var&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t0d0s5: unassigned&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t0d0s6: unassigned&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t0d0s7: /export&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Disk 2:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t1d0s0: /&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t1d0s1: swap&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t1d0s2: backup&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t1d0s3: unassigned&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t1d0s4: /var&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t1d0s5: unassigned&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t1d0s6: unassigned&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;c0t1d0s7: /export&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Database State Replicas&lt;br /&gt;&lt;br /&gt;The database state replicas serve a very important function in DiskSuite. They are the repositories of information on the state and configuration of each metadevice (A logical device created through DiskSuite is known as a metadevice). Having multiple replicas is critical to the proper operation of DiskSuite.&lt;br /&gt;&lt;br /&gt;· There must be a minimum of three replicas. DiskSuite requires at least half of the replicas to be present in order to continue to operate.&lt;br /&gt;· 51% of the replicas must be present in order to reboot.&lt;br /&gt;· Replicas should be spread across disks and controllers where possible.&lt;br /&gt;· In a three drive configuration, at least one replica should be on each disk, thus allowing for a one disk failure.&lt;br /&gt;· In a two drive configuration, such as the one we present here, there must be at least two replicas per disk. If there were only three and the disk which held two of them failed, there would not be enough information for DiskSuite to function and the system would panic.&lt;br /&gt;&lt;br /&gt;Here we will create our state replicas using the metadb command:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metadb -a -f /dev/dsk/c0t0d0s3&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metadb -a /dev/dsk/c0t0d0s5&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metadb -a /dev/dsk/c0t0d0s6&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metadb -a /dev/dsk/c0t1d0s3&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metadb -a /dev/dsk/c0t1d0s5&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metadb -a /dev/dsk/c0t1d0s6&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The -a and -f options used together create the initial replica. The -a option attaches a new database device and automatically edits the appropriate files.&lt;br /&gt;&lt;br /&gt;Initializing Submirrors&lt;br /&gt;&lt;br /&gt;Each mirrored meta device contains two or more submirrors. The meta device gets mounted by the operating system rather than the original physical device. Below we will walk through the steps involved in creating metadevices for our primary filesystems. Here we create the two submirrors for the / (root) filesystem, as well as a one way mirror between the meta device and its first submirror.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit -f d10 1 1 c0t0d0s0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit -f d20 1 1 c0t1d0s0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit d0 -m d10&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The first two commands create the two submirrors. The -f option forces the creation of the submirror even though the specified slice is a mounted filesystem. The second two options 1 1 specify the number of stripes on the metadevice and the number of slices that make up the stripe. In a mirroring situation, this should always be 1 1. Finally, we specify the logical device that we will be mirroring.&lt;br /&gt;&lt;br /&gt;After mirroring the root partition, we need to run the metaroot command. This command will update the root entry in /etc/vfstab with the new metadevice as well as add the appropriate configuration information into /etc/system. Ommitting this step is one of the most common mistakes made by those unfamiliar with DiskSuite. If you do not run the metaroot command before you reboot, you will not be able to boot the system!&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metaroot d0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Next, we continue to create the submirrors and initial one way mirrors for the metadevices which will replace the swap, and /var partitions.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit -f d11 1 1 c0t0d0s1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit -f d21 1 1 c0t1d0s1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit d1 -m d11&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit -f d14 1 1 c0t0d0s4&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit -f d24 1 1 c0t1d0s4&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit d4 -m d14&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit -f d17 1 1 c0t0d0s7&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit -f d27 1 1 c0t1d0s7&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metainit d7 -m d17&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Updating /etc/vfstab&lt;br /&gt;&lt;br /&gt;The /etc/vfstab file must be updated at this point to reflect the changes made to the system. The / partition will have already been updated through the metaroot command run earlier, but the system needs to know about the new devices for swap and /var. The entries in the file will look something like the following:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;/dev/md/dsk/d1 - - swap - no -&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;/dev/md/dsk/d4 /dev/md/rdsk/d4 /var ufs 1 yes -&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;/dev/md/dsk/d7 /dev/md/rdsk/d7 /export ufs 1 yes -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Notice that the device paths for the disks have changed from the normal style&lt;br /&gt;/dev/dsk/c#t#d#s# and /dev/rdsk/c#t#d#s# to the new metadevice paths,&lt;br /&gt;/dev/md/dsk/d# and /dev/md/rdsk/d#.&lt;br /&gt;&lt;br /&gt;The system can now be rebooted. When it comes back up it will be running off of the new metadevices. Use the df command to verify this. In the next step we will attach the second half of the mirrors and allow the two drives to synchronize.&lt;br /&gt;&lt;br /&gt;Attaching the Mirrors&lt;br /&gt;Now we must attach the second half of the mirrors. Once the mirrors are attached it will begin an automatic synchonization process to ensure that both halves of the mirror are identical. The progress of the synchonization can be monitored using the metastat command. To attach the submirrors, issue the following commands:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metattach d0 d20&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metattach d1 d21&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metattach d4 d24&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# metattach d7 d27&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Final Thoughts&lt;br /&gt;&lt;br /&gt;With an eye towards recovery in case of a future disaster it may be a good idea to find out the physical device path of the root partition on the second disk in order to create an Open Boot PROM (OBP) device alias to ease booting the system if the primary disk fails.&lt;br /&gt;&lt;br /&gt;In order to find the physical device path, simply do the following:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# ls -l /dev/dsk/c0t1d0s0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This should return something similar to the following:&lt;br /&gt;&lt;br /&gt;/sbus@3,0/SUNW,fas@3,8800000/sd@1,0:a&lt;br /&gt;&lt;br /&gt;Using this information, create a device alias using an easy to remember name such as altboot. To create this alias, do the following in the Open Boot PROM:&lt;br /&gt;ok nvalias altboot /sbus@3,0/SUNW,fas@3,8800000/sd@1,0:a&lt;br /&gt;&lt;br /&gt;It is now possible to boot off of the secondary device in case of failure using boot altboot from the OBP.</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/283433800183844972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/283433800183844972' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/283433800183844972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/283433800183844972'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/mirroring-disk-with-solaris-disksuite.html' title='Mirroring Disk With Solaris Disksuite (formerly Solstice)'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7728437380279979157.post-6365770776377453256</id><published>2008-05-20T21:18:00.000-07:00</published><updated>2008-05-20T23:25:12.005-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Gigabit Ethernet Configuration</title><content type='html'>These days all the newer Sun Systems ship with GE (Gigabit Ethernet) Port. Let me give you a quick run down on how to go about configuring the GE Port.&lt;br /&gt;&lt;br /&gt;First, to make sure that your Network Interface Card is actually GE Supported, run the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;#  kstat  ce | more&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;module: ce                              instance: 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-style: italic;&quot;&gt;name:   ce0                             class:    net&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-style: italic;&quot;&gt;        adv_cap_1000fdx                 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-style: italic;&quot;&gt;        adv_cap_1000hdx                 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;        adv_cap_100T4                   0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;        adv_cap_100fdx                  1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;        adv_cap_100hdx                  1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;        adv_cap_10fdx                   1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;        adv_cap_10hdx                   1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;        adv_cap_asmpause                0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;        adv_cap_autoneg                 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;        adv_cap_pause                   0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You the line adv_cap_1000fdx, this means that the interface support GE link. For better through put, i would suggest you to use a Cat-6 cable instead of Cat-5e cable for better results. Cat-5e has low MHz frequency as compared to Cat-6, so Cat-5e can actually be a bottle neck for you if network traffic is high. Next we go about configuring the interface. Dont worry, its pretty simple and straight forward.&lt;br /&gt;&lt;br /&gt;The ndd is a nice little utility used to examine and set kernel parameters, namely the TCP/IP drivers. Most kernel parameters accessible through ndd can be adjusted without rebooting the system. To see which parameters are available for a particular driver, use the following ndd command:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;# ndd /dev/ce \?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here /dev/ce is the name of the driver and  command lists the parameters for this particular driver.  Use of backslash in from of &quot;?&quot;  prevents the shell from interpreting the question mark as a special character. However, in most cases even ignoring backslash should give you same results.&lt;br /&gt;&lt;br /&gt;Some Interpretations-&lt;br /&gt;&lt;br /&gt;# ndd -set /dev/ce instance 2&lt;br /&gt;Interpretation:&lt;br /&gt;Choose ce2 network interface to set parameters.&lt;br /&gt;&lt;br /&gt;# ndd -get /dev/ce link_mode&lt;br /&gt;Interpretation:&lt;br /&gt;0 -- half-duplex&lt;br /&gt;1 -- full-duplex&lt;br /&gt;&lt;br /&gt;# ndd -get /dev/ce link_speed&lt;br /&gt;Interpretation:&lt;br /&gt;0 -- 10 Mbit&lt;br /&gt;1 -- 100 Mbit&lt;br /&gt;1000 -- 1 Gbit&lt;br /&gt;&lt;br /&gt;Usually in most cases, if you enable your network interface to adv_autoneg_cap, it should detect the GE Connection and jump your interface to 1000mbps. But in some cases it might not. In such a situation, i would strongly suggest you to set force GE link on the switch. However, even if that doesnt work, then move to forcing your NIC to GE link. Below steps can be followed.&lt;br /&gt;&lt;br /&gt;To Switch the NIC to Auto Negotiation-&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce instance 2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_1000fdx_cap 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_1000hdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_100fdx_cap 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_100hdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_10fdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_10hdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_autoneg_cap 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To force your NIC to 1000fdx&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce instance 2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_1000fdx_cap 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_1000hdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_100fdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_100hdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_10fdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_10hdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_autoneg_cap 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This should do. In case you want to make these changes permanent, i would suggest that you, &lt;span style=&quot;font-style: italic;&quot;&gt;&lt;/span&gt;create a file /etc/init.d/nddconfig and add following entries into the file-&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce instance 2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_1000fdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_1000hdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_100fdx_cap 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_100hdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_10fdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_10hdx_cap 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;ndd -set /dev/ce adv_autoneg_cap 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# ln -s /etc/init.d/nddconfig /etc/rc3.d/S31nddconfig&lt;br /&gt;&lt;br /&gt;NOTE: The /etc/system settings are not supported for configuring ce Ethernet adapters during system startup; you may either use ndd commands in an /etc/rc?.d script or create a /platform/sun4u/kernel/drv/ce.conf file with appropriate settings.&lt;br /&gt;&lt;br /&gt;Please feel free to post your questions in the comments section if you have any. I would be happy to answer them.</content><link rel='replies' type='application/atom+xml' href='http://solarisguru.getquickstart.com/feeds/6365770776377453256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7728437380279979157/6365770776377453256' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/6365770776377453256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7728437380279979157/posts/default/6365770776377453256'/><link rel='alternate' type='text/html' href='http://solarisguru.getquickstart.com/2008/05/gigabit-ethernet-configuration.html' title='Gigabit Ethernet Configuration'/><author><name>Vishal Sharma</name><uri>http://www.blogger.com/profile/00439671433490282109</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>