Visit Our UNIX and Linux User Community


Relocating directory /export/home to a bigger filesystem


 
Thread Tools Search this Thread
Operating Systems Solaris Relocating directory /export/home to a bigger filesystem
# 1  
Old 10-11-2006
Relocating directory /export/home to a bigger filesystem

My 2GB /export/home/ directory is almost 100% full

df -k | grep /export/home
/dev/vx/dsk/rootdg/vl73 2031711 1951009 19751 99% /export/home


I intend to relocate it to a different 4GB filesystem late at night when there is no user on the system.

How do I go about it using ufsdump & ufsrestore ?

Kind Regards

Msororaji
# 2  
Old 10-11-2006
First off, you don't use ufsdump/ufsrestore - your filesystem is controlled by Volume Manager - all you need to do is grow the filesystem - see the man page for vxresize or vxassist.

From Sunsolve:

Quote:
To resize a UFS (grow only) or VXFS file system using Volume Manager 3.x/4.x,
you can use the vxresize command via the command line. This command will grow a
file system AND its underlying volume.

Here is an example of the vxresize command in its basic syntax:

# vxresize -g diskgroup_name volume_name new_length

To determine the amount of space available for a resize, you can use the
vxassist command:

# vxassist -g diskgroup_name maxgrow volume_name

The new_length can be specified as either the total volume length, or as an
addition or subtraction to the current size:

# vxresize -g diskgroup_name volume_name +additional_space

You can also use this command to specify which disks to use for the resize:
To find the space available on these disks:

# vxassist -g diskgroup_name maxgrow volume_name disk01 disk02

# vxresize -g diskgroup_name volume_name new_length disk01 disk02

For additional restrictions on the use of this command please reference the
Veritas Volume Manager Administration guide for the version you are running.

For information on resizing a file system by the CLI for Volume Manager < 3.0,
see Infodoc ID 14881.
man page for vxresize
# 3  
Old 10-12-2006
Thanks alot
# 4  
Old 10-12-2006
if using vxassist you must make sure that you also grow the filesystem to match the new volume, use vxresize and you won't need to worry about that.

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

directory space bigger than lvol?

hi everybody, i know my question is maybe stupid, but see this sr597:#/ipos# du -ks 6994419 . sr597:#/ipos# bdf . Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol3 2097152 482448 1602192 23% / if i do du-ks its about 7gb, but it supposed due to the next... (0 Replies)
Discussion started by: pabloli150
0 Replies

2. Solaris

how to change /export/home/user dir to /home /user in solaris

Hi all i am using solaris 10, i am creating user with useradd -d/home/user -m -s /bin/sh user user is created with in the following path /export/home/user (auto mount) i need the user to be created like this (/home as default home directory ) useradd -d /home/user -m -s /bin/sh... (2 Replies)
Discussion started by: kalyankalyan
2 Replies

3. Solaris

Quotas on /export/home

Hello all, I am trying to set quotas on /export/home filesystem for some of our users on a Solaris Zone I know that you would be redirecting me to some of the documentation pages, but I have already done that. The /export/home on the Zone is a Veritas FS and I cannot see an entry for... (4 Replies)
Discussion started by: grajp002
4 Replies

4. Solaris

A query regarding /export/home in Solaris

Friends, I am new to Solaris, but familiar with Linux. Could you throw some light on the need for /export/home directory in Solaris. In Linux, the default home directory for a normal user is /home/<username>. If domain concept is implemented, then the /home directory of server will be mounted... (4 Replies)
Discussion started by: saagar
4 Replies

5. Solaris

How do I export a zfs filesystem that I created?

I created a zpool and two ZFS volumes in OpenSolaris. I would like both ZFS volumes to be exportable. However, I don't know how to set that up. These are the steps I did: 1) Create the zpool using raidz1 across five disks. I have six disks and created a zpool across 5 of them. c4t0d0... (3 Replies)
Discussion started by: sqa777
3 Replies

6. UNIX for Dummies Questions & Answers

/export/home question

please could someone explain what is /export/home used for ? (1 Reply)
Discussion started by: venhart
1 Replies

7. Filesystems, Disks and Memory

NFS export filesystem with several partitions

I want to export the file system which consist of several partition. For example I export / and there are /home, /usr partitions. On client side I can see all files in /, but /home and /usr are empty. So far I failed to find the way to make other partitions visible in one mount. :confused: Of... (2 Replies)
Discussion started by: fmtu2005
2 Replies

8. Solaris

automountd [24] : Mount of /export/home problem

Hi Guys, Thanks for taking the time to read the problem i having outlined below: Before i go into the problem can you please tell me what the following means? a. "dt" stands for and what does it means? Configuration Below: 1x Unix Server 2x Unix Terminals (both systems are... (3 Replies)
Discussion started by: tlee
3 Replies

9. Solaris

need script for locked and unused user accounts in /export/home directory

Hi all, i have to need one script: 1. it will capture the unused user accounts in /export/home directory. 2. it will capture the locked user accounts in /export/home directory. Note: locked accounts will show in /etc/passwd like /bin/false --> (instead of ksh it will show false) the... (1 Reply)
Discussion started by: krishna176
1 Replies

10. UNIX for Dummies Questions & Answers

Problems with /export/home

I'm having a problem with my /export/home directory. A few of my users are getting superblock problems when they try to save files. what's something I can do to fix the problem? I'm running Solaris 7 on an Intel so no Open Boot Prom... any help would be great. thanks.. ,AP (2 Replies)
Discussion started by: Anthony
2 Replies

Featured Tech Videos