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


 
Thread Tools Search this Thread
Operating Systems Solaris Force unmount of a SWAP filesystem left over from bad Live Upgrade
# 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 or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Filesystem unable unmount

Hi all , I have issue oracle filesystem name /oracle/SID unable to unmount even though no any process are running mentioned fs .would appreciate anyone assist further high level .my system running aix 6.1 (7 Replies)
Discussion started by: Arulji
7 Replies

2. Solaris

Live upgrade first steps

Hello Guys, I am a little confused about the first step in the live upgrade process. I will be glad if someone can clarify this for me. The pre-live upgrade patch, when do you add this patch to the OS you want to upgrade? 1. before creating the new boot environment? or 2. after creating... (1 Reply)
Discussion started by: cjashu
1 Replies

3. Solaris

Live upgrade query

Hi All, Is it possible to use external san disk for creating alternate boot environment and boot from it.My root disk is about 70 gb and i want to use external san disk for 272gb to create alternate boot environment.If this is possible can you please redirect me some good documents, i had... (1 Reply)
Discussion started by: sahil_shine
1 Replies

4. Emergency UNIX and Linux Support

Live Upgrade Query

I am upgrading Solaris-9 Update-7 to Solaris-9 Update-9 through live upgrade. I am able to create another boot environment and have OS DVD inside server. But i am confused for, what command/path should I give for luupgrade. OS DVD is mounted on /mnt Boot environments are Solaris9old (Active now)... (2 Replies)
Discussion started by: solaris_1977
2 Replies

5. Solaris

Live Upgrade Issue

I tried a live upgrade for one my solaris 10u8 server which didnt go sucessfull and after that i now have following mounts in memory. df: cannot statvfs /.alt.sol10u8_2/var: No such file or directory df: cannot statvfs /.alt.sol10u8_2/var/run: No such file or directory df: cannot statvfs... (0 Replies)
Discussion started by: fugitive
0 Replies

6. Solaris

Live upgrade question

I want to basically update an ABE that someone created a few months back. I'm sure stuff has changed since it was made, and I was going to delete it and create a new one. But from what I'm looking at, the lumake appears like it would be a faster approach. I want to use live upgrade to... (0 Replies)
Discussion started by: BG_JrAdmin
0 Replies

7. Solaris

No Space Left - Memory/Swap issue

:wall:I'm having a bit of a problem with Solaris 10u8 and one of our applications requesting memory and being told, "no space left". The break down: 24GB Physical Memory 8GB swap at the time of occurance, here's what a memory breakdown looks like: Page Summary Pages ... (21 Replies)
Discussion started by: aychbee45
21 Replies

8. OS X (Apple)

Can't Mount Disk / Image after bad unmount

I have had a little issue with one of my disks, the usb cacble was pulled out and one of the external drives on it would no longer mount. I used First Aid and it verified and repaired both OK / nothing to do). After lots of messing around and not being able to mount I used Drive Genius 2 and that... (1 Reply)
Discussion started by: Cranie
1 Replies

9. Solaris

Live upgrade Issue

Hi, I upgraded solaris 10 x86 from update 3 to update 7 with zones installed n UFS file system . The global zone was updated but the non global zone still shows update 3 what could be the reason for this and how can i update the local zones to update 7 (0 Replies)
Discussion started by: fugitive
0 Replies
Login or Register to Ask a Question