Allocating space to ufs /usr by using ZFS in solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Allocating space to ufs /usr by using ZFS in solaris
# 1  
Old 02-17-2011
Allocating space to ufs /usr by using ZFS in solaris

Hi,

Im currently having my diskspace allocation of my UFS filesystem in solris as 100% for /usr
directory.I have created a zfs pool of 3 gb.I want to allocate space from my zfs pool to /usr so that i can free space in /usr.Please help me it is quiet urgent.
# 2  
Old 02-17-2011
Well, you can't allocate zfs to ufs, but you can create a symlink to zfs. Figure out 1+ subdirectories of /usr you can move and move them to the zvol.

example:
Code:
zfs create zpool/vol1
cd /usr
mv local /zpool/vol1/
ln -s /zpool/vol1/local local

I would probably do that while booting off cd and mounting your root disk to /a, just to be safe. Of course, you could just move the entire /usr volume to the zfs pool and do a
zfs set mountpoint=/usr zpool/vol1, but you just wanted to clear some space.
# 3  
Old 02-17-2011
Beware that relocating the whole /usr to a zfs filesystem might possibly make your system unbootable.
Relocating parts of /usr using symbolic links (outside /usr/local which isn't part of Solaris) would likely render your system un-patchable, un-upgradeable and of certainly unsupported.
# 4  
Old 02-17-2011
Quote:
Originally Posted by jlliagre
Beware that relocating the whole /usr to a zfs filesystem might possibly make your system unbootable.
Relocating parts of /usr using symbolic links (outside /usr/local which isn't part of Solaris) would likely render your system un-patchable, un-upgradeable and of certainly unsupported.
Correct, that's why i kind of suggested /usr/local, as that's usually patches or packages installed from sunfreeware or what not.

I only offered moving the entire /usr if it was a last resort.
# 5  
Old 02-17-2011
A very painful last resort then. I strongly suspect the OS won't be bootable after that.
# 6  
Old 02-17-2011
Quote:
Originally Posted by jlliagre
A very painful last resort then. I strongly suspect the OS won't be bootable after that.
We have one box here that was able to boot with a migration to /usr on zfs, but the root was booting off ZFS, so that probably helped.

I would probably suggest creating, instead of a ZFS slice, UFS and moving /usr onto that.
# 7  
Old 02-18-2011
You could also remove packages that are not needed. For example, if this system is not used to host user desktops, you could remove the GNOME packages. Next you could remove any unnecessary fonts and language packages. You could also remove the StarOffice packages.

HTH
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Solaris 10 & 11 ZFS Space Monitoring

Hi Folks! Its been a while since I worked with ZFS but basically, I need to monitor free space for Solaris 10 & 11 systems (with & without zones) I am hoping that any space commands only need to be run from the global zone (to simplify matters) However, I'm not not sure if there are exceptions... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. UNIX for Dummies Questions & Answers

allocating space for samba users

I have installed samba by cmd yup install samba -a and configured my samba server.But i want my samba users to lo-gin from windows users and contain allocated amount of space. plz help me............ (1 Reply)
Discussion started by: yashwanthguru
1 Replies

3. Solaris

Convert root UFS to ZFS on x86 solaris 10/09

Hello All, Good Morning, We are trying to convert the UFS root in to ZFS. Am getting below error. Any one help me out on this ? bash-3.00# zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT guru 5.95G 483M 5.48G 7% ONLINE - bash-3.00# zpool create rpool c2t10d0p0... (4 Replies)
Discussion started by: gowthamakanthan
4 Replies

4. Linux

Allocating available space to file system

have a VMWARE machine, I have extended it from 20GB to 30GB for Linux box. The linux box shows this for df -hal: Filesystem Size Used Avail Use% Mounted on -dev-mapper-VolGroup00-LogVol00 19G 5.9G 12G 34% - proc 0 0 0 - -proc sysfs 0 0 0 - -sys devpts 0 0 0 - -dev-pts -dev-sda1 99M 13M... (1 Reply)
Discussion started by: mackman
1 Replies

5. Solaris

Installing ZFS on an existing Solaris 10 install (UFS)

Hello, I am new to Solaris so i apologize upfront if my questions seem trivial. I am trying to install a ZFS file system on a Solaris 10 machine with UFS already installed on it. I want to run: # zpool create pool_zfs c0t0d0 then: # zfs create pool_zfs/fs My question is more to... (3 Replies)
Discussion started by: mcdef
3 Replies

6. UNIX for Advanced & Expert Users

allocating swap space on solaris 9

Hi, I have a solaris 9-sparc box, which after bouncing is giving swap space related error messages(that swap space is not enough). could it be possible that there was some command issued or setting made before bouncing, which was lost after bouncing? please let me know how i can add swap space... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies

7. UNIX for Dummies Questions & Answers

Re-allocating hard drive space

Hi, Is their an easy way to realloate hard drive space on Solaris 10. For example : /c20td0 10G /space 90 G I would like to move some of the hard-drive space from "/space" and add it to "/c20td0". In Windows this can be easily done using Partition magic, anything similar for UNIX? (4 Replies)
Discussion started by: annointed3
4 Replies
Login or Register to Ask a Question