nevermind. I figured this out.
still, Greg is one smart guy :).

I just wish disklabel was at least a bit
more user friendly. Every time I use it I have to
understand it all over :)

/boot/loader.conf

vinum_load="YES"
vinum.root="root"
vinum.drives="/dev/ad2 /dev/ad3"



synrat wrote:
thanx Greg, you're right as always.
I booted into single user from start up and sure enough everything was
editable then.

I got another problem though.

I set up 2 disks for vinum and want to allocate exisiting partitions to
vinum mirrored volumes. I left 16 blocks at the begining, moved first
partition ( swap ) to 281, recalculated offsets in vinum config with -16, run vinum
config, everything's peachy, drives rebuild, fsck sees no errors, I edit
fstab, reboot, vinum module loads but root can not be mounted as a vinum
device, I still have to manually specify my regular root (
/dev/das1a ) partition. dmesg output below and vinum/disklabel too.

thanx a million. Greg for US president :)

Mounting root from ufs:/dev/vinum/root
missing unit number
setrootbyname failed
ffs_mountroot: can't find rootvp
Root mount failed: 6


disklabel ( similar for both disks ) ---------------------------------

  a: 21094400  2109440    4.2BSD     2048 16384    89   # (Cyl.  131*- 1444*)
  b:  2109159      281      swap                        # (Cyl.    0*- 131*)
  c: 156248127        0    unused        0     0        # (Cyl.    0 - 9725*)
  e: 133044287 23203840    4.2BSD     2048 16384    89  # (Cyl. 1444*- 9725*)
  h: 156248111       16     vinum                       # (Cyl.    0*- 9725*)

vinum
------------------

drive a device /dev/ad2s1h
drive b device /dev/ad3s1h

volume root
plex org concat
sd length  21094400s driveoffset 2109424s drive a
plex org concat
sd length  21094400s driveoffset 2109424s drive

volume home
plex org concat
sd length 133044287s driveoffset 23203824s drive a
plex org concat
sd length 133044287s driveoffset 23203824s drive b



On Fri, 18 Jun 2004, Greg 'groggy' Lehey wrote:


[Format recovered--see http://www.lemis.com/email/email-format.html]

Output wrapped.

On Thursday, 17 June 2004 at 12:04:01 -0400, synrat wrote:

4.8

I'm trying to setup partitions for vinum.
I am in single user mode, but every time I try
to modify swap size to accomodate for vinum confuration
I get

disklabel: ioctl DIOCWDINFO: open partition would move or shrink
re-edit the label? [y]

#        size   offset    fstype   [fsize bsize bps/cpg]
 a: 21094400  2109440    4.2BSD     2048 16384    89   # (Cyl.  131*- 1444*)
 b:  2109000      430      swap                        # (Cyl.    0 - 131*)
 c: 156248127        0    unused        0     0        # (Cyl.    0 - 9725*)
 e: 133044287 23203840    4.2BSD     2048 16384    89  # (Cyl. 1444*- 9725*)
 h: 156248111       16     vinum                       # (Cyl.    0*- 9725*)

You can't change open partitions. You also can't unmount swap. If you go from multi-user to single user mode, the swap remains mounted. You'll need to boot to single user mode to do that.

If this doesn't answer your question, more details, please, including
any log messages.  Please don't wrap them.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
Note: I discard all HTML mail unseen.
Finger [EMAIL PROTECTED] for PGP public key.
See complete headers for address and phone numbers.


_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to