Home
Man
Search
Today's Posts
Register

The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Force unmount of a SWAP filesystem left over from bad Live Upgrade

Tags
solaris, solved

Login to Reply

 
Thread Tools Search this Thread
# 8  
Old 10-26-2017
Can you go into that directory /zoneroot/spahwfm1/lu again and use some other 'ls' switches like '-b' (unprintable character display) and '-i' (print inode numbers) to check again whether there's a hidden file in there.

Global says it's swapping to somewhere in there.
# 9  
Old 10-26-2017
Also, is this swap area listed in /etc/vfstab to mount at boot time?
# 10  
Old 10-26-2017
It's not in vfstab and I see nothing in the folder. What is frustrating is I know this 'lu' swap directory will be gone on reboot and than the installpatchset will work properly. This is a left over remnant of a bad Live Upgrade.

Code:
[root@spahwfm1gz:/] # cd /zoneroot/spahwfm1/lu
[root@spahwfm1gz:/zoneroot/spahwfm1/lu] # ls -b
[root@spahwfm1gz:/zoneroot/spahwfm1/lu] # ls -i
[root@spahwfm1gz:/zoneroot/spahwfm1/lu] # cat /etc/vfstab | grep -i swap
/dev/zvol/dsk/rpool/swap        -       -       swap    -       no      -
swap    -       /tmp    tmpfs   -       yes     -
[root@spahwfm1gz:/zoneroot/spahwfm1/lu] #

# 11  
Old 10-26-2017
I've been messing about with this here on my own system and trying to work this out as we go along!

