Paste number 28516: bank

Paste number 28516: bank
Pasted by: bank
When:8 years, 7 months ago
Share:Tweet this! | http://paste.lisp.org/+M04
Channel:None
Paste contents:
Raw Source | XML | Display As
# umount -f /export/sliceA
# zpool create -f tank /dev/dsk/c1d0s4
invalid vdev specification
the following errors must be manually repaired:
/dev/dsk/c1d0s4 is normally mounted on /export/sliceA according to /etc/vfstab. Please remove this entry to use this device.


# vi /etc/vfstab
"/etc/vfstab" 15 lines, 596 characters 
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1d0s1 -       -       swap    -       no      -
/dev/dsk/c1d0s0 /dev/rdsk/c1d0s0        /       ufs     1       no      -

/dev/dsk/c1d0s5 /dev/rdsk/c1d0s5        /export/sliceB  ufs     2       yes
-
/dev/dsk/c1d0s6 /dev/rdsk/c1d0s6        /export/sliceC  ufs     2       yes
-
/dev/dsk/c1d0s7 /dev/rdsk/c1d0s7        /export/sliceD  ufs     2       yes
-
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
~
~
~
~
~
"/etc/vfstab" 15 lines, 537 characters 
# zpool create -f tank c1d0s4


# zpool list 
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
tank                   11.1G   52.5K   11.1G     0%  ONLINE     -


# zpool add -f tank c1d0s5
invalid vdev specification
the following errors must be manually repaired:
/dev/dsk/c1d0s5 is currently mounted on /export/sliceB. Please see umount(1M).
# umount /export/sliceD  
# zpool add -f tank c1d0s5
invalid vdev specification
the following errors must be manually repaired:
/dev/dsk/c1d0s5 is currently mounted on /export/sliceB. Please see umount(1M).

# umount -f /dev/dsk/c1d0s5
# zpool add -f tank c1d0s5

# zfs create tank/zones
# zfs set mountpoint=/export/zones pool/zones
cannot open 'pool/zones': dataset does not exist
# zfs set mountpoint=/export/zones tank/zones
# zfs create tank/zones/site-zone

# zfs list                       
NAME         USED  AVAIL  REFER  MOUNTPOINT
tank         116K  68.5G  24.5K  /tank
tank/zones  24.5K  68.5G  24.5K  /export/zones


# zpool list
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
tank                   69.6G    215K   69.6G     0%  ONLINE     -
# zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
tank                   211K  68.5G  24.5K  /tank
tank/zones             101K  68.5G  27.5K  /export/zones
tank/zones/as-zone    24.5K  68.5G  24.5K  /export/zones/as-zone
tank/zones/db-zone    24.5K  68.5G  24.5K  /export/zones/db-zone
tank/zones/site-zone  24.5K  68.5G  24.5K  /export/zones/site-zone
# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1d0s0        4.2G   3.3G   832M    81%    /
/devices                 0K     0K     0K     0%    /devices
/dev                     0K     0K     0K     0%    /dev
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   1.1G   448K   1.1G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
/usr/lib/libc/libc_hwcap2.so.1
                       4.2G   3.3G   832M    81%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   1.1G    72K   1.1G     1%    /tmp
swap                   1.1G    48K   1.1G     1%    /var/run
tank                    68G    24K    68G     1%    /tank
tank/zones              68G    28K    68G     1%    /export/zones
tank/zones/site-zone    68G    24K    68G     1%    /export/zones/site-zone
tank/zones/as-zone      68G    24K    68G     1%    /export/zones/as-zone
tank/zones/db-zone      68G    24K    68G     1%    /export/zones/db-zone

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.