HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- add space to a file system
Operating System - Linux
1835421
Members
2710
Online
110078
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 11:57 PM
08-22-2002 11:57 PM
add space to a file system
my /var system is full.
so i need to add a new hdd.
but how can i add or grow my /var system to this new space.
so i need to add a new hdd.
but how can i add or grow my /var system to this new space.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 12:18 AM
08-23-2002 12:18 AM
Re: add space to a file system
Hi
1) buy a disk
2) connect the disk
if you buy a scsi disk, it would be /dev/sdX.
if you buy a IDE disk, it would be /dev/hdX.
3) Create a partition by fdisk.
You need to use "n" for create new partition, "p" for preview and "w" for write quit in the fdisk.
4) After create the partition, create filesystem.
(ext2)
mkfs -t ext2 /dev/your-device-file
(ext3)
mkfs -j /dev/your-device-file
5) test for mount the new partitin.
# mkdir /test
# mount /dev/your-device-file /test
# df
# umount /test
6) boot the system single user mode
From lilo prompt,
boot: linux single
7) mount the new partition
# mkdir /2ndvar
# mount /dev/your-device-file /2ndvar
# df
8) mount the your original /var
9) copy the data
# cd /var
# find . -print | cpio -pvmdu /2ndvar
10) compare the size
# df
11) Change /etc/fstab to use new var at next boot
12) reboot (with your finger cross)
13) boot and check
My recommendation is, cleanup your /var dir , if you feel this procedure is too complicated....
Good luck
1) buy a disk
2) connect the disk
if you buy a scsi disk, it would be /dev/sdX.
if you buy a IDE disk, it would be /dev/hdX.
3) Create a partition by fdisk.
You need to use "n" for create new partition, "p" for preview and "w" for write quit in the fdisk.
4) After create the partition, create filesystem.
(ext2)
mkfs -t ext2 /dev/your-device-file
(ext3)
mkfs -j /dev/your-device-file
5) test for mount the new partitin.
# mkdir /test
# mount /dev/your-device-file /test
# df
# umount /test
6) boot the system single user mode
From lilo prompt,
boot: linux single
7) mount the new partition
# mkdir /2ndvar
# mount /dev/your-device-file /2ndvar
# df
8) mount the your original /var
9) copy the data
# cd /var
# find . -print | cpio -pvmdu /2ndvar
10) compare the size
# df
11) Change /etc/fstab to use new var at next boot
12) reboot (with your finger cross)
13) boot and check
My recommendation is, cleanup your /var dir , if you feel this procedure is too complicated....
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 07:58 AM
08-26-2002 07:58 AM
Re: add space to a file system
Are you rotating your log files. Implement logrotate,
and clear out old logs. This
should help.
Walk your /var tree using
du -s *
to find the largest space users. Likely /var/adm.
and clear out old logs. This
should help.
Walk your /var tree using
du -s *
to find the largest space users. Likely /var/adm.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP