Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 2002 18:36:08 -0400
From:      Rob Ellis <rob@web.ca>
To:        freebsd-questions@freebsd.org
Subject:   vinum + /var ?
Message-ID:  <20020730223607.GN68679@web.ca>

next in thread | raw e-mail | index | archive | help
when setting up a machine with vinum, is it ok to
symlink /var to a directory on a vinum partition?
does anything open files on /var before vinum starts?

i was thinking of doing something like this...

  # make a mirrored filesystem
  mirror -n local /dev/ad0s2e /dev/ad2s2e
  newfs -v /dev/vinum/local

  # cp /var to /usr/local/var
  cp -Rp /var /usr/local

  # now mount the vinum'd filesystem on /usr/local
  # over top of non-vinum /usr/local/...
  mount /dev/vinum/local /usr/local

  # cp /var again
  cp -Rp /var /usr/local

  # replace /var with a symlink to /usr/local/var
  mv /var /var.orig && ln -s /usr/local/var /var

is this ok? i'm copying /var twice so that the /var 
symlink will point to a viable /usr/local/var even if 
vinum isn't running (for use in single-user).
does this make sense? :-)
thanks.

- rob

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020730223607.GN68679>