Friday, 25 July 2014
lofiadm: /dev/lofictl: No such file or directory, Solaris non-global zone
To avoid the above error in Solaris 10 non-global zone, we need to expose lofi to solaris non-global zone:
/opt/VRTSvcs/bin/hagrp -offline platenggrp -any
Change zonecfg on both nodes in VCS cluster for this non-global zone:
bash-3.00# zonecfg -z plateng01p
zonecfg:plateng01p> info
zonename: plateng01p
zonepath: /zones/plateng01p
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir: /usr/local
special: /zones/plateng01p/local
raw not specified
type: lofs
options: []
fs:
dir: /usr/openv
special: /zones/plateng01p/openv
raw not specified
type: lofs
options: []
net:
address: xx.xx.xx.xx
physical: e1000g0
zonecfg:plateng01p>
zonecfg:plateng01p> add device
zonecfg:plateng01p:device> set match=/dev/lofictl
zonecfg:plateng01p:device> end
zonecfg:plateng01p> add device
zonecfg:plateng01p:device> set match=/dev/lofi/*
zonecfg:plateng01p:device> end
zonecfg:plateng01p> add device
zonecfg:plateng01p:device> set match=/dev/rlofi/*
zonecfg:plateng01p:device> end
zonecfg:plateng01p> exit
bash-3.00# zonecfg -z plateng01p info
zonename: plateng01p
zonepath: /zones/plateng01p
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir: /usr/local
special: /zones/plateng01p/local
raw not specified
type: lofs
options: []
fs:
dir: /usr/openv
special: /zones/plateng01p/openv
raw not specified
type: lofs
options: []
net:
address: xx.xx.xx.xx
physical: e1000g0
device
match: /dev/lofictl
device
match: /dev/lofi/*
device
match: /dev/rlofi/*
bash-3.00#
bash-3.00# /opt/VRTSvcs/bin/hagrp -online platenggrp -any
bash-3.00# lofiadm -a /root/sol-10-u7-ga-sparc-dvd.iso /dev/lofi/1
bash-3.00# lofiadm
Block Device File
/dev/lofi/1 /root/sol-10-u7-ga-sparc-dvd.iso
bash-3.00#
bash-3.00# mount -F hsfs -o ro /dev/lofi/1 /mnt/solaris
bash-3.00# df -kh | grep mnt
mnttab 0K 0K 0K 0% /etc/mnttab
/dev/lofi/1 2.5G 2.5G 0K 100% /mnt/solaris
bash-3.00#
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment