Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mirroring

Status
Not open for further replies.

harpal

Technical User
Oct 3, 2001
115
GB
Hi,

I want to remove mount points/filesystems /usr/welcome_arcade and
/usr/welcome to create more space for the root file systems how would I remove
the mirror on lv00 and lv01 so I can remove these 2 file systems

root@hqax00 /export/home/payment >lslv -l lv00
lv00:/usr/welcome_arcade
PV COPIES IN BAND DISTRIBUTION
hdisk0 004:000:000 100% 000:004:000:000:000
hdisk1 004:000:000 100% 000:004:000:000:000
root@hqax00 /export/home/payment >lslv -l lv01
lv01:/usr/welcome
PV COPIES IN BAND DISTRIBUTION
hdisk0 002:000:000 100% 000:002:000:000:000
hdisk1 002:000:000 100% 000:002:000:000:000


node mounted mounted over vfs date options

-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs 07 Jan 10:41 rw,log=/dev/hd8
/dev/hd2 /usr jfs 07 Jan 10:41 rw,log=/dev/hd8
/dev/hd9var /var jfs 07 Jan 10:41 rw,log=/dev/hd8
/dev/hd3 /tmp jfs 07 Jan 10:41 rw,log=/dev/hd8
/dev/hd1 /home jfs 07 Jan 10:42 rw,log=/dev/hd8
/dev/lv00 /usr/welcome_arcade jfs 07 Jan 10:42 rw,log=/dev/hd8
/dev/lv01 /usr/welcome jfs 07 Jan 10:42 rw,log=/dev/hd8
/dev/lv02 /m1 jfs 07 Jan 10:42 rw,log=/dev/loglv00
/dev/lv03 /m2 jfs 07 Jan 10:42 rw,log=/dev/loglv00
/dev/lv04 /u1 jfs 07 Jan 10:42 rw,log=/dev/loglv01
/dev/lv05 /r1 jfs 07 Jan 10:43 rw,log=/dev/loglv02
/dev/lv06 /oracle jfs 07 Jan 10:43 rw,log=/dev/hd8
 
harpal,

If you want to remove the filsystems you do not have to unmirror them first. Back them up or copy them elsewhere then:

1) Unmount the filesystems

unmount /usr/welcome_arcade

unmount /usr/welcome

2) Remove the filesystems

rmfs -r /usr/welcome_arcade

rmfs -r /usr/welcome

The -r flag removes the mount point for you.

If you just want to unmirror

rmlvcopy lv00 1 hdisk1

rmlvcopy lv01 1 hdisk1

N.B. that remove the copy from hdisk1.

Cheers

PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
would this course a problem if I just unmmirror the file system as I have no space to give to / and I thought romoving /usr/arcade would free me up some space.
 
harpal,

How free is / ?

as long as you have a meg or so free I find most commands will work.

Cheers PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
PSD

/ is at 99% and I can't give it no more space as you see from the lsvg -p rootvg command.

root@hqax00 / >lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 542 0 00..00..00..00..00
hdisk1 active 542 164 55..00..00..00..109

we have the to following filesystems

/usr/welcome_arcade
/usr/welcome

if I remove these file systems this should free up 192meg which would be quit helpful but I really don't know what the following filesystems are for and if this would course a problem as the hdisk0 and hdisk1 are mirrored.

Harpal
 
Harpal,

Well if you unmirror them you will need to remove the copy from hdisk0 and not hdisk1, as you have some free space on hdisk1 already.

Use the rmvlcopy command I mentioned before but substitute hdisk1 with hdisk0.

At least that way you still have the data, I would be very careful if you do not not what the data is.

Cheers

PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
Harpal,

Is this the same system that has the 1 GB / filesystem? Have you checked for core files (find / -name core)? Could you post a df -k output?

I've had users fill up / when there is a two-tier filesystem such as /tier1/tier2. Instead of putting files in the tier2 directory, they put files in tier1, which will fill up /. Do you have any filesystem structure like that?
 
bi,

this is a 1 tier system but we do have export which sits under root which is our payment systems for credit card auth's we run PFG but we are running out of disk space I have been told by someone from this site the filesystems /usr/welcome and /usr/welcome_arcade can be removed as these are part of a standard aix install and just so movies when unix is first install can someone clarify this for me so I can go ahead and remove these filesystems

Thanks
 
Yes. You can get rid of the welcome stuff. I am assuming you or your users haven't put anything else into those filesystems.

The way to get rid of the Welcome stuff is to use smit ->software installation and maintenance -> software maintenance and utilities -> remove installed software.

click the List box (or in smitty press F4) and search for the word Welcome. Select all the filesets for Welcome and delete them. In the deletion process, smit gets rid of the filesystems and lvs, freeing up that space.

At one point during the deinstall, tt seemed as if the deinstallation was stuck (when I ran an lslpp -l | grep Welcome, the Welcome.rte fileset seemed stuck at "deinstalling".) I stopped smit and reran deinstall. the Welcome.rte fileset was deleted immediately. This will free up some space for you, but not tons.

It is probably too late now, but it would be nice if you could get that export directory on a separate mount point in a separate volume group if possible. Otherwise your / filesystem and rootvg are going to keep growing and growing. This isn't so terrible in itself, but some sys admins think it's a bad idea. (For example, if you make periodic mksysb tapes for OS recovery, creating the tape and recovering the system will take longer and longer as the export directory grows.) Making a mount point for your export directory would require down time as well as backing up what's in the export directory now and then restoring the data once you've established the mount point.

Another alternative is to add another disk to rootvg so you've got more disk space. Or unmirroring some filesystems to free up space on hdisk0 but I do not recommend that.

Unless you already have two unused disks, I think you are going to have to buy some additional disks. It has been my experience that you are running the risk of having difficulty even logging in as root (root's home directory is the / filesystem) and you may be flirting with filesystem corruption by running / so close to 100% full. (The majority of filesystem corruption that I have experienced came shortly after a filesystem got 100% full.) I've never experienced a corrupted / filesystem, but I doubt there is an easy fix for it.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top