Re: Mounting /var directory to a new HardDisk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



For sure you will be able to mount /var on your new disk....

but not before you boot single user and copy all the contents across manually and then modify /etc/fstab to reflect the new location of /var.

In my experience it is nigh-on impossible to *move* /var when a system is running.

Hint : next time use LVM *even* if you only have 1 physical disk to start with. It makes this sort of situation an non-event.

Cheers.

----- "Indunil Jayasooriya" <indunil75@xxxxxxxxx> wrote:
> Hi,
> 
> I have a mailgw running Centos where trendmicro(IMSS) is installed.
> it
> works perfectly. Now, the problem is it is running out of Harddisk.
> 
> pls see below  and pay attention to / file system (/dev/sda6), where
> only 1.3 gb is available. these are not Logical volums (LVM)
> 
> [root@gateway 17141]# df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda6             9.7G  7.9G  1.3G  87% /
> /dev/sda1              99M  9.2M   85M  10% /boot
> /dev/sda5              15G   11G  3.5G  75% /opt
> none                  627M     0  627M   0% /dev/shm
> 
> I checkd with du -h. then, I saw /var has 7.1 gb. So, Now I want to
> know, If I plug a new harddisk and partion with fdisk and then format
> that harddisk, will I able to mount /var directory to it ?
> 
> Your Ideas?
> 
> 
> -- 
> Thank you
> Indunil Jayasooriya
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux