Unix/Linux Go Back    


Solaris 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

Solaris


Tags
solved

Reply    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 10-26-2017   -   Original Discussion by mainegeek
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is online now Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 17 December 2017, 6:50 AM EST
Location: Devon, UK
Posts: 1,664
Thanks: 241
Thanked 408 Times in 346 Posts
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.
Sponsored Links
    #9  
Old Unix and Linux 10-26-2017   -   Original Discussion by mainegeek
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is online now Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 17 December 2017, 6:50 AM EST
Location: Devon, UK
Posts: 1,664
Thanks: 241
Thanked 408 Times in 346 Posts
Also, is this swap area listed in /etc/vfstab to mount at boot time?
Sponsored Links
    #10  
Old Unix and Linux 10-26-2017   -   Original Discussion by mainegeek
mainegeek's Unix or Linux Image
mainegeek mainegeek is offline
Registered User
 
Join Date: Dec 2007
Last Activity: 28 November 2017, 9:27 PM EST
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
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 Unix and Linux 10-26-2017   -   Original Discussion by mainegeek
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is online now Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 17 December 2017, 6:50 AM EST
Location: Devon, UK
Posts: 1,664
Thanks: 241
Thanked 408 Times in 346 Posts
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).
Sponsored Links
    #12  
Old Unix and Linux 10-26-2017   -   Original Discussion by mainegeek
mainegeek's Unix or Linux Image
mainegeek mainegeek is offline
Registered User
 
Join Date: Dec 2007
Last Activity: 28 November 2017, 9:27 PM EST
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
    #13  
Old Unix and Linux 10-26-2017   -   Original Discussion by mainegeek
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is online now Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 17 December 2017, 6:50 AM EST
Location: Devon, UK
Posts: 1,664
Thanks: 241
Thanked 408 Times in 346 Posts
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!
Sponsored Links
    #14  
Old Unix and Linux 10-26-2017   -   Original Discussion by mainegeek
mainegeek's Unix or Linux Image
mainegeek mainegeek is offline
Registered User
 
Join Date: Dec 2007
Last Activity: 28 November 2017, 9:27 PM EST
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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
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



All times are GMT -4. The time now is 07:59 AM.