Skip to content

Instantly share code, notes, and snippets.

@Smithx10
Created January 12, 2019 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Smithx10/43a17753d51dd7d26f0367ceb534cbab to your computer and use it in GitHub Desktop.
Save Smithx10/43a17753d51dd7d26f0367ceb534cbab to your computer and use it in GitHub Desktop.
[root@ /usbkey]# /lib/svc/method/fs-joyent
+ . /lib/svc/share/smf_include.sh
++ SMF_EXIT_OK=0
++ SMF_EXIT_NODAEMON=94
++ SMF_EXIT_ERR_FATAL=95
++ SMF_EXIT_ERR_CONFIG=96
++ SMF_EXIT_MON_DEGRADE=97
++ SMF_EXIT_MON_OFFLINE=98
++ SMF_EXIT_ERR_NOSMF=99
++ SMF_EXIT_ERR_PERM=100
+ . /lib/svc/share/fs_include.sh
++ vfstab=/etc/vfstab
+ smf_is_globalzone
++ /sbin/zonename
+ '[' global = global ']'
+ return 0
+ /usr/sbin/devfsadm -c disk
WARNING: /pci@0,0/pci8086,a194@1c,4/pci1590,e4@0,4 (ehci0): No SOF interrupts have been received, this USB EHCI hostcontroller is unusable
+ /bin/bootparams
+ grep '^noimport=true'
+ '[' 1 -ne 0 ']'
+ SYS_ZPOOL=zones
++ /bin/bootparams
++ egrep '^zpools?='
++ cut -d= -f2
++ tr , ' '
+ pools=
+ '[' -z ']'
++ zpool import
++ grep pool:
++ awk '{print $2}'
+ pools=
+ svccfg -s svc:/system/smartdc/init setprop config/zpool=zones
+ svccfg -s svc:/system/smartdc/init:default refresh
+ /bin/bootparams
+ grep '^destroy_zpools=true'
+ '[' 1 -eq 0 ']'
++ zfs get -H -o value smartdc:factoryreset zones/var
cannot open 'zones/var': dataset does not exist
+ reset=
+ '[' == yes ']'
/lib/svc/method/fs-joyent: line 110: [: ==: unary operator expected
+ zpool status zones
pool: zones
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
zones ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c2t5000C500BC1CD0ADd0 ONLINE 0 0 0
c3t5000C500BC1BE871d0 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
c4t5000C500BC1BDB35d0 ONLINE 0 0 0
c5t5000C500BC198DA9d0 ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
c6t5000C500BC1997CDd0 ONLINE 0 0 0
c7t5000C500BC1C942Dd0 ONLINE 0 0 0
mirror-3 ONLINE 0 0 0
c8t5000C500BC1BA0F1d0 ONLINE 0 0 0
c9t5000C500BC1BB059d0 ONLINE 0 0 0
logs
c10t5000CCA09B050999d0 ONLINE 0 0 0
errors: No known data errors
+ '[' 0 -eq 0 ']'
+ cp /etc/zones/SUNWdefault.xml /tmp/
+ mount_zfs zones/var /var
+ local dataset=zones/var
+ local mountpoint=/var
+ local output=
+ for i in '{1..3}'
++ mount -F zfs zones/var /var
+ output='cannot open '\''zones/var'\'': dataset does not exist'
+ [[ 1 -eq 0 ]]
+ '[' 'cannot open '\''zones/var'\'': dataset does not exist' == 'mount failed: Device busy' ']'
+ echo cannot open ''\''zones/var'\'':' dataset does not exist
cannot open 'zones/var': dataset does not exist
+ return
+ mount_zfs zones/config /etc/zones
+ local dataset=zones/config
+ local mountpoint=/etc/zones
+ local output=
+ for i in '{1..3}'
++ mount -F zfs zones/config /etc/zones
+ output='cannot open '\''zones/config'\'': dataset does not exist'
+ [[ 1 -eq 0 ]]
+ '[' 'cannot open '\''zones/config'\'': dataset does not exist' == 'mount failed: Device busy' ']'
+ echo cannot open ''\''zones/config'\'':' dataset does not exist
cannot open 'zones/config': dataset does not exist
+ return
+ mount_zfs zones/opt /opt
+ local dataset=zones/opt
+ local mountpoint=/opt
+ local output=
+ for i in '{1..3}'
++ mount -F zfs zones/opt /opt
+ output='cannot open '\''zones/opt'\'': dataset does not exist'
+ [[ 1 -eq 0 ]]
+ '[' 'cannot open '\''zones/opt'\'': dataset does not exist' == 'mount failed: Device busy' ']'
+ echo cannot open ''\''zones/opt'\'':' dataset does not exist
cannot open 'zones/opt': dataset does not exist
+ return
+ cp /tmp/SUNWdefault.xml /etc/zones/
+ rm -f /tmp/SUNWdefault.xml
+ [[ -f /var/log/manifest ]]
+ [[ ! -L /var/log/manifest ]]
++ /bin/bootparams
++ grep '^smartos=true'
+ [[ -z '' ]]
+ mkdir -p /opt/smartdc/agents/smf
+ mount -O -F lofs /var/svc/manifest/site /opt/smartdc/agents/smf
++ /bin/bootparams
++ grep '^headnode=true'
+ [[ -n headnode=true ]]
+ mkdir /usbkey
mkdir: Failed to make directory "/usbkey"; File exists
+ mount_zfs zones/usbkey /usbkey
+ local dataset=zones/usbkey
+ local mountpoint=/usbkey
+ local output=
+ for i in '{1..3}'
++ mount -F zfs zones/usbkey /usbkey
+ output='mount failed: Device busy'
+ [[ 1 -eq 0 ]]
+ '[' 'mount failed+ for i in '{1..3}'
++ mount -F zfs zones/usbkey /usbkey
+ output='mount failed: Device busy'
+ [[ 1 -eq 0 ]]
+ '[' 'mount failed: Device busy' == 'mount failed: Device busy' ']'
+ sleep 5
+ for i in '{1..3}'
++ mount -F zfs zones/usbkey /usbkey
+ output='mount failed: Device busy'
+ [[ 1 -eq 0 ]]
+ '[' 'mount failed: Device busy' == 'mount failed: Device busy' ']'
+ sleep 5
+ echo mount failed: Device busy
mount failed: Device busy
++ /bin/bootparams
++ grep '^smartos=true'
+ [[ -n '' ]]
+ swap -a /dev/zvol/dsk/zones/swap
/dev/zvol/dsk/zones/swap: No such file or directory
+ fatal 'failed to configure swap device'
+ echo 'Error: failed to configure swap device'
Error: failed to configure swap device
+ exit 95
[root@ /usbkey]# zfs get -H -o value smartdc:factoryreset zones/var
cannot open 'zones/var': dataset does not exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment