🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.sun
Article #561

Re: [Aussie-sun] best way to move entire filesystems to a new disk?

#561
From: Jack Strangio
Date: Sun, 04 Dec 2005 08:43
28 lines
2266 bytes
Craig Dewick <cdewick@lios.apana.org.au> writes:
> 
> Hi everyone,
> 
> Under Solaris, what's the best way to move entire filesystems to a new disk? 

Unlesss the new filesystem is exactly the same (or very nearly) then dd is not
good. This is because it makes an exact  clone of the disk partition with the
included file system, so if sizes are fairly different then problems arise.

If you can initialise the new filesystem and then also mount the old
filsystem the best way is probably to 'cp -Rp'. You don't need to have the
root filesystem in use if you can use one of the 'live' distros whilst doing
the actual transfer. If you have any pipes or /dev's then cp can also run
into problems, so you probably shouldn't use this with /etc or /dev.

My preferred method is to use cpio. This has the advantage of preserving the
various pipes and /dev's, but you need enough space to have a temporary
holding place for the .cpio file. If the .cpio file is larger than 2 Gig then
you may need to 'cat' it through cpio when restoring it. If temporary space for
the .cpio file is low, then try storing and restoring a directory or two at a time.

hth,

Jack
-- 
Once, they feared you. Then they matched you. Now they are laughing
at you. Soon they will ignore you. You have lost.
Technical Details
Message-ID: <IqytL7.o7t@ozemail.com.au>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
References: <mailman.0.1133678262.578.aussie-sun@lios.apana.org.au>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d053,64d56af73efdbac
X-Google-Attributes: gid10d053,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
Newsgroups: aus.computers.sun
From: check@approved.hdr (Jack Strangio)
Subject: Re: [Aussie-sun] best way to move entire filesystems to a new disk?
Approved: jackstrangio__at__yahoo_com
X-Newsreader: Tass 3.6.4 (Gentoo Linux)
Organization: North Star Horizon Builders Club
Message-ID: <IqytL7.o7t@ozemail.com.au>
References: <mailman.0.1133678262.578.aussie-sun@lios.apana.org.au>
Date: Sun, 4 Dec 2005 08:43:55 GMT
Lines: 28
NNTP-Posting-Host: 203.214.119.139
X-Trace: 1133685844 per-qv1-newsreader-01.iinet.net.au 23334 203.214.119.139