1 Reply Latest reply: May 6, 2011 3:09 PM by user9308261 RSS

    lucreate fails after /usr/lib/lu/lumount -Z -i /etc/lu/ICF.2

    user9308261
      We have a Sun-Fire-V890 global zone with zfs root trying to patch with live upgrade.
      5.10 Generic_144488-02 sun4u sparc SUNW going to 144488-12.


      LU packages have been installed and pre-req patches applied.

      /opt is mounted under root /
      # df -h /opt
      Filesystem size used avail capacity Mounted on
      rpool/ROOT/s10s_u9wos_14a
      134G 6.1G 113G 6% /

      All non-global zones have /opt in seperate zpools.
      # zfs list
      NAME USED AVAIL REFER MOUNTPOINT
      hwvauap1432 5.31G 24.0G 5.31G /export/zone/hwvauap1432
      hwvauap1432_opt 42.9G 172G 42.9G legacy
      hwvauap1437 5.20G 24.1G 5.20G /export/zone/hwvauap1437
      hwvauap1437_opt 8.78G 206G 8.78G legacy
      hwvauap1439 5.20G 24.1G 5.20G /export/zone/hwvauap1439
      hwvauap1439_opt 7.68G 207G 7.68G legacy
      hwvauat1424 14.3G 147G 14.3G /export/zone/hwvauat1424
      hwvauat1426 24.2G 137G 24.2G /export/zone/hwvauat1426
      hwvauwp1431 5.23G 24.1G 5.23G /export/zone/hwvauwp1431
      hwvauwp1431_opt 14.5G 53.9G 14.5G legacy
      hwvauwt1422 12.8G 94.4G 12.8G /export/zone/hwvauwt1422
      rpool 20.5G 113G 97K /rpool
      rpool/ROOT 12.2G 113G 21K legacy
      rpool/ROOT/s10s_u9wos_14a 12.2G 113G 6.14G /
      rpool/ROOT/s10s_u9wos_14a/var 6.11G 113G 6.11G /var
      rpool/dump 1.50G 113G 1.50G -
      rpool/export 4.65G 113G 4.44G /export
      rpool/export/home 215M 113G 215M /export/home
      rpool/swap 2.06G 115G 16K -
      urt1417_swap 124G 10.1G 21K /urt1417_swap
      urt1417_swap/urt1417_swap 124G 134G 16K -

      I turned on DEBUG to level 10 ....
      lucreate fails after /usr/lib/lu/lumount -Z -i /etc/lu/ICF.2

      + lulib_get_root_dataset_from_icf /etc/lu/ICF.2
      + /bin/nawk -F: $2 == "/" && $6 == "" { printf("%s\n", $3) } /etc/lu/ICF.2
      abe_root_dataset=rpool/ROOT/BE144488-12
      + /sbin/zfs set mountpoint=/ rpool/ROOT/BE144488-12
      + [ 0 -ne 0 ]
      + lulib_get_root_dataset_from_icf /etc/lu/ICF.1
      + /bin/nawk -F: $2 == "/" && $6 == "" { printf("%s\n", $3) } /etc/lu/ICF.1
      pbe_dataset=rpool/ROOT/s10s_u9wos_14a
      pbe_mounted=0
      + lulib_dataset_mounted rpool/ROOT/s10s_u9wos_14a
      + [ -x /sbin/zfs ]
      + /sbin/zfs get -Ho value mounted rpool/ROOT/s10s_u9wos_14a
      is_mounted=yes
      + [ 0 -ne 0 -o yes = no ]
      + return 1
      + [ 1 = 0 ]
      + nawk -v DS=rpool/ROOT/s10s_u9wos_14a $1==DS {print $2}
      pbe_mntpt=/
      + /usr/lib/lu/lumount -Z -i /etc/lu/ICF.2
      ERROR: cannot open ' ': dataset does not exist
      ERROR: cannot open ' ': dataset does not exist
      ERROR: cannot mount mount point </.alt.tmp.b-0ah.mnt/opt> device < >
      ERROR: failed to mount file system < > on </.alt.tmp.b-0ah.mnt/opt>
      ERROR: unmounting partially mounted boot environment file systems
      ERROR: cannot mount boot environment by icf file </etc/lu/ICF.2>
      abe_mntpt=
      + [ 1 != 0 ]
      + [ -s  ]
      + gettext Unable to mount ABE <%s>
      + /etc/lib/lu/luprintf -Eelp2 Unable to mount ABE <%s> BE144488-12
      luclonefs: ERROR: Unable to mount ABE <BE144488-12>
      + [ 0 = 1 ]
      + /bin/rm -f
      + exit_script 1
      retcode=0
      + [ -n 1 ]
      retcode=1
      + exit 1
      + /usr/bin/rm -rf /tmp/.liveupgrade.23532.28609
      + [ 1 -ne 0 ]
      + gettext Unable to clone the existing file systems from boot environment <%s> to create boot environment <%s>.
      + /etc/lib/lu/luprintf -Eelp2 Unable to clone the existing file systems from boot environment <%s> to create boot environment <%s>. BE144488-02 BE144488-12
      lumake: ERROR: Unable to clone the existing file systems from boot environment <BE144488-02> to create boot environment <BE144488-12>.
      + exit_script 1
      + [ -z /etc/lu/INODE.2 -a -n /etc/lu/INODE.2 ]
      + /bin/rm -f /tmp/.liveupgrade.13157.28378/.lumake.results.tmp /tmp/.liveupgrade.13157.28378/.lumake.filter_one /etc/lu/lumake_menu_lst.28378
      + /bin/rm -f /tmp/.liveupgrade.13157.28378/.lumake.fs_skip_list
      retcode=0
      + [ -n 1 ]
      retcode=1
      + exit 1
      + /usr/bin/rm -rf /tmp/.liveupgrade.13157.28378
      + [ 1 -ne 0 ]
      + gettext Cannot make file systems for boot environment <%s>.
      + /etc/lib/lu/luprintf -Eelp2 Cannot make file systems for boot environment <%s>. BE144488-12
      lucreate: ERROR: Cannot make file systems for boot environment <BE144488-12>.
      + exit_script 1
      + /bin/rm -f /tmp/.liveupgrade.5382.27397/.lucreate.filter_one /tmp/.liveupgrade.5382.27397/.lucreate.config.var /etc/lu/INODE.2 /tmp/.liveupgrade.5382.27397/.lucreate.template
      + copylock_delete
      + [ -n yes -a -f /etc/lu/COPY_LOCK ]
      + /bin/rm -f /etc/lu/COPY_LOCK
      COPYLOCK_CAN_BE_DELETED=
      + [ -n  -a -f /etc/lutab ]
      retcode=0
      + [ -n 1 ]
      retcode=1
      + [ 1 -ne 0 -a -n /etc/lu/ICF.2 ]
      + /bin/rm -f /etc/lu/ICF.2
      + exit 1
      + /usr/bin/rm -rf /tmp/.liveupgrade.5382.27397

      Any help appreciated.

      thanks

      Edited by: user9308261 on May 6, 2011 9:49 AM
        • 1. Re: lucreate fails after /usr/lib/lu/lumount -Z -i /etc/lu/ICF.2
          user9308261
          Was able to capture (copy) ICF.2 before it disappeared, while running lucreate.

          Noticed that any non-global zone with a seperate /opt is causing a problem with a blank entry.

          Not sure what to do about it.


          # cat myICF2
          BE144488-12:-:/dev/zvol/dsk/urt1417_swap/urt1417_swap:swap:251658240
          BE144488-12:/:rpool/ROOT/BE144488-12:zfs:0
          BE144488-12:/export:rpool/export:zfs:0
          BE144488-12:/export/home:rpool/export/home:zfs:0
          BE144488-12:/opt: :zfs:
          BE144488-12:/opt: :zfs:
          BE144488-12:/opt: :zfs:
          BE144488-12:/opt: :zfs:
          BE144488-12:/rpool:rpool:zfs:0
          BE144488-12:/urt1417_swap:urt1417_swap:zfs:0
          BE144488-12:/var:rpool/ROOT/BE144488-12/var:zfs:0

          # cat ICF.1
          BE144488-02:-:/dev/zvol/dsk/urt1417_swap/urt1417_swap:swap:251658240
          BE144488-02:/:rpool/ROOT/s10s_u9wos_14a:zfs:0
          BE144488-02:/opt:p1432_opt:zfs:90049020:p1432
          BE144488-02:/opt:p1437_opt:zfs:18423944:p1437
          BE144488-02:/opt:p1439_opt:zfs:16115947:p1439
          BE144488-02:/opt:p1431_opt:zfs:30475852:p1431
          BE144488-02:/var:rpool/ROOT/s10s_u9wos_14a/var:zfs:0
          BE144488-02:/rpool:rpool:zfs:0
          BE144488-02:/export:rpool/export:zfs:0
          BE144488-02:/export/home:rpool/export/home:zfs:0
          BE144488-02:/urt1417_swap:urt1417_swap:zfs:0