vinum setup
synrat
synrat at wirewalk.org
Fri Jun 18 09:20:39 PDT 2004
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 grog at FreeBSD.org for PGP public key.
> See complete headers for address and phone numbers.
>
More information about the freebsd-questions
mailing list