Solaris 10 Virtual Machine exploration (2), solaris Exploration

Source: Internet
Author: User

Solaris 10 Virtual Machine exploration (2), solaris Exploration
# Add a File System
Bash-3.2 # zonecfg-z vmtest02
Zonecfg: vmtest02> info
Zonename: vmtest02
Zonepath:/export/home/vmtest02
Brand: native
Autoboot: true
Bootargs:
Pool:
Limitpriv:
Scheduling-class: FSS
Ip-type: shared
Hostid:
Net:
Address: 192.168.233.200
Physical: e1000g0
Defrouter: 192.168.233.2
Capped-memory:
Physical: 512 M
[Swap: 1 GB]
[Locked: 512 M]
Rctl:
Name: zone. max-swap
Value: (priv = privileged, limit = 1073741824, action = deny)
Rctl:
Name: zone. max-locked-memory
Value: (priv = privileged, limit = 536870912, action = deny)
Zonecfg: vmtest02> add fs
Zonecfg: vmtest02: fs> set dir =/hj
Zonecfg: vmtest02: fs> set special =/dev/dsk/c0d1s0
Zonecfg: vmtest02: fs> set raw =/dev/rdsk/c0d1s0
Zonecfg: vmtest02: fs> set type = ufs
Zonecfg: vmtest02: fs> add options [nodevices, logging]
Zonecfg: vmtest02: fs> end
Zonecfg: vmtest02> verify
Zonecfg: vmtest02> commit
Zonecfg: vmtest02> info
Zonename: vmtest02
Zonepath:/export/home/vmtest02
Brand: native
Autoboot: true
Bootargs:
Pool:
Limitpriv:
Scheduling-class: FSS
Ip-type: shared
Hostid:
Fs:
Dir:/hj
Special:/dev/dsk/c0d1s0
Raw:/dev/rdsk/c0d1s0
Type: ufs
Options: [nodevices, logging]
Net:
Address: 192.168.233.200
Physical: e1000g0
Defrouter: 192.168.233.2
Capped-memory:
Physical: 512 M
[Swap: 1 GB]
[Locked: 512 M]
Rctl:
Name: zone. max-swap
Value: (priv = privileged, limit = 1073741824, action = deny)
Rctl:
Name: zone. max-locked-memory
Value: (priv = privileged, limit = 536870912, action = deny)
Zonecfg: vmtest02> exit

Bash-3.2 # zoneadm-z vmtest02 boot
Zoneadm: zone 'vmtest02': '/dev/rdsk/c0d1s0' fsck failed, exit status is 33; run fsck manually
Zoneadm: zone 'vmtest02': An error occurred while calling zoneadmd.


Bash-3.2 # df-h
The file system size is attached to the available capacity
/Dev/dsk/c0d0s0 9.2G 8.4G 729 M 93%/
/Devices 0 K 0 K 0 K 0%/devices
Ctfs 0 K 0 K 0 K 0%/system/contract
Proc 0 K 0 K 0 K 0%/proc
Mnttab 0 K 0 K 0 K 0%/etc/mnttab
Swap 2.9G 1008 K 2.9G 1%/etc/svc/volatile
Objfs 0 K 0 K 0 K 0%/system/object
Sharefs 0 K 0 K 0 K 0%/etc/dfs/sharetab
/Usr/lib/libc/libc_hwcap1.so.1
9.2G 8.4G 729 M 93%/lib/libc. so.1
Fd 0 K 0 K 0 K 0%/dev/fd
Swap 2.9G 420 K 2.9G 1%/tmp
Swap 2.9G 36 K 2.9G 1%/var/run
/Dev/dsk/c0d0s7 89G 37G 51G 43%/export/home
/Dev/dsk/c0d1s0 996 M 1.0 M 935 M 1%/hj
Bash-3.2 # umount/hj
Bash-3.2 #




Bash-3.2 # zoneadm-z vmtest02 boot
Zoneadm: zone 'vmtest02': Warning: e1000g0: 1: The subnet that matches 192.168.233.200 is not found in netmasks (4). the default value of 255.255.255.0 is used.
Bash-3.2 # zlogin vmtest02
[Connected to 'vmtest02' pts/7]
Last login: Mon Mar 9 20:14:00 on pts/2
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# Df-h
Filesystem size used avail capacity Mounted on
/89G 37G 51G 43%/
/Dev 89G 37G 51G 43%/dev
/Hj 996 M 1.0 M 935 M 1%/hj
Proc 0 K 0 K 0 K 0%/proc
Ctfs 0 K 0 K 0 K 0%/system/contract
Mnttab 0 K 0 K 0 K 0%/etc/mnttab
Objfs 0 K 0 K 0 K 0%/system/object
Swap 1.0G 51 M 973 M 6%/etc/svc/volatile
/Usr/lib/libc/libc_hwcap1.so.1
89G, 37G, 51G, 43%/lib/libc. so.1
Fd 0 K 0 K 0 K 0%/dev/fd
Swap 1.0G 51 M 973 M 6%/tmp
Swap 1.0G 51 M 973 M 6%/var/run
# Cd/hj

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.