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

Re: [Xen-users] PV domain on NAS

Hi All,

I am polulating root filesystem of domU form the dom0 ( RHEL5 ) itself.

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      131G   80G   45G  65% /
/dev/cciss/c0d0p1      99M   18M   77M  19% /boot
tmpfs                 257M     0  257M   0% /dev/shm
/xen-tool/para_xen8/para_xen8-root
                      5.8G  4.8G  702M  88% /mnt2

I exported the /mnt2 as nfs location.

# cat /etc/exports
/mnt2 *(rw,sync,no_root_squash)

# ls /mnt2
bin  dev  etc  home  lib  lib64  poweroff  proc  root  sbin  selinux  sys  tmp  usr  var

Now i created the initrd image using below command.
#mkinitrd -v --rootdev 139.185.48.195:/mnt2 --rootfs nfs -f /tmp/initrd-nfs1.img 2.6.18-8.1.6.0.6.el5xen

and use the below as config file.
#cat /etc/xen/para_xen8
kernel="/boot/vmlinuz-2.6.18-8.1.6.0.6.el5xen"
ramdisk="/tmp/initrd-nfs1.img"
memory=512
vcpus=8
name="para_xen8"
vif = [ 'bridge=xenbr0,mac=00:50:56:0b:95:6e' ]
root='/dev/nfs'
nfs_server='139.185.48.195'
nfs_root='/mnt2/'
dhcp="dhcp"
extra="3 selinux=0"

---

When i create the domain it starts well but stuck in between the starting of user applications.

Remounting root filesystem in read-write mode:  [  OK  ]
mount.nfs: Input/output error
Mounting local filesystems:  [  OK  ]
Enabling local filesystem quotas:  [  OK  ]
rm: cannot remove `/var/run/xend/boot': Is a directory
Enabling /etc/fstab swaps:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Starting sysstat:  Calling the system activity data collector (sadc):
[  OK  ]
Checking for hardware changes [  OK  ]
Turning off network shutdown. Starting iSCSI daemon: [  OK  ]
[  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:
Determining IP information for eth0... done.
/etc/sysconfig/network-scripts/ifup-eth: line 277: ip: command not found
/etc/sysconfig/network-scripts/ifup-eth: line 282: /etc/sysconfig/network-scripts/ifup-ipv6: Network is unreachable
/etc/sysconfig/network-scripts/ifup-eth: line 294: /etc/sysconfig/network-scripts/ifup-post: Network is unreachable
/etc/sysconfig/network-scripts/ifup-eth: line 294: exec: /etc/sysconfig/network-scripts/ifup-post: cannot execute: Network is unreachable
[FAILED]
/etc/rc3.d/S10network: line 97: fgrep: command not found
/etc/rc3.d/S10network: line 98: fgrep: command not found
/etc/rc3.d/S10network: line 99: fgrep: command not found
/etc/rc3.d/S10network: line 126: /dev/null: Network is unreachable
Bringing up interface eth1:  /etc/init.d/functions: line 494: ./ifup: Network is unreachable
[FAILED]
/etc/rc3.d/S10network: line 165: /dev/null: Network is unreachable
/etc/rc3.d/S10network: line 167: touch: command not found
/etc/rc.d/rc: line 90: rm: command not found

looks like it couldnot find the commands used in the application.

......
#cat  /mnt2/etc/fstab
139.185.48.195:/mnt2  /  nfs    rw,bg,intr,hard,timeo=600,wsize=32768,rsize=32768,nfsvers=3,tcp    0 0
none         /dev/pts             devpts  gid=5,mode=620  0 0
none         /dev/shm             tmpfs   defaults        0 0
none         /proc                proc    defaults        0 0
none         /sys                 sysfs   defaults        0 0


Can anybody point out where thing could be wrong ?
Is it anythg wrong in creating the initrd image for nfs root filesystem ?

--------
Many thanks.
Trilok

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] PV domain on NAS, trilok nuwal <=