Archive for the tag 'Removing'

Removing Reseller’s Access to Server’s Shared IP in DirectAdmin

As an Admin, you can give Resellers the ability to create User web sites using the Server’s Shared (main) IP address. At this time, you cannot remove this ability through the control panel.

To solve the problem manually, remove the desired IP address from the ip.list file in the Reseller’s DirectAdmin config directory

Reseller’s DirectAdmin config directory

/usr/local/directadmin/data/users/username/ip.list

This change will not affect the Reseller’s current Users (if they are using the server’s main IP, they will continue to do so.

Source & credit - http://www.directadmin.com

To view the IP addresses you have at your disposal:

Go to Home > IP Addresses (in the Server group).

To add a new IP address to the server:

Go to Home > IP Addresses (in the Server group) and click Add IP Address.

To remove an IP address from the server:

Go to Home > IP Addresses (in the Server group).
Select the respective check box and click Remove, confirm removal and click OK.

To assign an IP address to a user:

Go to Home > IP Addresses (in the Server group) and click the respective number in the Clients column, then click Assign.
Select the user account you need and click OK.

Select the network interface for the new IP from the Interface drop-down box. All network cards installed on your server are shown in this drop-down box.

To change an IP address allocation type (shared, exclusive) or assign another SSL certificate to an IP address:

Go to Home > IP Addresses (in the Server group) and click the IP address you need.
Select the IP address allocation type and SSL certificate you need, and click OK.

When you obtain a new IP address that you would like to use on the server, you should add the address through the control panel, as Parallels Plesk Panel might not recognize manual modifications you make to the network configuration files.

With Parallels Plesk Panel you can mark all your IP addresses as shared or dedicated before you assign them to your customers. This allows the control panel to distinguish between them and not to let you assign a dedicated IP address to several customers at once. A dedicated IP address can be assigned to a single customer, while a shared IP address can be shared among several user accounts.

Removing Unnecessary Software Packages (RPMs)

It is a good practice not to have development packages, desktop software packages (e.g. X Server) etc. installed on production servers. Other packages like FTP and Telnet daemons should not be installed as well unless there is a justified business reason for it (SSH/SCP/SFTP should be used instead).

One of the first action items should be to create a Linux image that only contains RPMs needed by the applications, and needed for maintenance and troubleshooting purposes.

A good approach is to start with a minimum list of RPMs and then add packages as needed. It may be time-consuming but worth the efforts.

To get a list of all installed RPMs you can use the following command:

rpm -qa

If you want to know more about a particular RPM, run:

rpm -qi [package_name]

To check for and report potential conflicts and dependencies for deleting a RPM, run:

rpm -e –test [package_name]

A very important step in securing a Linux system is to determine the primary function or role of the Linux server.

Removing Physical Volumes from a Volume Group

DESCRIPTION

vgreduce allows you to remove one or more unused physical volumes from a volume group.

To remove unused physical volumes from a volume group, use the vgreduce command. The vgreduce command shrinks a volume group’s capacity by removing one or more empty physical volumes. This frees those physical volumes to be used in different volume groups or to be removed from the system.

Before removing a physical volume from a volume group, you can make sure that the physical volume is not used by any logical volumes by using the pvdisplay command.

If the physical volume is still being used you will have to migrate the data to another physical volume using the pvmove command. Then use the vgreduce command to remove the physical volume:

The following command removes the physical volume /dev/hda1 from the volume group my_volume_group.

# vgreduce my_volume_group /dev/hda1

It’s a good idea to run this option with –test first to find out what it would remove before running it for real.

SBDavid

Removing Physical Volumes

Removing Physical Volumes

If a device is no longer required for use by LVM, you can remove the LVM label with the pvremove command. Executing the pvremove command zeroes the LVM metadata on an empty physical volume.

If the physical volume you want to remove is currently part of a volume group, you must remove it from the volume group with the vgreduce command.

# pvremove /dev/ram15
Labels on physical volume “/dev/ram15″ successfully wiped

DESCRIPTION

pvremove wipes the label on a device so that LVM will no longer recognise it as a phys?ical volume.

pvremove
[-d|--debug]
[-f[f]|–force [--force]]
[-h|-?|--help]
[-t|--test]
[-v|--verbose]
[-y|--yes]
[--version]
PhysicalVolume [PhysicalVolume...]

« Prev