<?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>Weblog for Asbjorn &#187; Unix Administration</title>
	<atom:link href="http://www.asbjornriedel.com/category/unix-administration/feed" rel="self" type="application/rss+xml" />
	<link>http://www.asbjornriedel.com</link>
	<description>Not just another WordPress weblog</description>
	<lastBuildDate>Mon, 06 Sep 2010 10:38:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Passwordless login remote with SSH</title>
		<link>http://www.asbjornriedel.com/unix-administration/passwordless-login-remote-with-ssh</link>
		<comments>http://www.asbjornriedel.com/unix-administration/passwordless-login-remote-with-ssh#comments</comments>
		<pubDate>Tue, 31 Mar 2009 11:47:21 +0000</pubDate>
		<dc:creator>Asbjorn</dc:creator>
				<category><![CDATA[Unix Administration]]></category>

		<guid isPermaLink="false">http://www.asbjornriedel.com/?p=151</guid>
		<description><![CDATA[generate the public keys user1@server1> ssh-keygen –t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/user1/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/user1/.ssh/id_rsa. Your public key has been saved in /home/user1/.ssh/id_rsa.pub. The key fingerprint is: 31:a1:c2:d7:a6:9f:27:cd:84:1f:f2:7a:e8:7c:34:80 user1@server1> cd /home/user1/.ssh [...]]]></description>
			<content:encoded><![CDATA[<p>generate the public keys </p>
<p>user1@server1> <strong>ssh-keygen –t rsa</strong></p>
<p>Generating public/private rsa key pair.<br />
Enter file in which to save the key (/home/user1/.ssh/id_rsa):<br />
Enter passphrase (empty for no passphrase):<br />
Enter same passphrase again:<br />
Your identification has been saved in /home/user1/.ssh/id_rsa.<br />
Your public key has been saved in /home/user1/.ssh/id_rsa.pub.<br />
The key fingerprint is:<br />
31:a1:c2:d7:a6:9f:27:cd:84:1f:f2:7a:e8:7c:34:80 </p>
<p>user1@server1> <strong>cd /home/user1/.ssh</strong><br />
user1@server1> <strong>cp id_rsa.pub authorized_keys</strong></p>
<p>Copy the file authorized_keys to server2 and it is now possible to login without password.</p>
<p>user1@server1> <strong>cd /home/user1/.ssh</strong><br />
user1@server1> <strong>scp authorized_keys server2:/home/user1/.ssh </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.asbjornriedel.com/unix-administration/passwordless-login-remote-with-ssh/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Make RPM Packages</title>
		<link>http://www.asbjornriedel.com/unix-administration/how-to-make-rpm-packages</link>
		<comments>http://www.asbjornriedel.com/unix-administration/how-to-make-rpm-packages#comments</comments>
		<pubDate>Sun, 04 May 2008 18:57:41 +0000</pubDate>
		<dc:creator>Asbjorn</dc:creator>
				<category><![CDATA[Unix Administration]]></category>

		<guid isPermaLink="false">http://www.asbjornriedel.com/?p=132</guid>
		<description><![CDATA[When working with RedHat Linux systems the best way to ensure that you have the right software installed is by using RPM&#8217;s RPM is a package management system like Solaris packages. To create packages from source code some or all of the following steps would be needed. To set it up a build environment and [...]]]></description>
			<content:encoded><![CDATA[<p>When working with RedHat Linux systems the best way to ensure that you have the right software installed is by using RPM&#8217;s</p>
<p>RPM is a package management system like Solaris packages.</p>
<p>To create packages from source code some or all of the following steps would be needed.</p>
<p>To set it up a build environment and number of configuration files are needed.</p>
<p>First the build environment.</p>
<p><strong>cd /home/asbjorn<br />
mkdir myrpm<br />
cd rpm<br />
mkdir -p BUILD RPMS/i386 SOURCES SPECS SRPMS</strong></p>
<p>In earlier releases of RedHat a file .rpmrc was used.</p>
<p>Now rpmbuild uses the .rpmmacros for default values.</p>
<p>In the first two lines, information about the package creator is provided.</p>
<p>The _topdir line is included, so the package can be build as a user rather than as root.<br />
Do not build packages as root if you can avoid it.</p>
<p>The following lines provide references to the build environment.</p>
<p><strong>cd /home/asbjorn</strong></p>
<p><strong>vi .rpmmacros</strong></p>
<p><em>%packager      Asbjorn Riedel &lt;</em><a href="mailto:asbjorn@SOMEWEBSITE.com"><em>asbjorn@SOMEWEBSITE.com</em></a><em>&gt;<br />
%vendor        The name of the project</em></p>
<p><em>%_topdir       /home/asbjorn/myrpm</em></p>
<p><em>%{_topdir}/BUILD<br />
%{_topdir}/RPMS<br />
%{_topdir}/RPMS/i386<br />
%{_topdir}/SOURCES<br />
%{_topdir}/SPECS<br />
%{_topdir}/SRPMS<br />
</em></p>
<p>By defining the .spec file we can set up all the parameters needed for building packages of software delivered as tar files.</p>
<p>The %{_prefix} definition can be changed depending on the location where you want your package to be installed, example /opt, /usr or /usr/local. Just change the line with Prefix:  in it.</p>
<p><strong> vi myrpm/SPECS/testpackage.spec</strong></p>
<p><em>%define name testpackage<br />
%define version 0.0.1<br />
%define release 1</em></p>
<p><em>Summary: A test package for RedHat Linux<br />
Name: %{name}<br />
Version: %{version}<br />
Release: %{release}<br />
Source: </em><a href="http://www.picourl.com/testpackage/%{name}-%{version}.tar.gz"><em>http://www.picourl.com/testpackage/%{name}-%{version}.tar.gz</em></a><br />
<em>Vendor: Guess It Must Be Me<br />
URL: </em><a href="http://www.picourl.com/"><em>http://www.picourl.com/</em></a><br />
<em>License: None<br />
Group: System<br />
Prefix: %{_prefix}</em></p>
<p><em>%description<br />
This is a testpackage , specially made for testing</em></p>
<p><em>%package devel<br />
Summary: package with stuff to develop %{name}.<br />
Group: System<br />
Requires: %{name} = %{version}</em></p>
<p><em>%description devel<br />
The %{name}-devel testpackage contains stuff for building %{name}.</em></p>
<p><em>%prep<br />
%setup -q</em></p>
<p><em>%build<br />
make</em></p>
<p><em>%install<br />
rm -rf $RPM_BUILD_ROOT<br />
make DESTDIR=$RPM_BUILD_ROOT install</em></p>
<p><em>%clean<br />
rm -rf $RPM_BUILD_ROOT</em></p>
<p><em>%post -p /sbin/ldconfig</em></p>
<p><em>%postun -p /sbin/ldconfig</em></p>
<p><em>%files<br />
%defattr(-,root,root)<br />
%doc ReadMe<br />
%{_prefix}/lib/lib*.so.*</em></p>
<p><em>%files devel<br />
%defattr(-,root,root)<br />
%doc ReadMe<br />
%{_prefix}/bin/*<br />
%{_prefix}/include/*</em></p>
<p><em>%changelog<br />
* Thu Mar 27 2008 Asbjorn Riedel &lt;</em><a href="mailto:asbjorn@localhost"><em>asbjorn@localhost</em></a><em>&gt;<br />
- Initial spec file</em></p>
<p>The %install part contains the actual commands to build the software and it may need to be changed in your case.</p>
<p> </p>
<p>How to finally do the build &#8230;</p>
<p><strong>rpmbuild -ba SPECS/testpackage.specs</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.asbjornriedel.com/unix-administration/how-to-make-rpm-packages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Squid on FC 4.0</title>
		<link>http://www.asbjornriedel.com/unix-administration/how-to-install-squid-on-fc-40</link>
		<comments>http://www.asbjornriedel.com/unix-administration/how-to-install-squid-on-fc-40#comments</comments>
		<pubDate>Thu, 05 Jul 2007 16:17:10 +0000</pubDate>
		<dc:creator>Asbjorn</dc:creator>
				<category><![CDATA[Unix Administration]]></category>
		<category><![CDATA[squid on fedora core 4.0]]></category>

		<guid isPermaLink="false">http://www.asbjornriedel.com/?p=31</guid>
		<description><![CDATA[How to install Squid on FC 4.0 log in on box become root get the squid package yum install squid.i386 Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies &#8211;> Populating transaction set with selected packages. Please wait. &#8212;> Downloading header for squid to [...]]]></description>
			<content:encoded><![CDATA[<p>How to install Squid on FC 4.0</p>
<p>log in on box</p>
<p>become root</p>
<p>get the squid package</p>
<p>yum install squid.i386</p>
<p>Setting up Install Process<br />
Setting up repositories<br />
Reading repository metadata in from local files<br />
Parsing package install arguments<br />
Resolving Dependencies<br />
&#8211;> Populating transaction set with selected packages. Please wait.<br />
&#8212;> Downloading header for squid to pack into transaction set.<br />
squid-2.5.STABLE13-1.FC4. 100% |=========================| 164 kB    00:00<br />
&#8212;> Package squid.i386 7:2.5.STABLE13-1.FC4 set to be updated<br />
&#8211;> Running transaction check</p>
<p>Dependencies Resolved</p>
<p>==========================================================<br />
 Package                 Arch       Version          Repository        Size<br />
==========================================================<br />
Installing:<br />
 squid                   i386       7:2.5.STABLE13-1.FC4  updates-released  1.2 M</p>
<p>Transaction Summary<br />
==========================================================<br />
Install      1 Package(s)<br />
Update       0 Package(s)<br />
Remove       0 Package(s)<br />
Total download size: 1.2 M<br />
Is this ok [y/N]: y<br />
Downloading Packages:<br />
(1/1): squid-2.5.STABLE13 100% |===========| 1.2 MB    00:01<br />
Running Transaction Test<br />
Finished Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction<br />
  Installing: squid                        ########## [1/1]</p>
<p>Installed: squid.i386 7:2.5.STABLE13-1.FC4<br />
Complete!</p>
<p>vi /etc/squid/squid.conf</p>
<p>http_port 127.0.0.1:3128</p>
<p>Configure firefox.  Set the proxy to 127.0.0.1 + set the port to 3128</p>
<p>Configure putty</p>
<p>set up a tunnel which will be setup when connecting with ssh to the server</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asbjornriedel.com/unix-administration/how-to-install-squid-on-fc-40/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Configure Hardware Mirroring on Sun T2000</title>
		<link>http://www.asbjornriedel.com/unix-administration/how-to-configure-hardware-mirroring-on-sun-t2000</link>
		<comments>http://www.asbjornriedel.com/unix-administration/how-to-configure-hardware-mirroring-on-sun-t2000#comments</comments>
		<pubDate>Wed, 18 Apr 2007 12:50:34 +0000</pubDate>
		<dc:creator>Asbjorn</dc:creator>
				<category><![CDATA[Unix Administration]]></category>
		<category><![CDATA[Configure Hardware Mirroring on Sun T2000]]></category>

		<guid isPermaLink="false">http://www.asbjornriedel.com/?p=30</guid>
		<description><![CDATA[How To Configure Hardware Mirroring on Sun T2000 You need a boot server or boot of a CDrom boot net -s After the client has booted, run the following command: bash; export NOINUSE_CHECK=1 Run the following command to create the RAID volumes: raidctl -c c0t0d0 c0t1d0 Answer &#8220;yes&#8221; to the prompt. Wait for the disks [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How To Configure Hardware Mirroring on Sun T2000</strong></p>
<p>You need a boot server or boot of a CDrom</p>
<p>boot net -s</p>
<p>After the client has booted, run the following command:</p>
<p>bash; export NOINUSE_CHECK=1</p>
<p>Run the following command to create the RAID volumes:</p>
<p>raidctl -c c0t0d0 c0t1d0</p>
<p>Answer &#8220;yes&#8221; to the prompt.</p>
<p>Wait for the disks to complete syncing. To verify success, the raidctl command with no options should return the following:</p>
<p># raidctl<br />
RAID Volume RAID RAID Disk<br />
Volume Type Status Disk Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
c0t0d0 IM OK c0t0d0 OK<br />
c0t1d0 OK</p>
<p>Using the format utility, select the volume, define the type as ⮮Auto configure⮝, and label the volume as follows:</p>
<p># format<br />
Searching for disks&#8230;done</p>
<p>AVAILABLE DISK SELECTIONS:<br />
0. c0t0d0<br />
/pci@780/pci@0/pci@9/scsi@0/sd@0,0<br />
Specify disk (enter its number): 0<br />
selecting c0t0d0<br />
[disk formatted]</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&gt; type</p>
<p>AVAILABLE DRIVE TYPES:<br />
0. Auto configure<br />
1. Quantum ProDrive 80S<br />
2. Quantum ProDrive 105S<br />
3. CDC Wren IV 94171-344<br />
4. SUN0104<br />
5. SUN0207<br />
6. SUN0327<br />
7. SUN0340<br />
8. SUN0424<br />
9. SUN0535<br />
10. SUN0669<br />
11. SUN1.0G<br />
12. SUN1.05<br />
13. SUN1.3G<br />
14. SUN2.1G<br />
15. SUN2.9G<br />
16. Zip 100<br />
17. Zip 250<br />
18. Peerless 10GB<br />
19. SUN72G<br />
20. other<br />
Specify disk type (enter its number)[19]: 0<br />
c0t0d0: configured with capacity of 68.00GB</p>
<p>selecting c0t0d0<br />
[disk formatted]<br />
format&gt; label<br />
Ready to label disk, continue? y</p>
<p>format&gt; quit<br />
#</p>
<p>Now build the server</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asbjornriedel.com/unix-administration/how-to-configure-hardware-mirroring-on-sun-t2000/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recovering T2000 ALOM Passwords</title>
		<link>http://www.asbjornriedel.com/unix-administration/recovering-t2000-alom-passwords</link>
		<comments>http://www.asbjornriedel.com/unix-administration/recovering-t2000-alom-passwords#comments</comments>
		<pubDate>Thu, 22 Mar 2007 15:46:53 +0000</pubDate>
		<dc:creator>Asbjorn</dc:creator>
				<category><![CDATA[Unix Administration]]></category>
		<category><![CDATA[Recovering T2000 ALOM Passwords]]></category>

		<guid isPermaLink="false">http://www.asbjornriedel.com/?p=29</guid>
		<description><![CDATA[Procedure as below for reseting the T2000 ALOM password due to no scadm command available for the sun4v architecture in Solaris 10. Recovering T2000 ALOM Passwords For security reasons, this procedure is available only while accessing the system directly through the serial port. The procedure resets all ALOM NVRAM settings. To Recover Your ALOM Passwords: [...]]]></description>
			<content:encoded><![CDATA[<p>Procedure as below for reseting the T2000 ALOM password due to no scadm command available for the sun4v architecture in Solaris 10.</p>
<p>Recovering T2000 ALOM Passwords</p>
<p>For security reasons, this procedure is available only while accessing the system<br />
directly through the serial port. The procedure resets all ALOM NVRAM settings.</p>
<p>To Recover Your ALOM Passwords:<br />
1. Connect to the ALOM serial port.</p>
<p>2. Power down the Sun Fire T2000 Server.</p>
<p>Remove the power cords from both power supplies. Wait several seconds for power<br />
to discharge before reinserting the cords.</p>
<p>3. Press the Escape key during ALOM boot when the following text is displayed on<br />
the console:</p>
<p>Boot Sector FLASH CRC Test<br />
Boot Sector FLASH CRC Test, PASSED.</p>
<p>Return to Boot Monitor for Handshake<br />
After pressing the Escape key, the ALOM boot escape menu is printed:<br />
ALOM Menu</p>
<p>e &#8211; Erase ALOM NVRAM.<br />
m &#8211; Run POST Menu.<br />
R &#8211; Reset ALOM.<br />
r &#8211; Return to bootmon.<br />
Your selection:</p>
<p>4. Enter e to erase the ALOM NVRAM.</p>
<p>Your selection: e<br />
ALOM NVRAM erased.</p>
<p>ALOM Menu</p>
<p>e &#8211; Erase ALOM NVRAM.<br />
m &#8211; Run POST Menu.<br />
R &#8211; Reset ALOM.<br />
r &#8211; Return to bootmon.<br />
Your selection:<br />
5. Enter r to return to the ALOM boot process.<br />
Your selection: r</p>
<p>ALOM POST 1.0<br />
Status = 00007fff</p>
<p>ALOM then boots and resets all NVRAM settings. You are automatically logged on<br />
as user admin with no password and no permissions. All ALOM NVRAM settings<br />
are reset to the factory defaults.</p>
<p>BTW: Make sure place the following lines in your /etc/system file for Solaris 10 which is for mandatory T2000 support.</p>
<p>* Begin tuning recommended for T2000<br />
*<br />
set pcie:pcie_aer_ce_mask=0&#215;1<br />
*<br />
set autoup=900<br />
set tune_t_fsflushr=1<br />
set rlim_fd_max=260000<br />
set rlim_fd_cur=260000<br />
set sq_max_size=100<br />
set ipge:ipge_tx_ring_size=2048<br />
set ipge:ipge_srv_fifo_depth=16000<br />
set ipge:ipge_reclaim_pending=32<br />
set ipge:ipge_bcopy_thresh=512<br />
set ipge:ipge_dvma_thresh=1<br />
set ip:ip_squeue_fanout=1<br />
set ipge:ipge_tx_syncq=1<br />
*<br />
set segkmem_lpsize=0&#215;400000<br />
* End tuning recommended for T2000</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asbjornriedel.com/unix-administration/recovering-t2000-alom-passwords/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Syslog Logging Of SSH Access</title>
		<link>http://www.asbjornriedel.com/unix-administration/enable-syslog-logging-of-ssh-access</link>
		<comments>http://www.asbjornriedel.com/unix-administration/enable-syslog-logging-of-ssh-access#comments</comments>
		<pubDate>Tue, 12 Dec 2006 15:14:46 +0000</pubDate>
		<dc:creator>Asbjorn</dc:creator>
				<category><![CDATA[Unix Administration]]></category>

		<guid isPermaLink="false">http://www.asbjornriedel.com/?p=27</guid>
		<description><![CDATA[These are the steps to enable logging of sshd on Solaris 8 Will probably work on 9 and 10, though the restart of syslog in 10 is different. Add one line to syslog configuration file vi /etc/syslog.conf auth.info /var/log/sshd.log Create the log file touch /var/log/sshd.log Enable syslog in the sshd_config (uncomment line) vi /etc/ssh/sshd_config SyslogFacility [...]]]></description>
			<content:encoded><![CDATA[<p>These are the steps to enable logging of sshd on Solaris 8<br />
Will probably work on 9 and 10, though the restart of syslog in 10 is different.</p>
<p><strong>Add one line to syslog configuration file</strong><br />
vi /etc/syslog.conf</p>
<p>auth.info /var/log/sshd.log</p>
<p><strong>Create the log file</strong><br />
touch /var/log/sshd.log</p>
<p><strong>Enable syslog in the sshd_config (uncomment line)</strong><br />
vi /etc/ssh/sshd_config</p>
<p>SyslogFacility AUTH<br />
LogLevel INFO</p>
<p><strong>Restart syslogd</strong></p>
<p>/etc/init.d/syslog stop<br />
/etc/init.d/syslog start</p>
<p>Login and check that there is a new entry in /var/log/sshd.log</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asbjornriedel.com/unix-administration/enable-syslog-logging-of-ssh-access/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating ZFS filesystem on Solaris 10, x86</title>
		<link>http://www.asbjornriedel.com/unix-administration/creating-zfs-filesystem-on-solaris-10-x86</link>
		<comments>http://www.asbjornriedel.com/unix-administration/creating-zfs-filesystem-on-solaris-10-x86#comments</comments>
		<pubDate>Tue, 21 Nov 2006 14:43:53 +0000</pubDate>
		<dc:creator>Asbjorn</dc:creator>
				<category><![CDATA[Unix Administration]]></category>

		<guid isPermaLink="false">http://www.asbjornriedel.com/?p=21</guid>
		<description><![CDATA[Redid the installation of Solaris 10 on the X4200 patched everything Here is the process for creating the filesystem (It will be expanded when I get more disks) bash-3.00# zpool create pool c0t0d0s7 c0t1d0s7 invalid vdev specification use &#8216;-f&#8217; to override the following errors: /dev/dsk/c0t0d0s7 is currently mounted on /export/home. Please see umount(1M). bash-3.00# zpool [...]]]></description>
			<content:encoded><![CDATA[<p>Redid the installation of Solaris 10 on the X4200<br />
patched everything<br />
Here is the process for creating the filesystem<br />
(It will be expanded when I get more disks)</p>
<p>bash-3.00# zpool create pool c0t0d0s7 c0t1d0s7<br />
invalid vdev specification<br />
use &#8216;-f&#8217; to override the following errors:<br />
/dev/dsk/c0t0d0s7 is currently mounted on /export/home. Please see umount(1M).<br />
bash-3.00# zpool create pool c0t0d0s7 c0t1d0s7<br />
bash-3.00# umount /export/home<br />
&#8220;/etc/vfstab&#8221; 12 lines, 424 characters<br />
#device         device          mount           FS      fsck    mount   mount<br />
#to mount       to fsck         point           type    pass    at boot options<br />
#<br />
fd      &#8211;       /dev/fd fd      &#8211;       no      -<br />
/proc   &#8211;       /proc   proc    &#8211;       no      -<br />
/dev/dsk/c0t0d0s1       &#8211;       &#8211;       swap    &#8211;       no      -<br />
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no<br />
-<br />
#/dev/dsk/c0t0d0s7      /dev/rdsk/c0t0d0s7      /export/home    ufs     2<br />
yes     -<br />
/devices        &#8211;       /devices        devfs   &#8211;       no      -<br />
ctfs    &#8211;       /system/contract        ctfs    &#8211;       no      -<br />
objfs   &#8211;       /system/object  objfs   &#8211;       no      -<br />
swap    &#8211;       /tmp    tmpfs   &#8211;       yes     -<br />
~<br />
&#8220;/etc/vfstab&#8221; 12 lines, 425 characters<br />
bash-3.00# zpool create pool c0t0d0s7 c0t1d0s7<br />
invalid vdev specification<br />
use &#8216;-f&#8217; to override the following errors:<br />
/dev/dsk/c0t0d0s7 contains a ufs filesystem.<br />
bash-3.00# zpool create -f pool c0t0d0s7 c0t1d0s7<br />
bash-3.00# zpool list<br />
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT<br />
pool                    130G     80K    130G     0%  ONLINE     -</p>
<p>bash-3.00# zfs create export/home<br />
cannot create &#8216;export/home&#8217;: no such pool &#8216;export&#8217;<br />
bash-3.00# zfs create pool/home<br />
bash-3.00# zfs list<br />
NAME                   USED  AVAIL  REFER  MOUNTPOINT<br />
pool                   107K   128G  25.5K  /pool<br />
pool/home             24.5K   128G  24.5K  /pool/home<br />
bash-3.00# cd /pool/home</p>
<p>That was easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asbjornriedel.com/unix-administration/creating-zfs-filesystem-on-solaris-10-x86/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing ZFS on Solaris 10, x86</title>
		<link>http://www.asbjornriedel.com/unix-administration/installing-zfs-on-solaris-10-x86</link>
		<comments>http://www.asbjornriedel.com/unix-administration/installing-zfs-on-solaris-10-x86#comments</comments>
		<pubDate>Mon, 20 Nov 2006 10:44:30 +0000</pubDate>
		<dc:creator>Asbjorn</dc:creator>
				<category><![CDATA[Unix Administration]]></category>

		<guid isPermaLink="false">http://www.asbjornriedel.com/?p=19</guid>
		<description><![CDATA[The web has many entries on how to install ZFS and here is the commands I have used. The machine is a X4200 with (for now) two internal disks. I need to use this server for Perforce (versioning control) software and need a lot more diskspace. Create first a pool of all available diskspace. In [...]]]></description>
			<content:encoded><![CDATA[<p>The web has many entries on how to install ZFS and here is the commands I have used.</p>
<p>The machine is a X4200 with (for now) two internal disks.</p>
<p>I need to use this server for Perforce (versioning control) software and need a lot more diskspace.</p>
<p>Create first a pool of all available diskspace. In this case the existing /export/home which was created during installation will be used as well.</p>
<p>bash-3.00# <strong>umount /export/home</strong><br />
bash-3.00# <strong>zpool create -f perforcepool c0t0d0s7</strong><br />
invalid vdev specification<br />
the following errors must be manually repaired:<br />
/dev/dsk/c0t0d0s7 is normally mounted on /export/home according to /etc/vfstab. Please remove this entry to use this device.</p>
<p>So remove the entry in /etc/vfstab and try again</p>
<p>bash-3.00# zpool create -f perforcepool c0t0d0s7<br />
bash-3.00#</p>
<p>Success!!!</p>
<p>There is one extra disk, so lets add that one.</p>
<p>Here is the outputr from the format command.</p>
<p>bash-3.00# format<br />
Searching for disks&#8230;done</p>
<p>AVAILABLE DISK SELECTIONS:<br />
       0. c0t0d0 <DEFAULT cyl 8908 alt 2 hd 255 sec 63><br />
          /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@0,0<br />
       1. c0t1d0 <DEFAULT cyl 8921 alt 2 hd 255 sec 63><br />
          /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@1,0<br />
Specify disk (enter its number): 0<br />
selecting c0t0d0<br />
[disk formatted]<br />
Warning: Current Disk has mounted partitions.<br />
/dev/dsk/c0t0d0s0 is currently mounted on /. Please see umount(1M).<br />
/dev/dsk/c0t0d0s1 is currently used by swap. Please see swap(1M).<br />
/dev/dsk/c0t0d0s3 is currently mounted on /metadb1. Please see umount(1M).<br />
q/dev/dsk/c0t0d0s4 is currently mounted on /metadb2. Please see umount(1M).<br />
/dev/dsk/c0t0d0s7 is part of active ZFS pool perforcepool. Please see zpool(1M).</p>
<p>So the second disk is c0t1d0</p>
<p>Can we just add the  s2  (whole disk) ?</p>
<p>bash-3.00# zpool add perforcepool c0t1d0s2<br />
invalid vdev specification<br />
use &#8216;-f&#8217; to override the following errors:<br />
/dev/dsk/c0t1d0s2 overlaps with /dev/dsk/c0t1d0s7</p>
<p>Argh! so during installation the hardware RAID was choosen.<br />
My bad! But it was first time I installed a X4200. Well, thats my excuse anyway.</p>
<p>So back to the drawing board. Maybe I have to install again, which is a pain since I can not set up a jumpstart server and have to install everything with the CD&#8217;s.</p>
<p>Whatever.</p>
<p>More to some in later posts.</p>
<p>Asbjorn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asbjornriedel.com/unix-administration/installing-zfs-on-solaris-10-x86/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
