9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] add new disk drives to fs.
@ 2001-04-23 12:03 forsyth
  0 siblings, 0 replies; 2+ messages in thread
From: forsyth @ 2001-04-23 12:03 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1840 bytes --]

i normally do something like this, which might be less work, and doesn't
require an intermediate copy of the file system (unless you'd like
the backup, which you might).  i was going to send this privately but
i'll post it to the list in case i've slipped up somewhere.

add the new discs to the file server, leaving the original one as well,
being sure to use distinct SCSI IDs.

create a new file system on the new devices, initialise it and set allow mode

	filsys newfs [w2w3]	# or whatever your configuration is for the new devices
	ream newfs			# be very careful to ream the right name!
	allow

now you've got access to both the original main and empty newfs
file systems at the same time from the cpu server or terminals.

copy from one to another, preserving permissions and ownership

	# mount existing file system on /n/boot so as to avoid copying files in /net and /dev(!)
	9fs boot

	# mount the destination file system on /n/tapefs (or some other name)
	mount -c /srv/boot /n/tapefs	newfs		# note the `newfs' argument to select other than `main'

you can do some test file creations, writes and removals on /n/tapefs.

	# copy the files, preserving permissions
	disk/mkfs -a -s /n/boot /lib/proto/allproto | disk/mkext -u -d /n/tapefs

in this last command, again be sure that /n/boot looks right and /n/tapefs was correctly
mounted from the file server, and that you've typed it in correctly
(and that what i gave you makes sense),
because you're in allow mode without a safety net.

then `halt' the file server, remove the old disc and enter config mode.
i'll use the same scsi IDs as above but with the old device out you could
renumber with appropriate changes.

	config w2		# or whatever is appropriate
	# re-enter your ip ipmask ipgw and service name
	filsys main [w2w3]
	end


[-- Attachment #2: Type: message/rfc822, Size: 2214 bytes --]

To: cse.psu.edu!9fans
Subject: [9fans] add new disk drives to fs.
Date: Mon, 23 Apr 2001 17:12:45 +0900
Message-ID: <27798.988013565@beat.cc.titech.ac.jp>

I live on a file server with a 2GB SCSI disk reamed by
`filsys main w0'.  Having got new disk drives, I want to
add these to the `main'.

my imagined steps:
1: boot a cpu/auth server from a local disk.
2: mount the fs on /n/myfs.
3: `wrap/create' the above /n/myfs to some remote ftpfs filesystem.
4: `filsys' and `ream' the fs with new disks
5: `wrap/inst' the `wrap/create'd the /n/myfs to the fs's /

Do you think the above steps will do?
I want advise about permission and date issue
that may concern in the step 3 especially.

Thank you.
--
YAMANASHI Takeshi.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [9fans] add new disk drives to fs.
@ 2001-04-23  8:12 YAMANASHI Takeshi
  0 siblings, 0 replies; 2+ messages in thread
From: YAMANASHI Takeshi @ 2001-04-23  8:12 UTC (permalink / raw)
  To: 9fans

I live on a file server with a 2GB SCSI disk reamed by
`filsys main w0'.  Having got new disk drives, I want to
add these to the `main'.

my imagined steps:
1: boot a cpu/auth server from a local disk.
2: mount the fs on /n/myfs.
3: `wrap/create' the above /n/myfs to some remote ftpfs filesystem.
4: `filsys' and `ream' the fs with new disks
5: `wrap/inst' the `wrap/create'd the /n/myfs to the fs's /

Do you think the above steps will do?
I want advise about permission and date issue
that may concern in the step 3 especially.

Thank you.
--
YAMANASHI Takeshi.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-23 12:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-23 12:03 [9fans] add new disk drives to fs forsyth
  -- strict thread matches above, loose matches on Subject: below --
2001-04-23  8:12 YAMANASHI Takeshi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).