From owner-freebsd-questions@FreeBSD.ORG Sun Dec 11 20:18:12 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2D3D16A41F for ; Sun, 11 Dec 2005 20:18:12 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82E2E43D64 for ; Sun, 11 Dec 2005 20:18:11 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by xproxy.gmail.com with SMTP id s8so964167wxc for ; Sun, 11 Dec 2005 12:18:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=q7pdtx285g+gBTkIs7R0nvldEJ6F4QXspzQ8sBToeSwQtu9SbO11zpcmn7a2xBcJg0pRSwQXkyPK56veqyj8nECQsEqCenkY4Wpyp0DHxzpb9Vvh+xT6Sao520FuOq9X7A2uMcZD8gqCX8TDUKpkVsuOjbqVX7KQag0n50DOR/Y= Received: by 10.70.46.17 with SMTP id t17mr8219680wxt; Sun, 11 Dec 2005 12:18:10 -0800 (PST) Received: from ringworm.mechee.com ( [71.102.14.129]) by mx.gmail.com with ESMTP id i12sm5133515wxd.2005.12.11.12.18.09; Sun, 11 Dec 2005 12:18:09 -0800 (PST) From: "Michael C. Shultz" To: freebsd-questions@freebsd.org, robert@webtent.com Date: Sun, 11 Dec 2005 12:18:05 -0800 User-Agent: KMail/1.8.3 References: <439C8442.4070407@webtent.net> In-Reply-To: <439C8442.4070407@webtent.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512111218.06182.ringworm01@gmail.com> Cc: Subject: Re: Downgrade a port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 20:18:13 -0000 On Sunday 11 December 2005 11:55, Robert Fitzpatrick wrote: > Well, still haven't solved my problem with reaching kern.openfiles limit > since upgrading several packages. I posted that last week and received > some ideas. The /var had several problems, so I went to single user mode > this weekend and cleaned it up, all other parts clean. So, I am now > considering downgrading ports that were upgraded in an attempt to solve > the issue. Stopping and starting Postfix will relieve the issue, if done > every 10 minutes. I have tried 'make deinstall' and reinstalling > Postfix, but this was upgraded from 2.2.x to 2.2.6, very minor. So, > maybe the culprit is amavisd-new. Of all the packages that were upgraded > at the time the problem started, this one was the most major coming from > 2.2.1 to 2.3.3. All ports were upgraded via portupgrade, I can't seem to > find how to get 2.2.1 loaded in the ports system, can someone help? > > Also, if anyone has another idea on my core issue, I have used lsof and > most files open on the system are of the smtp and smtpd processes. > > -- > Robert Here is how you can bring all ports back to a prior day: make install sysutils/portmanager mv /usr/ports /usr/ports.CURRENT mkdir /usr/ports.PREVIOUSDATE ln -sv /usr/ports.PREVIOUSDATE /usr/ports ln -sv /usr/ports.CURRENT/distfiles /usr/ports.PREVIOUSDATE/distfiles below set what ever date you want *default host=cvsup17.FreeBSD.org *default base=/usr/local/etc/cvsup *default prefix=/usr *default release=cvs *default tag=. *default delete *default compress *default date=2005.11.08.12.00.00 ports-all run cvsup on the above file and you will have a back dated ports tree run portmanager -u -l -ip sysutils/portmanager (the -ip portmanager is so you don't set it back to a previous date) portmanager will backdate all installed ports to the date of your previousdate port tree. When you want to move forward just swap the links between ports.PREVIOUSDATE and ports.CURRENT then update with either portmanager or portupgrade if you prefer. -Mike