WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Virtual disk on physical partition of second drive

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Virtual disk on physical partition of second drive
From: "John R. Shannon" <john@xxxxxxxxxxxxxxxx>
Date: Sat, 3 Dec 2005 05:41:57 -0700
Delivery-date: Sat, 03 Dec 2005 12:41:59 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Reply-to: john@xxxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8.3
NetBSD 3.99.12 domain0 and domainUs:

After creating several domainU's on my first drive, sd0, I'm trying to create 
domains on a second drive, sd1, and encountering surprises.

sd1 is partitioned:

domain0# disklabel sd1
# /dev/rsd1d:
type: SCSI
disk: mydisk
label: fictitious
flags:
bytes/sector: 512
sectors/track: 705
tracks/cylinder: 4
sectors/cylinder: 2820
cylinders: 50824
total sectors: 143374744
rpm: 15015
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
  c: 143374681        63     unused      0     0        # (Cyl.      0*- 
  50842*)
  d: 143374744         0     unused      0     0        # (Cyl.      0 - 
  50842*)
  e:  35830920        63     4.2BSD   2048 16384 28760  # (Cyl.      0*- 
  12706*)
  f:  35830920  35830983     4.2BSD   2048 16384 28760  # (Cyl.  12706*- 
  25412*)
  g:  35830920  71661903     4.2BSD   2048 16384 28760  # (Cyl.  25412*- 
  38118*)
  h:  35830920 107492823     4.2BSD   2048 16384 28760  # (Cyl.  38118*- 
  50824*)

I'm trying to install domain "proxy". In it's config file I have:

disk = [ 'phy:/dev/sd1e,sd0d,w' ]
root = "/dev/sd0d"

I am unable to partition xb0. Looking into it, it appears that xb0 is sd1 
rather than sd1e:

# disklabel xbd0
# /dev/rxbd0d:
type: SCSI
disk: mydisk
label: fictitious
flags:
bytes/sector: 512
sectors/track: 705
tracks/cylinder: 4
sectors/cylinder: 2820
cylinders: 50824
total sectors: 143374744
rpm: 15015
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
  c: 143374681        63     unused      0     0        # (Cyl.      0*- 
  50842*)
  d: 143374744         0     unused      0     0        # (Cyl.      0 - 
  50842*)
  e:  35830920        63     4.2BSD   2048 16384 28760  # (Cyl.      0*- 
  12706*)
  f:  35830920  35830983     4.2BSD   2048 16384 28760  # (Cyl.  12706*- 
  25412*)
  g:  35830920  71661903     4.2BSD   2048 16384 28760  # (Cyl.  25412*- 
  38118*)
  h:  35830920 107492823     4.2BSD   2048 16384 28760  # (Cyl.  38118*- 
  50824*)

Displaying the disklabel for another domain that uses:

disk = [ 'phy:/dev/sd0h,sd0d,w' ]
root = "/dev/sd0d"

shows that the virtual block device is using the partition:

imap# disklabel xbd0
# /dev/rxbd0d:
type: unknown
disk: Xen Virtual ESD
label:
flags:
bytes/sector: 512
sectors/track: 2048
tracks/cylinder: 1
sectors/cylinder: 2048
cylinders: 14055
total sectors: 28786560
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:    262144         0     4.2BSD   1024  8192 32768  # (Cyl.      0 -    
127)
 b:   4194304    262144       swap                     # (Cyl.    128 -   
2175)
 c:  28786560         0     unused      0     0        # (Cyl.      0 -  
14055*)
 d:  28786560         0     unused      0     0        # (Cyl.      0 -  
14055*)
 e:  12582912   4456448     4.2BSD   2048 16384 26992  # (Cyl.   2176 -   
8319)
 f:   4194304  17039360     4.2BSD   2048 16384 21848  # (Cyl.   8320 -  
10367)
 g:   7552896  21233664     4.2BSD   2048 16384 28880  # (Cyl.  10368 -  
14055*)


Why the difference between sd0 and sd1? What am I missing?

-- 
John R. Shannon
john@xxxxxxxxxxxxxxxx
john.r.shannon@xxxxxxxx
john.r.shannon@xxxxxxxxxxx
shannonjr@xxxxxxxxxx

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Virtual disk on physical partition of second drive, John R. Shannon <=