Vous êtes sur la page 1sur 2

1.

What apache port number


ans : 80, 8080, 443
2. what is samba port number
ans : 139
3. what is Ftp Port Number?
ans : 20 and 21
what is lvm
It manages disk drives and similar mass storage devices, in partucular large one
s.
how to configure LVM?
create lvm partion using dsik /dev/sda
pvcreate /dev/sda4
vgcreate /dev/vg0 /dev/vsda4
lvcreate -L 1G -n data vg0
mkfs.ext3 /dev/vg0/data
mkdir /home/new
mount /dev/vg0/data /home/new
umount /dev/vg0/data /home/secret/
lvextend -L +100M /dev/vg0/data
lvrename /dev/vg0/data /dev/vg0/newdata

[root@rgvfile ~]# fdisk /dev/hda


The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Selected partition 4
First cylinder (2819-19457, default 2819):
Using default value 2819
Last cylinder or +size or +sizeM or +sizeK (2819-19457, default 19457):
Using default value 19457
Command (m for help): p
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2563 20482875 83 Linux
/dev/hda3 2564 2818 2048287+ 82 Linux swap / Solaris
/dev/hda4 2819 19457 133652767+ 83 Linux
Command (m for help): t
Partition number (1-4): 4
Hex code (type L to list codes): 8e
Changed system type of partition 4 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource
busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

[root@rgvfile ~]# lvdisplay


--- Logical volume ---
LV Name /dev/vg1/data
VG Name vg1
LV UUID UdSGpC-LrCQ-BWHt-YEpY-HQAy-BDb1-83mqJW
LV Write Access read/write
LV Status available
# open 0
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
[root@rgvfile ~]# lvre
lvreduce lvremove lvrename lvresize
[root@rgvfile ~]# lvrename /dev/vg1/data /dev/vg1/newdata
Renamed "data" to "newdata" in volume group "vg1"
[root@rgvfile ~]# lvdisplay
--- Logical volume ---
LV Name /dev/vg1/newdata
VG Name vg1
LV UUID UdSGpC-LrCQ-BWHt-YEpY-HQAy-BDb1-83mqJW
LV Write Access read/write
LV Status available
# open 0
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

How configure suid and sgid


By using usermod command we can assign suid snd sgid.

Vous aimerez peut-être aussi