extending /var in solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris extending /var in solaris 10
# 1  
Old 06-13-2008
extending /var in solaris 10

Hi all,

i need to extend /var file system on my solaris 10 box

/var is part of rootdg
current size 2GB
Required size 6GB
layout mirror
veritas 4.1
solaris 5.10

pls let me know the steps and the procedure to follow.

regards
Ajay S
# 2  
Old 06-17-2008
Assuming a newdisk c0t1d0. Create the new 6GB filesystem and name it /var2 on c0t1d0s5

shutdown server
sync;sync;sync;init 0
boot cdrom -s

(cdrom single usermode )
# mount /dev/dsk/c0t0d0s0 /mnt <---- mount your OS disk
# mount /dev/dsk/c0t1d0s5 /a <---- mount /var2

cd /mnt/var
tar cvfp - * | (cd /a;tar xvfp -)

TERM=vt100;export TERM
EDITOR=vi;export EDITOR

cd /mnt
mv var var1
cd /mnt/etc
cp -p vfstab vfstab.`date +%d%m%y`

vi vfstab

'#' off the entry for var if any
add the entry (make sure there are 7 columns)
/dev/dsk/c0t1d0s5 /dev/rdsk/c0t1d0s5 /var ufs 1 no logging

save+quit vi

umount /mnt
umount /a
fsck /dev/dsk/c0t0d0s0
fsck /dev/dsk/c0t1d0s5
stop-a
boot
if server comes up with no problem, that's fine, if any problem, just boot cdrom and revert everything back(mv var1 to var) + cp vfstab.`date +%d%m%y` vfstab

Ater that create your metadevices and mirror for the new /var (from here on I assume you shud know what to do)

If you are new to Sun my advice is don't experiment or do any personal R&D learning/testing on your production server.

Last edited by sparcguy; 06-18-2008 at 12:10 AM..
# 3  
Old 06-18-2008
Thanx for ur reply Sparcguy,

but my problem is i don't have spare disk but two fc disks mirrored and some 10 gb free size to extend on the same.

whats the wat out.
Ajays
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. SuSE

Non root user want to see /var/log/messages - any suse equivalent of Solaris dmesg

Hi New to Suse - mainly used Solaris. In solaris dmesg will also show you contents of messages log file but in Suse Liux it doesnt appear to. I dont have root access to this Suse server, and wondering is there any other tool / utility that allows me to see the messages file contents like on... (1 Reply)
Discussion started by: frustrated1
1 Replies

2. Shell Programming and Scripting

Csh , how to set var value into new var, in short string concatenation

i try to find way to make string concatenation in csh ( sorry this is what i have ) so i found out i can't do : set string_buff = "" foreach line("`cat $source_dir/$f`") $string_buff = string_buff $line end how can i do string concatenation? (1 Reply)
Discussion started by: umen
1 Replies

3. Solaris

Solaris: Expanding / Extending a mount point / Slice

I'm new to UNIX, sort of inherited this job. I have an HP lefthand SAN, where I added 100GB to one of the volumes. As I understand I also have to expand the volume on the server (solaris 10 ) as well. So, how do I do that? The file system is called: sybdump. the mount point is /export/xxx/sybdump.... (19 Replies)
Discussion started by: Spaseman
19 Replies

4. Solaris

Understanding /var/log/syslog.* logfiles solaris 8

hi guys, This is a log from a Solaris 8 server /var/log/syslog.* file. Can any body please confirm whether the meaning of the last two words (Mail accepted) means the mail has been delivered? Because the email id the mail was sent to is invalid. :confused: The log is: Feb 18 08:55:45... (2 Replies)
Discussion started by: raj_55555
2 Replies

5. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

6. Solaris

Solaris 9, /var/spool/clientmqueue/

Hi, We have some 2-3 Solaris 9 servers with the following issue. For every cron job which has email notifications, it is sending the emails, but it create files at /var/spool/clientmqueue/ which has similar contents. " V6 T1271362260 K1271362260 N1 P30359 MDeferred: Connection refused... (1 Reply)
Discussion started by: uxadmin007
1 Replies

7. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

8. Solaris

Usage of /var/tmp/ directory on Solaris 10

Hi All, I have some threaded applications. Design of the application is such that one thread will decode some data and put it in data structure, And main thread will wait for another child threads pick up the decoded data. The data will be large decoded files. Once decoded data is picked by... (1 Reply)
Discussion started by: patilmuragesh
1 Replies

9. UNIX for Advanced & Expert Users

Sendmail on Solaris: Moving /var/mail

Hello Sendmail Experts, I have sendmail 8.13 running on a Solaris 5.9 box and everything is running great. However, I did not assign enough disk space for /var. As a result, user mailboxes (/var/mail) might give me disk problems in the future. I would like to move /var/mail to another slice,... (2 Replies)
Discussion started by: xnightcrawl
2 Replies
Login or Register to Ask a Question