It appears that swapfiles created (eg, using 'mkfile') are not supported on ZFS filesystem. That I guess means that this swap area is a disk pool. Can you list what pools you have and see if you can find it. Just for good measure, try listing the pools when within the local zone too (although that shouldn't work).
# 12  
Old 10-26-2017
OK here is the "zfs list" before and after an ludelete of the new BE (not that it should make a difference except simplify the zfs list output)

Code:
[root@spahwfm1gz:/] # zfs list
NAME                                     USED  AVAIL  REFER  MOUNTPOINT
rpool                                    173G   375G   106K  /rpool
rpool/ROOT                              25.4G   375G    31K  legacy
rpool/ROOT/April2017CPU                 25.4G   375G  22.7G  /
rpool/ROOT/April2017CPU@Oct2017CPU      2.32M      -  22.7G  -
rpool/ROOT/April2017CPU/var             2.62G   375G  2.59G  /var
rpool/ROOT/April2017CPU/var@Oct2017CPU  30.5M      -  2.59G  -
rpool/ROOT/Oct2017CPU                   6.10M   375G  22.7G  /
rpool/ROOT/Oct2017CPU/var               5.84M   375G  2.59G  /var
rpool/dump                              4.51G   375G  4.50G  -
rpool/export                              68K   375G    32K  /export
rpool/export/home                         36K   375G    36K  /export/home
rpool/swap                               132G   379G   128G  -
rpool/zoneroot                          10.9G   375G    32K  /zoneroot
rpool/zoneroot/spahwfm1                 10.9G   375G  10.8G  /zoneroot/spahwfm1
rpool/zoneroot/spahwfm1@Oct2017CPU      24.3M      -  10.8G  -
rpool/zoneroot/spahwfm1-Oct2017CPU       213K   375G  10.8G  /zoneroot/spahwfm1-Oct2017CPU

[root@spahwfm1gz:/] # ludelete Oct2017CPU
WARNING: Deleting ZFS dataset <rpool/ROOT/Oct2017CPU>.
WARNING: Deleting ZFS dataset <rpool/ROOT/Oct2017CPU/var>.
WARNING: Deleting ZFS dataset <rpool/zoneroot/spahwfm1-Oct2017CPU>.
Updating boot environment configuration database.
Updating boot environment description database on all BEs.
Updating all boot environment configuration databases.

[root@spahwfm1gz:/] # zfs list
NAME                          USED  AVAIL  REFER  MOUNTPOINT
rpool                         173G   375G   106K  /rpool
rpool/ROOT                   25.3G   375G    31K  legacy
rpool/ROOT/April2017CPU      25.3G   375G  22.7G  /
rpool/ROOT/April2017CPU/var  2.59G   375G  2.59G  /var
rpool/dump                   4.51G   375G  4.50G  -
rpool/export                   68K   375G    32K  /export
rpool/export/home              36K   375G    36K  /export/home
rpool/swap                    132G   379G   128G  -
rpool/zoneroot               10.8G   375G    32K  /zoneroot
rpool/zoneroot/spahwfm1      10.8G   375G  10.8G  /zoneroot/spahwfm1

And in the zone

Code:
[root@spahwfm1gz:/] # zlogin spahwfm1
[Connected to zone 'spahwfm1' pts/1]
spahwfm1 # zfs list
no datasets available

Here is mount -v for swap from global
Code:
[root@spahwfm1gz:/] # mount -v | grep -i swap
swap on /etc/svc/volatile type tmpfs read/write/setuid/devices/rstchown/xattr/dev=5cc0001 on Tue Jul 25 05:40:41 2017
swap on /tmp type tmpfs read/write/setuid/devices/rstchown/xattr/dev=5cc0002 on Tue Jul 25 05:41:11 2017
swap on /var/run type tmpfs read/write/setuid/devices/rstchown/xattr/dev=5cc0003 on Tue Jul 25 05:41:11 2017
swap on /zoneroot/spahwfm1/lu type tmpfs read/write/setuid/devices/rstchown/xattr/dev=5cc000a on Tue Jul 25 05:42:07 2017
swap on /zoneroot/spahwfm1/root/etc/svc/volatile type tmpfs read/write/setuid/nodevices/rstchown/xattr/zone=spahwfm1/dev=5cc000b on Tue Jul 25 06:46:53 2017
swap on /zoneroot/spahwfm1/root/tmp type tmpfs read/write/setuid/nodevices/rstchown/xattr/zone=spahwfm1/dev=5cc000c on Tue Jul 25 06:46:56 2017
swap on /zoneroot/spahwfm1/root/var/run type tmpfs read/write/setuid/nodevices/rstchown/xattr/zone=spahwfm1/dev=5cc000d on Tue Jul 25 06:46:56 2017

I'm puzzled by this one.
# 13  
Old 10-26-2017
Yes, I'm puzzled too.

Quote:
swap on /zoneroot/spahwfm1/lu type tmpfs read/write/setuid/devices/rstchown/xattr/dev=5cc000a on Tue Jul 25 05:42:07 2017
swap on /zoneroot/spahwfm1/root/etc/svc/volatile type tmpfs read/write/setuid/nodevices/rstchown/xattr/zone=spahwfm1/dev=5cc000b on Tue Jul 25 06:46:53 2017
swap on /zoneroot/spahwfm1/root/tmp type tmpfs read/write/setuid/nodevices/rstchown/xattr/zone=spahwfm1/dev=5cc000c on Tue Jul 25 06:46:56 2017
swap on /zoneroot/spahwfm1/root/var/run type tmpfs read/write/setuid/nodevices/rstchown/xattr/zone=spahwfm1/dev=5cc000d on Tue Jul 25 06:46:56 2017
Does anything happen if you:

Code:
# swap -d <each of the above>

from Global zone. Clutching at straws now!
# 14  
Old 10-26-2017
Nope

Code:
[root@spahwfm1gz:/] # swap -d /zoneroot/spahwfm1/root/var/run
/zoneroot/spahwfm1/root/var/run: Is a directory
[root@spahwfm1gz:/] # swap -d /zoneroot/spahwfm1/root/tmp
/zoneroot/spahwfm1/root/tmp: Is a directory
[root@spahwfm1gz:/] # swap -d /zoneroot/spahwfm1/root/etc/svc/volatile
/zoneroot/spahwfm1/root/etc/svc/volatile: Is a directory
[root@spahwfm1gz:/] # swap -d /zoneroot/spahwfm1/lu
/zoneroot/spahwfm1/lu: Is a directory

It seems like each tmpfs is identified by a unique dev=

For that lu mount it is dev=5cc000a. I'm wondering if there is a way to use that to umount the device?
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Filesystem unable unmount Arulji AIX 7 02-04-2016 06:27 AM
Problem in SVM after live upgrade amity Solaris 3 10-17-2012 12:40 PM
Live upgrade query sahil_shine Solaris 1 09-25-2012 02:03 AM
Live Upgrade Query solaris_1977 Emergency UNIX and Linux Support 2 07-14-2012 03:08 PM
Live Upgrade Issue fugitive Solaris 0 02-14-2012 03:55 PM
Live upgrade question BG_JrAdmin Solaris 0 02-06-2012 04:33 PM
live upgrade SUN cluster alex57 Solaris 4 09-23-2011 12:01 PM
No Space Left - Memory/Swap issue aychbee45 Solaris 21 02-18-2011 03:37 AM
Live upgrade Issue fugitive Solaris 0 05-26-2009 01:34 AM


All times are GMT -4. The time now is 08:57 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password