1Adding the File Systems from the Global System to the HP9000 Containers (except for the / , /var and /usr of the container)
Run from Global system the commands
to add the LVs created on the Global System
For the filesystems to be added to the container first create the VG/LV /FS on the global System. Once these are in place the devices can be added to the Container.
Overall steps are as:
1) Create the LV and perform MKFS or NEWFS on the LV at the Global system level.
2) Add the RAW and the block devices to the container using srp -add -tune=<device> syntax
3) Add these entries for mount in the local FSTAB of the container
4) Mount these inside the container
Add the Block and RAW device files
for the LVs which are created on the Global system to be added as
File systems inside the container
srp -add node4l -tune
device=/dev/node4lv/homelv
srp -add node4l -tune
device=/dev/node4lvg/rhomelv
srp -add node4l -tune
device=/dev/node4lv/optlv
srp -add node4l -tune
device=/dev/node4lvg/roptlv
srp -add node4l -tune
device=/dev/node4lv/tmplv
srp -add node4l -tune
device=/dev/node4lvg/rtmplv
Then add the mount
entries for the above devices to the local FSTAB of the container
from the global System.
echo "/dev/node4lvg/optlv /opt
vxfs delaylog 0 2" >> /var/hpsrp/node4l/etc/fstab
echo "/dev/node4lvg/tmplv /tmp
vxfs delaylog 0 2" >> /var/hpsrp/node4l/etc/fstab
echo "/dev/node4lvg/homelv /home
vxfs delaylog 0 2" >> /var/hpsrp/node4l/etc/fstab
After this login to the container using SSH or via srp_su from the global system and do a mount -a
The mounts when at the container level, can also be seen when the BDF executes at the global system level or at the container level.
Add the RAW and Block
device files of the disk to the HP 9000 Container
If the RAW disks are added to the container using the above like RAW and the block device files for a disk like /dev/rdisk/diskxx and /dev/disk/diskxx OR in form of the RAW LV which does not have a filesystem like /dev/<VG>/<LV> and /dev/<VG>/r<LV> you cannot run mkfs or newfs at the container level.
srp -add node4l -tune
device=/dev/dsk/c0t2d0
srp -add node4l -tune
device=/dev/rdsk/c0t2d0
+++++++++++++++
LVM commands and the
MKFS are not supported on the HP9000 container
Delete the devices from
the container
srp -delete node4l -tune
device=/dev/dsk/c0t2d0
srp -delete node4l -tune
device=/dev/rdsk/c0t2d0
Create a VG , LV and
MKFS on the LV on the global system
Then add the block and
RAW device files for the LV to the HP9000 Container
srp -add node4l -tune
device=/dev/test/testlv
srp -add node4l -tune
device=/dev/test/rtestlv
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=
Add these to the local
/etc/fstab for the container
Create the Mount point folder on the
Container
root@hp9000vm@/#srp_su
node4l
#
#
#
# mkdir -p /test
# exit
Come to the global node
and add the entry to the local FSTAB of the container
echo "/dev/test/testlv /test vxfs
delaylog 0 2" >> /var/hpsrp/node4l/etc/fstab
++++++++++++++++++++++
Login to the container
and execute the Mount
root@hp9000vm@/#srp_su
node4l
#
#
# mount -a
mount: /dev/node4lvg/homelv is already
mounted on /home
mount: /dev/node4lvg/tmplv is already
mounted on /tmp
mount: /dev/node4lvg/optlv is already
mounted on /opt
# bdf
Filesystem kbytes used
avail %used Mounted on
/ 6266880 323883
5571714 5% /
/dev/node4lvg/usrlv
7340032 2241068
4780284 32% /usr
/dev/node4lvg/varlv
16777216 1876141
13969842 12% /var
/usr/lib/hpux32 7766016 3263448
4467472 42% /usr/lib/hpux32
/usr/lib/hpux64 7766016 3263448
4467472 42% /usr/lib/hpux64
/dev/node4lvg/tmplv
5242880 18785
4897596 0% /tmp
/dev/node4lvg/optlv
26214400 3839542
20976546 15% /opt
/dev/node4lvg/homelv
1048576 17911
966374 2% /home
/dev/test/testlv 8192 2141
5680 27% /test
#
3NEWFS MKFS and LVM Operations are not supported within the HP 9000 System container.
Create VG , LV , FS at
the global level and then add using tune to the container as above
No comments:
Post a Comment