<?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>Unix Sysadmin &#187; Uncategorized</title>
	<atom:link href="http://www.sysadmindayph.com/blog/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sysadmindayph.com/blog</link>
	<description>SysAdmin Blog, TechTips and Reviews</description>
	<lastBuildDate>Fri, 27 Jan 2012 04:36:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Disable / Turn Off  Linux Password expiration / Aging</title>
		<link>http://www.sysadmindayph.com/blog/disable-turn-off-linux-password-expiration-aging/</link>
		<comments>http://www.sysadmindayph.com/blog/disable-turn-off-linux-password-expiration-aging/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 07:48:06 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=278</guid>
		<description><![CDATA[Yep, another personal reference and to think that I should know these stuff by heard. Well, most of the servers I am handling now are solaris and for particular example, it&#8217;s for Linux.. I guess there will be some similarities but for this post, we&#8217;ll take Redhat linux as an example: The command is chage &#8230; <a href="http://www.sysadmindayph.com/blog/disable-turn-off-linux-password-expiration-aging/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Yep, another personal reference and to think that I should know these stuff by heard. Well, most of the servers I am handling now are solaris and for particular example, it&#8217;s for Linux..</p>
<p>I guess there will be some similarities but for this post, we&#8217;ll take Redhat linux as an example:</p>
<p>The command is chage (looks like a misspelled &#8216;change&#8217; right? It&#8217;s actually &#8220;Change&#8221; &#8220;Age&#8221;)</p>
<p>/etc/shadow stores actual password in encrypted format for user’s account with additional properties related to user password.</p>
<p>The password expiration information for a user is contained in the last 6 fields. Password expiration for a select user can be disabled by editing the /etc/shadow file</p>
<p>However I recommend using chage command. The chage command changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his/her password.</p>
<p>To list current aging type chage command as follows:</p>
<p># chage -l rg49945<br />
Minimum:        0<br />
Maximum:        99999<br />
Warning:        7<br />
Inactive:       -1<br />
Last Change:            Jun 07, 2011<br />
Password Expires:       Never<br />
Password Inactive:      Never<br />
Account Expires:        Never<br />
#<br />
# chage -l ct92623<br />
Minimum:        0<br />
Maximum:        99999<br />
Warning:        7<br />
Inactive:       -1<br />
Last Change:            Jun 07, 2011<br />
Password Expires:       Never<br />
Password Inactive:      Never<br />
Account Expires:        Never<br />
#<br />
# passwd rg49945<br />
Changing password for user rg49945.<br />
New password:<br />
Re-enter new password:<br />
Password changed.<br />
passwd: all authentication tokens updated successfully.<br />
#<br />
# passwd ct92623<br />
Changing password for user ct92623.<br />
New password:<br />
Re-enter new password:<br />
Password changed.<br />
passwd: all authentication tokens updated successfully.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/disable-turn-off-linux-password-expiration-aging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protect Your Users &#8211; Websites To Block From Your Network</title>
		<link>http://www.sysadmindayph.com/blog/protect-your-users-websites-to-block-from-your-network/</link>
		<comments>http://www.sysadmindayph.com/blog/protect-your-users-websites-to-block-from-your-network/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 00:10:43 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=271</guid>
		<description><![CDATA[As a System Administrator, one of our main responsibility if to protect our user from (themselves) internet sites that are not appropriate in the workplace. On this article, let&#8217;s enumerate some of the websites that needs to be blocked and should not even reach the company servers. TNAFlix Xhamster Redtube Tube8 Empflix Youjizz Jizzhut JizzOnline &#8230; <a href="http://www.sysadmindayph.com/blog/protect-your-users-websites-to-block-from-your-network/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>As a System Administrator, one of our main responsibility if to protect our user from (themselves) internet sites that are not appropriate in the workplace.</p>
<p>On this article, let&#8217;s enumerate some of the websites that needs to be blocked and should not even reach the company servers.</p>
<ul>
<li>TNAFlix</li>
<li>Xhamster</li>
<li>Redtube</li>
<li>Tube8</li>
<li>Empflix</li>
<li>Youjizz</li>
<li>Jizzhut</li>
<li>JizzOnline</li>
</ul>
<p>These are just some of them. I will update the list as I discover them by reading the logs.</p>
<p>Subscribe now and be informed of these kind of sites.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/protect-your-users-websites-to-block-from-your-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ufsdump &#8211; How To Backup Solaris/Linux Root Filesystem</title>
		<link>http://www.sysadmindayph.com/blog/ufsdump-how-to-backup-solarislinux-root-filesystem/</link>
		<comments>http://www.sysadmindayph.com/blog/ufsdump-how-to-backup-solarislinux-root-filesystem/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 01:53:56 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ufsdump]]></category>
		<category><![CDATA[ufsrestore]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=254</guid>
		<description><![CDATA[Alright, here&#8217;s how &#8211; usfsdump &#8211; How To Backup Solaris/Linux Root Filesystem. use ufsdump Say for example you have this: $ df -k / Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 673951 415497 197799 68% / $ df -k /CMS Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t8d0s0 35009161 32305691 2353379 94% /CMS $ &#8230; <a href="http://www.sysadmindayph.com/blog/ufsdump-how-to-backup-solarislinux-root-filesystem/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Alright, here&#8217;s how &#8211; usfsdump &#8211; How To Backup Solaris/Linux Root Filesystem. use ufsdump</p>
<p>Say for example you have this:</p>
<p>$ df -k /<br />
Filesystem            kbytes    used   avail capacity  Mounted on<br />
/dev/dsk/c0t0d0s0     673951  415497  197799    68%    /<br />
$ df -k /CMS<br />
Filesystem            kbytes    used   avail capacity  Mounted on<br />
/dev/dsk/c0t8d0s0    35009161 32305691 2353379    94%    /CMS<br />
$ </p>
<p>yeah, the /CMS file system is almost full, but I think it can still accomodate a 674MB root filesystem from the slice /dev/dsk/c0t0d0s0, right?</p>
<p>Anyway, not sure if the <a href="http://clip.dia.fi.upm.es/~alopez/solaris/sun-managers3/0087.html">2GM limit</a> is applicable to Solaris 8,9 or 10 but since this example is less than 1GB, we are ok to proceed.</p>
<p>myserver# cd /CMS<br />
myserver# ufsdump -f dumpfile /dev/dsk/c0t0d0s0<br />
DUMP: Date of this level 0 dump: Tue Jul 20 16:41:50 2004<br />
DUMP: Date of last level 0 dump: the epoch<br />
DUMP: Dumping /dev/rdsk/c0t0d0s0 (myserver:/) to dumpfile.<br />
DUMP: Mapping (Pass I) [regular files]<br />
DUMP: Mapping (Pass II) [directories]<br />
DUMP: Writing 32 Kilobyte records<br />
DUMP: Estimated 366 blocks (183KB).<br />
DUMP: Dumping (Pass III) [directories]<br />
DUMP: Dumping (Pass IV) [regular files]<br />
DUMP: 318 blocks (159KB) on 1 volume at 963 KB/sec<br />
DUMP: DUMP IS DONE<br />
krypton# ls -l<br />
total 340<br />
-rw&#8212;&#8212;- 1 root other 163840 Jul 20 16:41 dumpfile<br />
-rw-r&#8211;r&#8211; 1 haefnr2 instrume 11 Jul 20 16:38 test1<br />
-rw-r&#8211;r&#8211; 1 haefnr2 instrume 21 Jul 20 16:38 test2<br />
krypton# file dumpfile<br />
dumpfile: ufsdump archive file</p>
<p>ufsrestore should do the trick in recovering the system.. hopefully</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/ufsdump-how-to-backup-solarislinux-root-filesystem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Restore Root (and /usr/) rfile system Solaris- restoresymtable &#8211;</title>
		<link>http://www.sysadmindayph.com/blog/how-to-restore-root-and-usr-rfile-system-solaris-restoresymtable/</link>
		<comments>http://www.sysadmindayph.com/blog/how-to-restore-root-and-usr-rfile-system-solaris-restoresymtable/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 13:57:53 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=234</guid>
		<description><![CDATA[Sun Solaris &#8211; Restoring root file system (/) &#8211; Solaris 9, Solaris 10 provides steps we need to follow to restore the root file system (/ system) in SPARC and x86 (intel) machines. 1) Log in as root user. It is a security practice to login as normal user and perform an su to take &#8230; <a href="http://www.sysadmindayph.com/blog/how-to-restore-root-and-usr-rfile-system-solaris-restoresymtable/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Sun Solaris &#8211; Restoring root file system (/) &#8211; Solaris 9, Solaris 10 provides steps we need to follow to restore the root file system (/ system) in SPARC and x86 (intel) machines.<br />
1) Log in as root user. It is a security practice to login as normal user and perform an su to take root user (super user) role.<br />
2) Appearance of # prompt is an indication that the user is root<br />
3) Use who -a command to get information about current user<br />
4) When / (root filesystem) is lost because of disk failure. In this case we boot from CD or from the network.<br />
5) Add a new system disk to the system on which we want to restore the root (/) file system<br />
6) Create a file system using the command :<br />
newfs /dev/rdsk/partitionname<br />
7) Check the new file system with teh fsck command :<br />
fsck /dev/rdsk/partitionname<br />
 <img src='http://www.sysadmindayph.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Mount the filesystem on a temporary mount point :<br />
mount /dev/dsk/devicename /mnt<br />
9) Change to the mount directory :<br />
cd /mnt<br />
10) Write protect the tape so that we can&#8217;t accidentally overwrite it. This is an optional but important step<br />
11) Restore the root file system (/) by loading the first volume of the appropriate dump level tape into the tape drive. The appropriate dump level is the lowest dump level of all the tapes that need to be restored. Use the following command :<br />
ufsrestore -rf /dev/rmt/n<br />
12) Remove the tape and repeat the step 11 if there is more than one tape for the same level<br />
13) Repeat teh step 11 and 12 with next ddump levels. Always begin with the lowest dump level and use highest ump level tape<br />
14) Verify that file system has been restored :<br />
la<br />
15) Delete the restoresymtable file which is created and used by the ufsrestore utility :<br />
rm restoresymtable<br />
16) Change to the root directory (/) and unmount the newly restored file system<br />
cd /<br />
umount /mnt<br />
17) Check the newly restored file system for consistency :<br />
fsck /dev/rdsk/devicename<br />
18) Create the boot blocks to restore the root file system :<br />
installboot /usr/platform/sun4u/lib/fs/ufs/bootblk /dev/rdsk/devicename &#8212; SPARC system<br />
installboot /usr/platform/`uname -i`/lib/fs/ufs/pboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/devicename &#8212; x86 system<br />
19) Remove teh last backup tape, and insert a new tape onto which we can write. Make a dump level 0 backup of the newly restored system by issuing the following command :<br />
ufsdump 0ucf /dev/rmt/n /dev/rdsk/deviceName<br />
This step is needed because ufsrestore repositions the files and changes the inode allocations &#8211; the old backup will not truly represent the newly restored file system<br />
20) Reboot the system :<br />
#reboot (or)<br />
# init 6<br />
System gets rebooted and newly restored file systems are ready to be used.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/how-to-restore-root-and-usr-rfile-system-solaris-restoresymtable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solutions for Solaris SVM Needs Maintenance and Last Erred status</title>
		<link>http://www.sysadmindayph.com/blog/solutions-for-solaris-svm-needs-maintenance-and-last-erred-status/</link>
		<comments>http://www.sysadmindayph.com/blog/solutions-for-solaris-svm-needs-maintenance-and-last-erred-status/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 02:36:55 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[kernel patch]]></category>
		<category><![CDATA[mirror disk]]></category>
		<category><![CDATA[needs maintenance]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[solaris patch]]></category>
		<category><![CDATA[svm]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=227</guid>
		<description><![CDATA[This post is because while patching a Solaris 10 server with patch level Generic_142900-02 to Generic_142900-13.. There&#8217;s a need maintenance error on one of the sub mirror: When a slice in a mirror or RAID5 metadevice device experiences errors, DiskSuite puts the slice in the &#8220;Maintenance&#8221; state. No further reads or writes are performed to &#8230; <a href="http://www.sysadmindayph.com/blog/solutions-for-solaris-svm-needs-maintenance-and-last-erred-status/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>This post is because while patching a Solaris 10 server with patch level Generic_142900-02 to Generic_142900-13.. There&#8217;s a need maintenance error on one of the sub mirror:</p>
<p>When a slice in a mirror or RAID5 metadevice device experiences errors,<br />
DiskSuite puts the slice in the &#8220;Maintenance&#8221; state. No further reads or<br />
writes are performed to a slice in the &#8220;Maintenance&#8221; state. Subsequent<br />
errors on other slices in the same metadevice are handled differently,<br />
depending on the type of the metadevice.</p>
<p>A mirror may be able to tolerate many slices in the &#8220;Maintenance&#8221; state and still be read from and written to. A RAID5 metadevice, by definition, can only tolerate a single slice in the &#8220;Maintenance&#8221; state. When either a mirror or RAID5 metadevice has a slice in the &#8220;Last Erred&#8221; state, I/O is still attempted to the slice marked &#8220;Last Erred&#8221;. This is because a &#8220;Last Erred&#8221; slice contains the last good copy of data from DiskSuite&#8217;s point of view.</p>
<p><span id="more-227"></span><br />
With a slice in the &#8220;Last Erred&#8221; state, metadevice behaves like a normal<br />
device (disk) and returns I/O errors to an application. Usually, at this<br />
point some data has been lost.<br />
Always replace slices in the &#8220;Maintenance&#8221; state, followed by those in the<br />
&#8220;Last Erred&#8221; state. After a slice is replaced and resynched, use the metastat<br />
command to verify its state, then validate data to make sure it is good.<br />
Here are the specifics for Mirrors and RAID5 devices:<br />
1. Mirrors<br />
If slices are in the &#8220;Maintenance&#8221; state, no data has been lost. You can<br />
safely replace or enable the slices in any order. If a slice is in the &#8220;Last<br />
Erred&#8221; state, you cannot replace it until you first replace all the other<br />
mirrored slices in the &#8220;Maintenance&#8221; state. Replacing or enabling a slice in<br />
the &#8220;Last Erred&#8221; state usually means that some data has been lost. Be sure<br />
to validate the data on the mirror after repairing it.<br />
2. RAID5 metadevices<br />
A RAID5 metadevice can tolerate a single slice failure. You can safely<br />
replace a single slice in the &#8220;Maintenance&#8221; state without losing data. If<br />
an error on another slice occurs, it is put into the &#8220;Last Erred&#8221; state. At<br />
this point, the RAID5 metadevice is a read-only device; you need to perform<br />
some type of error recovery so that the state of the RAID5 metadevice is<br />
non-errored and the possibility of data loss is reduced. If a RAID5<br />
metadevice reaches a &#8220;Last Erred&#8221; state, there is a good chance it has<br />
lost data. Be sure to validate the data on the RAID5 metadevice after<br />
repairing it.<br />
How to remove &#8220;maintenance&#8221; and &#8220;last erred&#8221; example, In this point maybe pay attention<br />
in some case The &#8220;lost Erred&#8221; sub-mirror side have contained &#8220;maintenance&#8221; and &#8220;Okey&#8221; state</p>
<p>Metastat gives :<br />
d0: Mirror<br />
Submirror 0: d10<br />
State: Needs maintenance<br />
Submirror 1: d20<br />
State: Needs maintenance<br />
Pass: 1<br />
Read option: roundrobin (default)<br />
Write option: parallel (default)<br />
Size: 8395200 blocksd10: Submirror of d0<br />
State: Needs maintenance<br />
Invoke: after replacing &#8220;Maintenance&#8221; components:<br />
metareplace d0 c1t0d0s0<br />
Size: 8395200 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t0d0s0 0 No Last Erred<br />
d20: Submirror of d0<br />
State: Needs maintenance<br />
Invoke: metareplace d0 c1t1d0s0<br />
Size: 8395200 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t1d0s0 0 No Maintenance<br />
d1: Mirror<br />
Submirror 0: d11<br />
State: Okay<br />
Submirror 1: d21<br />
State: Okay<br />
Pass: 1<br />
Read option: roundrobin (default)<br />
Write option: parallel (default)<br />
Size: 8395200 blocksd11: Submirror of d1<br />
State: Okay<br />
Size: 8395200 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t0d0s1 0 No Okay<br />
d21: Submirror of d1<br />
State: Okay<br />
Size: 8395200 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t1d0s1 0 No Okay<br />
d4: Mirror<br />
Submirror 0: d14<br />
State: Needs maintenance<br />
Submirror 1: d24<br />
State: Needs maintenance<br />
Pass: 1<br />
Read option: roundrobin (default)<br />
Write option: parallel (default)<br />
Size: 4202688 blocksd14: Submirror of d4<br />
State: Needs maintenance<br />
Invoke: after replacing &#8220;Maintenance&#8221; components:<br />
metareplace d4 c1t0d0s4<br />
Size: 4202688 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t0d0s4 0 No Last Erred<br />
d24: Submirror of d4<br />
State: Needs maintenance<br />
Invoke: metareplace d4 c1t1d0s4<br />
Size: 4202688 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t1d0s4 0 No Maintenance<br />
d5: Mirror<br />
Submirror 0: d15<br />
State: Okay<br />
Submirror 1: d25<br />
State: Okay<br />
Pass: 1<br />
Read option: roundrobin (default)<br />
Write option: parallel (default)<br />
Size: 62918208 blocksd15: Submirror of d5<br />
State: Okay<br />
Size: 62918208 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t0d0s5 0 No Okay<br />
d25: Submirror of d5<br />
State: Okay<br />
Size: 62918208 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t1d0s5 0 No Okay<br />
d6: Mirror<br />
Submirror 0: d16<br />
State: Needs maintenance<br />
Submirror 1: d26<br />
State: Okay<br />
Pass: 1<br />
Read option: roundrobin (default)<br />
Write option: parallel (default)<br />
Size: 52436928 blocksd16: Submirror of d6<br />
State: Needs maintenance<br />
Invoke: metareplace d6 c1t0d0s6<br />
Size: 52436928 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t0d0s6 0 No Maintenance<br />
d26: Submirror of d6<br />
State: Okay<br />
Size: 52436928 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t1d0s6 0 No Okay<br />
d7: Mirror<br />
Submirror 0: d17<br />
State: Okay<br />
Submirror 1: d27<br />
State: Needs maintenance<br />
Pass: 1<br />
Read option: roundrobin (default)<br />
Write option: parallel (default)<br />
Size: 6970560 blocksd17: Submirror of d7<br />
State: Okay<br />
Size: 6970560 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t0d0s7 0 No Okay<br />
d27: Submirror of d7<br />
State: Needs maintenance<br />
Invoke: metareplace d7 c1t1d0s7<br />
Size: 6970560 blocks<br />
Stripe 0:<br />
Device Start Block Dbase State Hot Spare<br />
c1t1d0s7 0 No Maintenance<br />
-First dettach,delete master slice6 and resync with mirror side slice6,Because in this way the intact data only in mirror side:<br />
# metadetach d6 d16<br />
# metaclear d16<br />
# metainit d16 1 1 c1t0d0s6<br />
# metattach d6 d16<br />
- Wait for &#8220;Okay&#8221; status for the master slice6,<br />
- Then replace &#8220;Last erred&#8221; state disk before.<br />
Run &#8220;metadetach&#8221; to detach all the sub-mirrors on the mirror disk from<br />
their respective mirrors (see the following):<br />
[b]# metadetach -f [/b]<br />
NOTE: The &#8220;-f&#8221; option is not required if the metadevice is in an &#8220;okay&#8221;<br />
state.<br />
Then run metaclear to remove the configuration from the disk:<br />
[b]# metaclear [/b]<br />
# metadb -d c1t1d0s3<br />
# luxadm remove_device /dev/rdsk/c1t1d0s2 (physical remove disk when prompt to pull out disk)<br />
# devfsadm -C -c disk -v<br />
# luxadm insert_device /dev/rdsk/c1t1d0s2 (physical insert disk when prompt to pull in disk)<br />
# prtvtoc /dev/rdsk/c1t0d0s2 |fmthard -s &#8211; /dev/rdsk/c1t1d0s2<br />
# metadb -afc 3 c1t1d0s3<br />
Use &#8220;metainit&#8221; and &#8220;metattach&#8221; to re-create and attach those submirrors to<br />
the mirrors to start the resync:<br />
[b]# metainit 1 1 c#t#d#s#[/b]<br />
[b]# metattach [/b]<br />
When all slice resync are finished,Begin replace &#8220;Last Erred&#8221; master disk<br />
Run &#8220;metadetach&#8221; to detach all the sub-mirrors on the master disk from<br />
their respective mirrors (see the following):<br />
[b]# metadetach -f [/b]<br />
NOTE: The &#8220;-f&#8221; option is not required if the metadevice is in an &#8220;okay&#8221;<br />
state.<br />
Then run metaclear to remove the configuration from the disk:<br />
[b]# metaclear [/b]<br />
# metadb -d c1t1d0s3<br />
# luxadm remove_device /dev/rdsk/c1t0d0s2 (physical remove disk when prompt to pull out disk)<br />
# devfsadm -C -c disk -v<br />
# luxadm insert_device /dev/rdsk/c1t0d0s2 (physical insert disk when prompt to pull in disk)<br />
# prtvtoc /dev/rdsk/c1t1d0s2 |fmthard -s &#8211; /dev/rdsk/c1t0d0s2<br />
# metadb -afc 3 c1t0d0s3<br />
Use &#8220;metainit&#8221; and &#8220;metattach&#8221; to re-create and attach those submirrors to<br />
the mirrors to start the resync:<br />
[b]# metainit 1 1 c#t#d#s#[/b]<br />
[b]# metattach [/b]<br />
When all slice resync finished,the two sub-mirror is normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/solutions-for-solaris-svm-needs-maintenance-and-last-erred-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot find required executable /usr/bin/7za</title>
		<link>http://www.sysadmindayph.com/blog/cannot-find-required-executable-usrbin7za/</link>
		<comments>http://www.sysadmindayph.com/blog/cannot-find-required-executable-usrbin7za/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 04:59:47 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=201</guid>
		<description><![CDATA[The complete error actually is: Cannot find required executable /usr/bin/7za pkgadd: ERROR: class action script din not complete successfully That was the error message displaced when I tried installing two Sun packages as requested by a user, SUNWeu8os and SUNWeulof. Packages can be found in tge Solaris 10 disk release 5/08. When i tried installing &#8230; <a href="http://www.sysadmindayph.com/blog/cannot-find-required-executable-usrbin7za/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>The complete error actually is:</p>
<p>Cannot find required executable /usr/bin/7za<br />
pkgadd: ERROR: class action script din not complete successfully</p>
<p>That was the error message displaced when I tried installing two Sun packages as requested by a user, SUNWeu8os and SUNWeulof.</p>
<p>Packages can be found in tge Solaris 10 disk release 5/08. When i tried installing the package I got the error above.</p>
<p>There are two ways you can get that binary and one of them is by using the installation disk of Solaris 10 5/08.</p>
<p>Another one is by installing patch 137321-01 for sparc and 137322-01 for x86</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/cannot-find-required-executable-usrbin7za/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limesurvey PHPSurveyor</title>
		<link>http://www.sysadmindayph.com/blog/limesurvey-phpsurveyor/</link>
		<comments>http://www.sysadmindayph.com/blog/limesurvey-phpsurveyor/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 00:59:25 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Limesurvey]]></category>
		<category><![CDATA[phpsurveyor]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=190</guid>
		<description><![CDATA[LimeSurvey (formerly PHPSurveyor) is a Webapplication that interacts with MySQL, MSSQL, orPostgres to develop surveys, publish surveys, andcollect responses to surveys. Once a survey has been created, data can be inserted into the survey either by a &#8220;pretty&#8221; public screen which presents each question one at a time, or by a quick and nasty data &#8230; <a href="http://www.sysadmindayph.com/blog/limesurvey-phpsurveyor/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>LimeSurvey (formerly PHPSurveyor) is a Webapplication that interacts with MySQL, MSSQL, orPostgres to develop surveys, publish surveys, andcollect responses to surveys. </p>
<p>Once a survey has been created, data can be inserted into the survey either by a &#8220;pretty&#8221; public screen which presents each question one at a time, or by a quick and nasty data entry screen. It includes the capacity to generate individualized &#8220;tokens&#8221;, so that invitation can be issued to participants. It also has the capacity to set conditions on whether questions will display (branching), numerous question types, and a basic statistics function. Changes: A Malay translation was added, several minor bugs were fixed, and translations were updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/limesurvey-phpsurveyor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZFS Quotas and Reservations</title>
		<link>http://www.sysadmindayph.com/blog/zfs-quotas-and-reservations/</link>
		<comments>http://www.sysadmindayph.com/blog/zfs-quotas-and-reservations/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 12:25:47 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=171</guid>
		<description><![CDATA[Notes on ZFS quotas, reservations and others.. like adding up disk for the pool and creating pool altogether. First, create a pool using &#8216;zpool&#8216;. Then use &#8216;zfs&#8216; to make the filesystems. Creating Pool with zpool Create a pool called pool1. The -m is optional. If given, it specifies a mount point for zfs filesystems created &#8230; <a href="http://www.sysadmindayph.com/blog/zfs-quotas-and-reservations/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Notes on ZFS quotas, reservations and others.. like adding up disk for the pool and creating pool altogether.</p>
<p>First, create a pool using &#8216;<strong>zpool</strong>&#8216;. Then use &#8216;<strong>zfs</strong>&#8216; to make the filesystems.</p>
<p><strong>Creating Pool with zpool</strong></p>
<p>Create a pool called pool1. The -m is optional. If given, it specifies a mount point for zfs filesystems created from the specified pool. The mount point should be empty or nonexistant. If the -m argument is omitted, mount point is &#8220;/&#8221;. </p>
<p><span id="more-171"></span></p>
<blockquote><p>    <code><br />
# zpool create -m /export/data01 ALB mirror c2t0d0 c4t0d0<br />
# zpool status<br />
      pool: pool1<br />
      state: ONLINE<br />
      scrub: none requested<br />
      config:</p>
<p>            NAME        STATE     READ WRITE CKSUM<br />
            pool1       ONLINE       0     0     0<br />
              mirror    ONLINE       0     0     0<br />
                c2t0d0  ONLINE       0     0     0<br />
                c4t0d0  ONLINE       0     0     0</code>
</p></blockquote>
<p>http://www.mattzone.com/site/index.php?name=News&#038;file=article&#038;sid=3</p>
<p>http://dlc.sun.com/osol/docs/content/ZFSADMIN/gazvb.html</p>
<p>http://prefetch.net/blog/index.php/2006/12/26/adding-disks-to-zfs-pools/</p>
<p><strong>Creating ZFS filesystem from Pool</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/zfs-quotas-and-reservations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ld.so.1: cc: fatal: libpicl.so.1: open failed: No such file or directory</title>
		<link>http://www.sysadmindayph.com/blog/ldso1-cc-fatal-libpiclso1-open-failed-no-such-file-or-directory/</link>
		<comments>http://www.sysadmindayph.com/blog/ldso1-cc-fatal-libpiclso1-open-failed-no-such-file-or-directory/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 03:47:09 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=166</guid>
		<description><![CDATA[ld.so.1: cc: fatal: libpicl.so.1: open failed: No such file or directory &#8211; that&#8217;s the latest problem we encountered in installing Ruby on Rails&#8230; (well, not actually on Ruby but in some dependencies)&#8230; Last time we did the GlassFish webstack installation (just to get RoR working) because the Ruby in Coolstack was an old version Ruby &#8230; <a href="http://www.sysadmindayph.com/blog/ldso1-cc-fatal-libpiclso1-open-failed-no-such-file-or-directory/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p><strong>ld.so.1: cc: fatal: libpicl.so.1: open failed: No such file or directory</strong> &#8211; that&#8217;s the latest problem we encountered in installing Ruby on Rails&#8230; (well, not actually on Ruby but in some dependencies)&#8230;</p>
<p>Last time we did the GlassFish webstack installation (just to get RoR working) because the Ruby in Coolstack was an old version Ruby 1.8.6 something. </p>
<p>But as far as Ruby on Rails installation is concern, the <a href="http://www.sysadmindayph.com/blog/optimized-open-source-software-stack-cool-stack-131-final-release/">Optimized Open Source Software Stack (Cool Stack)</a> is working properly.. As well as the Glassfish installation.. The problem we&#8217;re getting is for some Gems that we&#8217;re trying to install (oracle gems and hobo and others)&#8230;</p>
<p>For this one, we&#8217;re trying to install the Oracle gem thing.. and it requires to compile something that needs CC.. we ended up installing Sun Studio 12.. (but I still believe gcc is a perfect alternative for cc).</p>
<p>Anyway, searching for &#8220;ld.so.1: cc: fatal: libpicl.so.1: open failed: No such file or directory&#8221; will give you unrelated websites (well, until this one gets indexed that is).. </p>
<p>As of this writing it only has 4 results:</p>
<p>What I did is i downloaded a Sun patch that contains the file and placed in my server same location:</p>
<p>Take this patch for example:</p>
<p>http://sunsolve.sun.com/search/document.do?assetkey=1-21-108528-29-1</p>
<p>libpicl.so.1 installs in /usr/lib/abi/abi_libpicl.so.1 , /usr/lib/abi/sparcv9/abi_libpicl.so.1, /usr/lib/libpicl.so.1</p>
<p>and others</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/ldso1-cc-fatal-libpiclso1-open-failed-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu New Release Ver. 9 Available for Download Free</title>
		<link>http://www.sysadmindayph.com/blog/ubuntu-new-release-ver-9-available-for-download-free/</link>
		<comments>http://www.sysadmindayph.com/blog/ubuntu-new-release-ver-9-available-for-download-free/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 02:31:25 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[jaunty jackalop]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[version 9]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=140</guid>
		<description><![CDATA[Just want to confirm my hunch that this Ubuntu 9 sites that is all over the internet is nothing but worthless, infoless, another junk spread in the internet.  But if you really want to download the new release or version of UBUNTU 9, there is a link in Review ninja you can go ahead and &#8230; <a href="http://www.sysadmindayph.com/blog/ubuntu-new-release-ver-9-available-for-download-free/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Just want to confirm my hunch that this<strong> Ubuntu 9</strong> sites that is all over the internet is nothing but worthless, infoless, another junk spread in the internet.  But if you really want to download the new release or version of <strong>UBUNTU 9</strong>, there is a link in Review ninja you can go ahead and check out&#8230;</p>
<p>Here&#8217;s the original article about <a title="ubuntu release 9" href="http://www.sysadmindayph.com/blog/ubuntu-new-release-ver-9-available-for-download-free/">Ubuntu and the newly released Ubuntu 9 </a>for both desktop and Server:</p>
<p><span id="more-140"></span></p>
<blockquote><p><a href="http://review-ninja.com">Tech Blog</a> &#8211; Canonical has announced the released of <strong>Ubuntu 9 Desktop Edition</strong>, today you can download  <span style="font-weight: bold;">Ubuntu 9</span> Jaunty Jackalope for free <a rel="nofollow" href="http://www.ubuntu.com/">here </a> support, also released simultaneously with Ubuntu 9 desktop was Ubuntu 9.04 Server Edition and Ubuntu 9.04 Netbook Remix (UNR).</p>
<p>According to Canonical&#8217;s press conference <strong>Ubuntu 9.04 Desktop Edition</strong> delivers a range of feature enhancements to improve the user experience, like Shorter boot speeds which would ensure faster access to computing environment, Enhanced suspend-and-resume features, Intelligent switching between <strong>Wi-Fi</strong> and <strong>3G environments</strong>, and more wireless devices and 3G cards, so check out the new <strong>Ubuntu 9</strong> and experience <strong>Linux power.</strong></p></blockquote>
<p>Hope the search engine (powered by Linux, apprently) understands this post and index this one as soon as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/ubuntu-new-release-ver-9-available-for-download-free/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

